:root {
  --ink: #153453;
  --muted: #6f88a1;
  --accent: #1687e8;
  --accent-strong: #0e6fce;
  --accent-light: #e4f4ff;
  --cyan: #38bdf8;
  --canvas: #eef8ff;
  --line: #dbeaf5;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 50px rgba(39, 115, 169, 0.11);
  --shadow-soft: 0 8px 26px rgba(49, 124, 178, 0.08);
  --bs-primary: #1687e8;
  --bs-primary-rgb: 22, 135, 232;
  --gold: #f5b942;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(108, 207, 255, 0.24), transparent 27rem),
    radial-gradient(circle at 6% 78%, rgba(64, 157, 255, 0.12), transparent 30rem),
    linear-gradient(145deg, #f8fcff 0%, var(--canvas) 52%, #f5fbff 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 750;
  line-height: 1.6;
}
h2 {
  font-size: 20px;
  font-weight: 700;
}
h3 {
  font-size: 17px;
  font-weight: 700;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
svg.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn {
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #2da9f5, var(--accent-strong));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 135, 232, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #46b9f8, #0d72d4);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 135, 232, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-light {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(190, 220, 240, 0.8);
  color: var(--ink);
  box-shadow: 0 5px 15px rgba(44, 112, 160, 0.06);
  backdrop-filter: blur(10px);
}
.btn-light:hover {
  color: var(--accent-strong);
  border-color: #acd9f5;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(44, 112, 160, 0.11);
}
.btn-outline-danger {
  font-size: 12px;
}
.btn-sm {
  padding: 6px 10px;
}
.btn:disabled {
  opacity: 0.55;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}
.badge {
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
}
.badge-soft {
  background: linear-gradient(135deg, #edf9ff, #d9efff);
  color: var(--accent);
  border: 1px solid #c9e9fb;
}
.badge-warm {
  background: #fff4df;
  color: #936c29;
}
.badge-muted {
  background: #edf1f3;
  color: #62727a;
}
.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-top p {
  color: var(--muted);
  margin-top: 3px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(135%);
  margin: 0;
  overflow: hidden;
}
.card-body {
  padding: 24px;
}
.card-header {
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid var(--line);
  padding: 19px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-footer {
  background: rgba(242, 250, 255, 0.62);
  border-top: 1px solid var(--line);
  padding: 14px 24px;
}
.form-control,
.form-select {
  border: 1px solid #d3e5f2;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}
.form-control:focus,
.form-select:focus {
  border-color: #72c4f5;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(22, 135, 232, 0.1), 0 8px 20px rgba(22, 135, 232, 0.07);
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field {
  margin-bottom: 17px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.form-error {
  color: #ae3440;
  background: #fff0f0;
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #e5d6b6;
  background: #fffaee;
  border-radius: 10px;
  font-size: 12px;
  color: #886725;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.notice.info {
  background: rgba(232, 247, 255, 0.78);
  border-color: #cceafb;
  color: #2973a7;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  height: 34px;
  width: 34px;
  color: #91afa4;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.startup {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  color: var(--accent-strong);
}
.startup img {
  filter: drop-shadow(0 14px 22px rgba(22, 135, 232, 0.2));
  animation: float-logo 2.5s ease-in-out infinite;
}
.skip-link {
  position: absolute;
  top: -100px;
  z-index: 1000;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 0;
}
.language {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(190, 221, 241, 0.78);
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.language:hover {
  background: #fff;
  border-color: #9ed8f8;
  color: var(--accent-strong);
  transform: translateY(-1px);
}
.auth-page {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(560px, 1.15fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 5%, rgba(117, 209, 255, 0.22), transparent 24rem),
    linear-gradient(145deg, #fafdff, #edf8ff);
}
.auth-story {
  background:
    radial-gradient(circle at 15% 10%, rgba(140, 224, 255, 0.42), transparent 17rem),
    radial-gradient(circle at 90% 70%, rgba(61, 186, 251, 0.24), transparent 24rem),
    linear-gradient(155deg, #127fd1 0%, #0c62b1 55%, #084581 100%);
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 52px;
  box-shadow: 20px 0 70px rgba(13, 94, 163, 0.16);
}
[dir="rtl"] .auth-story {
  box-shadow: -20px 0 70px rgba(13, 94, 163, 0.16);
}
.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-story::before {
  width: 280px;
  height: 280px;
  inset: -130px auto auto -90px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 45px rgba(255, 255, 255, 0.08);
}
.auth-story::after {
  width: 170px;
  height: 170px;
  inset: auto -60px 9% auto;
  background: rgba(83, 205, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.11);
  filter: blur(1px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(5, 70, 122, 0.2);
}
.brand strong {
  display: block;
  font-size: 14px;
  line-height: 1.8;
}
.brand span {
  font-size: 10px;
  opacity: 0.65;
}
.story-main {
  position: relative;
  z-index: 1;
  margin: 80px 0 45px;
}
.story-main h1 {
  font-size: 43px;
  line-height: 1.65;
  max-width: 410px;
  margin: 18px 0;
}
.story-main p {
  color: rgba(235, 248, 255, 0.76);
  max-width: 380px;
  line-height: 2.2;
}
.story-main .eyebrow {
  color: #c5efff;
  letter-spacing: 3px;
}
.story-mark {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  position: absolute;
  inset-inline-end: -70px;
  bottom: 130px;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.035),
    0 0 0 96px rgba(255, 255, 255, 0.025),
    0 0 0 144px rgba(255, 255, 255, 0.015),
    inset 0 0 70px rgba(99, 215, 255, 0.08);
}
.story-features {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: #e2f6ff;
  position: relative;
}
.story-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
}
.story-foot {
  border-top: 1px solid #ffffff17;
  padding-top: 22px;
  color: rgba(219, 243, 255, 0.55);
  font-size: 11px;
}
.auth-content {
  padding: 26px 8%;
  display: flex;
  flex-direction: column;
}
.auth-toolbar {
  display: flex;
  justify-content: flex-end;
}
.auth-form-wrap {
  width: 100%;
  max-width: 490px;
  margin: auto;
  padding: 50px 0;
  position: relative;
  isolation: isolate;
}
.auth-form-wrap::before {
  content: "";
  position: absolute;
  inset: -24px -32px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 70px rgba(40, 119, 175, 0.09), inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
}
.auth-form-wrap.register {
  max-width: 620px;
  padding: 30px 0;
}
.auth-form-wrap h1 {
  font-size: 28px;
  margin: 8px 0;
}
.auth-intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}
.auth-tabs {
  display: flex;
  padding: 4px;
  background: rgba(219, 239, 252, 0.62);
  border: 1px solid rgba(207, 232, 247, 0.8);
  border-radius: 13px;
  margin: 22px 0;
}
.auth-tabs button {
  width: 50%;
  border: 0;
  background: none;
  border-radius: 10px;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}
.auth-tabs button.active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  box-shadow: 0 7px 18px rgba(40, 120, 177, 0.12), inset 0 1px 0 #fff;
  font-weight: 700;
}
.auth-bottom {
  text-align: center;
  margin-top: 23px;
  font-size: 12px;
  color: var(--muted);
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-inline-end: 46px;
}
.password-toggle {
  position: absolute;
  inset-inline-end: 5px;
  top: 5px;
  background: none;
  border: 0;
  padding: 7px;
  color: #8b999d;
}
.auth-footer {
  text-align: center;
  color: #a2afb3;
  font-size: 11px;
  padding: 18px;
}
.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-shell {
  --ink: #173e38;
  --muted: #688179;
  --accent: #16866c;
  --accent-strong: #0f6b58;
  --accent-light: #e5f6ef;
  --line: #d8ebe4;
  --shadow: 0 18px 50px rgba(28, 112, 91, 0.11);
  --shadow-soft: 0 8px 26px rgba(33, 111, 92, 0.08);
  background:
    radial-gradient(circle at 88% 5%, rgba(126, 211, 181, 0.2), transparent 27rem),
    linear-gradient(145deg, #fafffd 0%, #edf7f3 52%, #f8fdfa 100%);
}
.admin-shell .sidebar {
  background:
    radial-gradient(circle at 15% 5%, rgba(153, 232, 204, 0.25), transparent 16rem),
    linear-gradient(175deg, #21876e 0%, #176b5a 50%, #0d493f 100%);
  box-shadow: 14px 0 45px rgba(17, 92, 74, 0.14);
}
[dir="rtl"] .admin-shell .sidebar {
  box-shadow: -14px 0 45px rgba(17, 92, 74, 0.14);
}
.admin-shell .sidebar::after {
  background: rgba(114, 221, 181, 0.11);
}
.admin-shell .nav-label {
  color: rgba(215, 244, 233, 0.58);
}
.admin-shell .side-nav a {
  color: rgba(231, 250, 243, 0.8);
}
.admin-shell .side-nav a.active .icon {
  color: #b9f3dc;
  filter: drop-shadow(0 0 7px rgba(167, 239, 211, 0.42));
}
.admin-shell .side-note {
  color: rgba(220, 245, 236, 0.68);
}
.admin-shell .topbar {
  background: rgba(251, 255, 253, 0.76);
  box-shadow: 0 8px 26px rgba(31, 105, 86, 0.06);
}
.admin-shell .btn-primary {
  background: linear-gradient(135deg, #2aa486, var(--accent-strong));
  box-shadow: 0 10px 24px rgba(15, 107, 88, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.admin-shell .btn-primary:hover {
  background: linear-gradient(135deg, #38b092, #0b5c4b);
  box-shadow: 0 14px 30px rgba(15, 107, 88, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.admin-shell .welcome {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.95), transparent 16rem),
    linear-gradient(120deg, rgba(235, 250, 244, 0.94), rgba(207, 238, 226, 0.88));
  box-shadow: 0 16px 40px rgba(28, 110, 89, 0.1), inset 0 1px 0 #fff;
}
.admin-shell .welcome p {
  color: #638178;
}
.admin-shell .welcome .icon {
  color: #2f987d;
  filter: drop-shadow(0 8px 14px rgba(35, 132, 106, 0.2));
}
.admin-shell .stat .stat-icon {
  background: linear-gradient(145deg, #effaf6, #d7f0e7);
  box-shadow: 0 8px 18px rgba(35, 132, 106, 0.11), inset 0 1px 0 #fff;
}
.admin-shell .avatar {
  background: linear-gradient(145deg, #e9f8f2, #ccecdf);
  color: #17745f;
  box-shadow: 0 6px 16px rgba(31, 119, 95, 0.12), inset 0 1px 0 #fff;
}
.admin-shell .badge-soft {
  background: linear-gradient(135deg, #effaf6, #d9f1e8);
  border-color: #c8e9dc;
}
.admin-shell .progress-bar {
  background: linear-gradient(90deg, #16866c, #68bea3);
  box-shadow: 0 0 12px rgba(22, 134, 108, 0.3);
}
.sidebar {
  background:
    radial-gradient(circle at 15% 5%, rgba(100, 214, 255, 0.28), transparent 16rem),
    linear-gradient(175deg, #147fc9 0%, #0c65b3 50%, #084983 100%);
  color: #dcefff;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  box-shadow: 14px 0 45px rgba(20, 97, 154, 0.12);
  overflow: hidden;
}
[dir="rtl"] .sidebar {
  box-shadow: -14px 0 45px rgba(20, 97, 154, 0.12);
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  inset: auto -100px -90px auto;
  background: rgba(93, 211, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 45px rgba(255, 255, 255, 0.02), 0 0 0 90px rgba(255, 255, 255, 0.012);
  pointer-events: none;
}
.sidebar .brand {
  padding: 0 8px 27px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  position: relative;
  z-index: 1;
}
.sidebar .brand img {
  width: 40px;
  height: 40px;
  box-shadow: 0 9px 22px rgba(4, 47, 87, 0.25);
}
.sidebar .brand strong {
  font-size: 12px;
  color: #fff;
  max-width: 160px;
}
.nav-label {
  font-size: 10px;
  color: rgba(210, 239, 255, 0.56);
  padding: 26px 15px 10px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1;
}
.side-nav a {
  color: rgba(231, 247, 255, 0.78);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 13px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.side-nav a.active {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.11));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(4, 54, 99, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}
.side-nav a.active .icon {
  color: #9ee6ff;
  filter: drop-shadow(0 0 7px rgba(119, 222, 255, 0.45));
}
.side-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(-2px);
}
[dir="ltr"] .side-nav a:hover {
  transform: translateX(2px);
}
.side-note {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: rgba(220, 242, 255, 0.63);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}
.side-note strong {
  display: block;
  color: #f1faff;
  margin: 8px 0 4px;
}
.shell-content {
  min-width: 0;
  position: relative;
}
.topbar {
  height: 80px;
  background: rgba(255, 255, 255, 0.67);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: 0 8px 26px rgba(35, 106, 158, 0.055);
}
.topbar-brand {
  font-size: 12px;
  color: var(--muted);
}
.topbar-user {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  height: 42px;
  width: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e9f8ff, #ccecff);
  color: #1477bd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(32, 116, 175, 0.12), inset 0 1px 0 #fff;
}
.avatar.large {
  height: 88px;
  width: 88px;
  border-radius: 24px;
  font-size: 28px;
  border: 4px solid white;
  box-shadow: 0 14px 32px rgba(22, 112, 177, 0.17), 0 0 0 1px rgba(185, 223, 246, 0.8);
}
.user-name {
  font-size: 12px;
  font-weight: 700;
}
.logout {
  border: 0;
  background: none;
  color: #8199ae;
  padding: 8px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.logout:hover {
  color: #d14b61;
  background: #fff0f3;
}
.main-content {
  padding: 36px 42px;
  max-width: 1600px;
  margin: auto;
}
.app-footer {
  padding: 20px 38px;
  color: #95a1a7;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.welcome {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.95), transparent 16rem),
    linear-gradient(120deg, rgba(225, 246, 255, 0.9), rgba(198, 233, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  padding: 27px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(40, 124, 182, 0.1), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
}
.welcome::after {
  content: "";
  width: 150px;
  height: 150px;
  position: absolute;
  inset-inline-end: -42px;
  top: -70px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.16), 0 0 0 56px rgba(255, 255, 255, 0.09);
}
.welcome h2 {
  font-size: 23px;
  margin: 5px 0;
}
.welcome p {
  color: #5f83a0;
  font-size: 12px;
}
.welcome .icon {
  width: 58px;
  height: 58px;
  color: #55aee3;
  margin-inline-end: 12px;
  filter: drop-shadow(0 8px 14px rgba(37, 132, 190, 0.2));
  position: relative;
  z-index: 1;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}
.stat {
  padding: 23px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 19px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px) saturate(135%);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  inset-inline-end: -34px;
  top: -34px;
  background: radial-gradient(circle, rgba(86, 193, 251, 0.15), transparent 70%);
  pointer-events: none;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(34, 118, 177, 0.14), inset 0 1px 0 #fff;
}
.stat .stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.stat .stat-icon {
  background: linear-gradient(145deg, #e9f8ff, #cfedff);
  color: var(--accent);
  padding: 10px;
  border-radius: 13px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(35, 133, 196, 0.12), inset 0 1px 0 #fff;
}
.stat strong {
  font-size: 32px;
  line-height: 1.7;
  font-weight: 800;
  display: block;
  margin-top: 10px;
}
.stat .help {
  font-size: 10px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}
.progress {
  height: 8px;
  background: #e2eff8;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(35, 92, 132, 0.09);
}
.progress-bar {
  background: linear-gradient(90deg, #25a4ed, #65cdf8);
  border-radius: 9px;
  box-shadow: 0 0 12px rgba(37, 164, 237, 0.34);
}
.college-row {
  margin-bottom: 20px;
}
.college-row:last-child {
  margin-bottom: 0;
}
.college-row .row-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}
.person-row:hover {
  background: rgba(231, 246, 255, 0.54);
  padding-inline: 9px;
  border-radius: 12px;
}
.person-row:last-child {
  border: 0;
}
.person-row a {
  margin-inline-start: auto;
}
.profile-grid {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.profile-card {
  text-align: center;
}
.profile-cover {
  height: 80px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.8), transparent 8rem),
    linear-gradient(120deg, #dff5ff, #9edcff);
  position: relative;
  overflow: hidden;
}
.profile-cover::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  inset-inline-end: -22px;
  top: -54px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.13);
}
.profile-card .avatar.large {
  margin-top: -45px;
  position: relative;
}
.profile-card .card-body {
  padding-top: 0;
}
.profile-card h2 {
  font-size: 19px;
  margin: 12px 0 6px;
}
.profile-meta {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
  display: grid;
  gap: 14px;
  text-align: start;
}
.profile-meta div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.profile-meta .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.tab-nav {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.52);
  overflow: auto;
}
.tab-nav button {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 17px 12px;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}
.tab-nav button.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(220, 242, 255, 0.5));
}
.section-intro {
  margin-bottom: 24px;
}
.section-intro p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.table {
  font-size: 12px;
  margin: 0;
  vertical-align: middle;
  --bs-table-color: var(--ink);
}
.table th {
  background: rgba(230, 245, 254, 0.64);
  color: #819098;
  font-size: 10px;
  font-weight: 600;
  padding: 15px 20px;
  white-space: nowrap;
  border-color: var(--line);
}
.table td {
  padding: 16px 20px;
  border-color: var(--line);
}
.table tbody tr {
  transition: background 0.2s ease;
}
.table tbody tr:hover {
  background: rgba(233, 247, 255, 0.52);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table a strong {
  color: var(--ink);
}
.table-responsive {
  overflow-x: auto;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.toolbar .form-control {
  max-width: 320px;
}
.toolbar .form-select {
  max-width: 220px;
}
.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  font-size: 12px;
  color: var(--muted);
}
.document-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.document-row:hover,
.list-item:hover {
  border-color: #b9def4;
  box-shadow: 0 10px 24px rgba(35, 117, 174, 0.08);
  transform: translateY(-1px);
}
.document-icon {
  width: 43px;
  height: 48px;
  border-radius: 9px;
  background: linear-gradient(145deg, #edf9ff, #d5efff);
  color: #358fc5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.document-row .actions {
  margin-inline-start: auto;
}
.document-row h3 {
  font-size: 13px;
}
.document-row p {
  font-size: 11px;
  color: var(--muted);
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 10px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.list-item strong {
  font-size: 13px;
}
.list-item p {
  font-size: 11px;
  color: var(--muted);
}
.upload-box {
  padding: 20px;
  border: 1px dashed #9fd1ef;
  background: rgba(232, 247, 255, 0.55);
  border-radius: 14px;
}
.upload-box input {
  max-width: 100%;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
}
#toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 1000;
  max-width: 90vw;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1687e8, #0d67bc);
  color: white;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 35px rgba(15, 91, 151, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  display: none;
}
[dir="ltr"] #toast {
  transform: translateX(-50%);
}
#toast.error {
  background: #a3343f;
}
dialog {
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  padding: 0;
  width: 650px;
  max-width: 94vw;
  max-height: 90vh;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 32px 90px rgba(9, 66, 109, 0.28), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(140%);
}
dialog::backdrop {
  background: rgba(8, 53, 91, 0.55);
  backdrop-filter: blur(7px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
}
.dialog-body {
  padding: 25px;
}
.close-dialog {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 23px;
}
.stack {
  display: grid;
  gap: 22px;
}
.logo-preview {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #edf8ff;
  border-radius: 14px;
  border: 1px solid #d5ebf8;
  box-shadow: 0 8px 20px rgba(37, 114, 167, 0.1);
}
.mobile-scrim {
  display: none;
}
.bullet-list {
  padding-inline-start: 20px;
  color: var(--muted);
  line-height: 2.3;
}
.security-box {
  max-width: 520px;
}
.loading {
  opacity: 0.5;
  pointer-events: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(43, 166, 238, 0.38);
  outline-offset: 3px;
}
@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (min-width: 1500px) {
  .auth-story {
    padding: 65px 85px;
  }
  .story-main h1 {
    font-size: 49px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 225px minmax(0, 1fr);
  }
  .main-content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .profile-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .stat-grid {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .auth-story {
    padding: 40px 30px;
  }
  .story-main h1 {
    font-size: 35px;
  }
  .auth-content {
    padding: 25px 7%;
  }
  .auth-page {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: 250px;
    transform: translateX(110%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  [dir="ltr"] .sidebar {
    transform: translateX(-110%);
  }
  [dir="ltr"] .sidebar.open {
    transform: translateX(0);
  }
  .mobile-scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 55, 94, 0.58);
    backdrop-filter: blur(5px);
    z-index: 29;
  }
  .menu-toggle {
    display: flex;
  }
  .topbar {
    height: 68px;
    padding: 0 18px;
  }
  .topbar-brand {
    display: none;
  }
  .main-content {
    padding: 24px 18px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-card .profile-meta {
    display: none;
  }
  .profile-card .card-body {
    padding-bottom: 20px;
  }
  .profile-cover {
    height: 65px;
  }
  .auth-page {
    display: block;
  }
  .auth-story {
    padding: 25px;
    min-height: 96px;
    border-radius: 0 0 24px 24px;
  }
  .story-main,
  .story-features,
  .story-foot,
  .story-mark {
    display: none;
  }
  .auth-content {
    padding: 18px 6%;
  }
  .auth-form-wrap {
    padding: 30px 0;
  }
  .auth-form-wrap::before {
    inset: -12px -14px;
    border-radius: 22px;
  }
  .page-top {
    align-items: flex-start;
  }
  h1 {
    font-size: 23px;
  }
  .page-top p {
    font-size: 12px;
  }
  .welcome {
    padding: 22px;
  }
  .welcome h2 {
    font-size: 20px;
  }
  .welcome .icon {
    display: none;
  }
  .app-footer {
    padding: 15px 20px;
  }
  .topbar-user .user-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-body {
    padding: 20px;
  }
  .toolbar {
    padding: 15px;
    flex-wrap: wrap;
  }
  .toolbar .form-control,
  .toolbar .form-select {
    max-width: none;
  }
  .tab-nav {
    padding: 0 8px;
  }
  .tab-nav button {
    padding: 15px 10px;
  }
}
@media (max-width: 480px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .page-top {
    flex-wrap: wrap;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat {
    padding: 16px;
    border-radius: 16px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat .stat-top {
    font-size: 11px;
  }
  .topbar .language {
    padding: 6px 8px;
  }
  .document-row {
    flex-wrap: wrap;
  }
  .welcome p {
    font-size: 11px;
  }
  .story-features {
    flex-wrap: wrap;
  }
  .card-header {
    padding: 17px;
  }
  .app-footer span:last-child {
    display: none;
  }
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("arabic.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@media(max-width:480px){.topbar-user>div{display:none}.topbar .actions{flex-wrap:nowrap}.topbar .avatar{width:36px;height:36px}.section-intro.d-flex{flex-wrap:wrap}.section-intro .btn{white-space:nowrap}}
