/* MENTOREX səhifəsinin başlıq paneli (js/pages/mentorex.html) — qebul.html-dəki "Qəbul şərtləri" başlığı ilə eyni dizayn: tünd lacivərd
   zolaq, sağda mavi parıltı, çörək qırıntısı naviqasiyası, böyük başlıq və qısa izah. Səhifə yalnız style.css yüklədiyi üçün (qebul.css
   içində başqa qaydalar da var) bu qaydalar burada ayrıca saxlanılır; rənglər və ölçülər qebul.css ilə eynidir — biri dəyişəndə o da dəyişməlidir. */

.mx-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem 3.75rem;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 60%, #0a3a63 100%);
  color: #fff;
}

/* Arxa fon: nöqtəli dünya xəritəsi (images/world-dots.svg) + onun üstündə animasiyalı qat (images/world-arcs.svg: Gəncədən təhsil
   istiqamətlərinə qövslər, hərəkət edən nöqtələr, nəbzlər). İkisi də tools/world-dots/generate_world_dots.py ilə qurulur və eyni
   ölçü/yerdədir; parlaq nöqtə Gəncədir. Bütün dünya görünür, sağda; mətn solda olduğu üçün xəritə solda tədricən itir. */
.mx-hero::before,
.mx-hero-arcs {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right 3% center;
  background-size: auto 138%;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 18%, #000 58%);
  pointer-events: none;
}

.mx-hero::before { background-image: url('../images/world-dots.svg?v=20261017b'); opacity: 0.7; }
.mx-hero-arcs { background-image: url('../images/world-arcs.svg?v=20261017b'); opacity: 0.8; }

/* Hərəkəti azaltmaq seçilibsə yalnız statik nöqtəli xəritə qalır */
@media (prefers-reduced-motion: reduce) {
  .mx-hero-arcs { display: none; }
}

.mx-hero::after {
  content: '';
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 210, 255, 0.22) 0%, rgba(38, 210, 255, 0) 70%);
  pointer-events: none;
}

.mx-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.mx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.mx-breadcrumb li + li::before {
  content: '/';
  margin-right: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
}

.mx-breadcrumb a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s var(--ease); }
.mx-breadcrumb a:hover { color: var(--cyan); }
.mx-breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* Başlıq mətni solda, MENTOREX loqosu sağda (loqo ağ fonludur — tünd zolaqda ağ kartda durur); dar ekranda loqo mətnin altına düşür */
.mx-hero-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 2.5rem; }
.mx-hero-text { flex: 1 1 24rem; min-width: 0; }
.mx-hero-logo {
  flex: 0 0 auto; width: 21rem; max-width: 100%; height: auto; padding: 0.7rem 1rem; border-radius: 1rem; background: #fff;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.7);
}

.mx-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.mx-hero p {
  max-width: 44rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Daxil olmuş adminin adı (js/mentorex.js doldurur; boşdursa göstərilmir) */
.mx-hero-user {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}
.mx-hero-user:empty { display: none; }

/* Panel artıq bu başlığın altındadır — səhifənin yuxarı boşluğu azaldılır */
.mx-hero + .login-section { padding-top: 2.5rem; }

/* Giriş icazəsi olmayanda göstərilən kartın başlığı (səhifənin tək <h1>-i panelin başlığıdır) */
.login-card h2.mx-gate-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

@media (max-width: 600px) {
  .mx-hero { padding: 2.5rem 1rem 2.75rem; }
  .mx-hero-logo { width: 16rem; }
  .mx-hero::before,
  .mx-hero-arcs {
    background-size: auto 118%;
    background-position: 62.9% 20%;
    -webkit-mask-image: linear-gradient(180deg, transparent 22%, #000 78%);
    mask-image: linear-gradient(180deg, transparent 22%, #000 78%);
  }
  .mx-hero::before { opacity: 0.6; }
  .mx-hero + .login-section { padding-top: 1.75rem; }
}

/* =====================================================================================================================
   Qovluq (şəxs) bölməsi — siyahı kartları, süzgəc çipləri, şəxsin kartı. js/mentorex.js bu siniflərlə markup yaradır.
   Mərhələ rəngləri (--st-*) ilk .mx-status rəngləri ilə eynidir (css/style.css); hər kart/avatar mərhələsinin rəngini alır.
   ===================================================================================================================== */

#mentorexBlock {
  --st-new: #6b7280;       --st-new-bg: #eef0f6;
  --st-docs: #1d4ed8;      --st-docs-bg: #e6f0ff;
  --st-applied: #6d28d9;   --st-applied-bg: #efe7ff;
  --st-admitted: #15803d;  --st-admitted-bg: #e3f7ec;
  --st-visa: #b45309;      --st-visa-bg: #fff1db;
  --st-departed: #0e7490;  --st-departed-bg: #d9f2f7;
  --st-cancelled: #6b7280; --st-cancelled-bg: #f1f1f1;
}

.mx-icon { flex: none; }

/* ---------- süzgəc çipləri və xəbərdarlıqlar */
#mentorexBlock .mx-stats { display: block; margin-bottom: 1.1rem; }
#mentorexBlock .mx-stats[hidden] { display: none; }
.mx-filterbar { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mx-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font: 500 0.85rem var(--font-body); cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.mx-chip b { padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); font-size: 0.75rem; }
.mx-chip:hover { border-color: var(--navy); }
.mx-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 14px -8px rgba(0, 34, 63, 0.6); }
.mx-chip.is-active b { background: rgba(255, 255, 255, 0.18); color: #fff; }
.mx-chip:focus-visible, .mx-card:focus-visible, .mx-step:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.mx-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--st-new); }
.mx-dot--docs { background: var(--st-docs); } .mx-dot--applied { background: var(--st-applied); } .mx-dot--admitted { background: var(--st-admitted); }
.mx-dot--visa { background: var(--st-visa); } .mx-dot--departed { background: var(--st-departed); } .mx-dot--cancelled { background: var(--st-cancelled); }
.mx-chip.is-active .mx-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }

.mx-alerts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.mx-alert {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border: 1px solid #f0c674; border-radius: 0.7rem;
  background: #fff8e6; color: #8a5200; font-size: 0.84rem;
}
.mx-alert b { font-weight: 800; }

/* ---------- siyahının alətlər zolağı */
#mentorexBlock .students-toolbar { margin-bottom: 1.1rem; }

/* ---------- şəxs kartları */
#mentorexBlock .mentorex-folders { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }

.mx-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0.7rem; padding: 1.1rem 1.15rem 1rem; overflow: hidden;
  border: 1px solid var(--line); border-radius: 1rem; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  --st: var(--st-new); --st-bg: var(--st-new-bg);
}
.mx-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--st); }
.mx-card:hover { transform: translateY(-3px); border-color: var(--st); box-shadow: 0 16px 28px -18px rgba(0, 34, 63, 0.45); }
.mx-card--docs { --st: var(--st-docs); --st-bg: var(--st-docs-bg); }
.mx-card--applied { --st: var(--st-applied); --st-bg: var(--st-applied-bg); }
.mx-card--admitted { --st: var(--st-admitted); --st-bg: var(--st-admitted-bg); }
.mx-card--visa { --st: var(--st-visa); --st-bg: var(--st-visa-bg); }
.mx-card--departed { --st: var(--st-departed); --st-bg: var(--st-departed-bg); }
.mx-card--cancelled { --st: var(--st-cancelled); --st-bg: var(--st-cancelled-bg); opacity: 0.78; }
.mx-card--cancelled:hover { opacity: 1; }

.mx-card-head { display: flex; align-items: center; gap: 0.75rem; }
.mx-card-title { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.mx-card-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.25; word-break: break-word; }
.mx-card-place { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--ink-soft); }
.mx-card-program { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.86rem; color: var(--ink); line-height: 1.4; }
.mx-card-program .mx-icon { margin-top: 0.15rem; color: var(--ink-soft); }

.mx-avatar {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--st-bg, var(--st-new-bg)); color: var(--st, var(--st-new)); font: 700 0.9rem var(--font-display); letter-spacing: 0.02em;
}
.mx-avatar--lg { width: 3.6rem; height: 3.6rem; font-size: 1.2rem; }
.mx-avatar--docs { --st: var(--st-docs); --st-bg: var(--st-docs-bg); } .mx-avatar--applied { --st: var(--st-applied); --st-bg: var(--st-applied-bg); }
.mx-avatar--admitted { --st: var(--st-admitted); --st-bg: var(--st-admitted-bg); } .mx-avatar--visa { --st: var(--st-visa); --st-bg: var(--st-visa-bg); }
.mx-avatar--departed { --st: var(--st-departed); --st-bg: var(--st-departed-bg); } .mx-avatar--cancelled { --st: var(--st-cancelled); --st-bg: var(--st-cancelled-bg); }

/* son tarix nişanı */
.mx-deadline-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; padding: 0.25rem 0.65rem; border-radius: 999px;
  background: var(--bg-alt); color: var(--ink-soft); font-size: 0.8rem; font-weight: 500;
}
.mx-deadline-pill.is-soon { background: #fff1db; color: #9a4a00; font-weight: 600; }
.mx-deadline-pill.is-late { background: #fdecea; color: #b3261e; font-weight: 600; }

/* vacib sənədlər: hər növ üçün bir seqment */
.mx-docs { display: flex; flex-direction: column; gap: 0.4rem; margin-top: auto; }
.mx-docs-head { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-soft); }
.mx-docs-head b { color: var(--ink); }
.mx-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.mx-segs i { height: 7px; border-radius: 3px; background: #e5e7ef; }
.mx-segs i.is-on { background: var(--st-admitted); }
.mx-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-soft); }
.mx-card-foot span { display: inline-flex; align-items: center; gap: 0.35rem; }
.mx-card-foot .mx-warn { color: #b3261e; font-weight: 600; }

/* boş vəziyyət */
.mx-empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 3rem 1.5rem; text-align: center;
  border: 1.5px dashed var(--line); border-radius: 1rem; background: #fcfcff; color: var(--ink-soft);
}
.mx-empty .mx-icon { color: var(--navy); opacity: 0.5; }
.mx-empty strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.mx-empty span { max-width: 30rem; line-height: 1.55; }

/* ---------- şəxsin kartı (qovluq) */
.mx-back { margin-bottom: 1.1rem; }
.mx-folder-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.mx-folder-id { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.mx-folder-id h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; }
.mx-folder-sub { margin: 0.25rem 0 0; color: var(--ink-soft); }
#mentorexBlock .mentorex-folder-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mx-btn {
  padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 0.7rem; background: #fff; color: var(--ink); font: 500 0.85rem var(--font-body);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.mx-btn:hover { border-color: var(--navy); background: #f6f8fc; }
.mx-btn--danger { color: #b3261e; }
.mx-btn--danger:hover { border-color: #b3261e; background: #fdecea; }

/* mərhələ addımları */
.mx-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-bottom: 1.2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fcfcff; }
.mx-stepper { flex: 1 1 520px; min-width: 0; overflow-x: auto; }
.mx-stepper-list { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.mx-stepper-list li { flex: 1 0 auto; position: relative; }
.mx-stepper-list li + li::before { content: ''; position: absolute; top: 1.05rem; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.mx-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: 100%; padding: 0.15rem 0.4rem; border: 0;
  background: none; font: inherit; color: var(--ink-soft); cursor: pointer;
}
.mx-step-dot { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-size: 0.85rem; font-weight: 700; transition: all 0.2s var(--ease); }
.mx-step-label { font-size: 0.78rem; font-weight: 500; text-align: center; line-height: 1.25; }
.mx-step:hover .mx-step-dot { border-color: var(--navy); color: var(--navy); }
.mx-step.is-done .mx-step-dot { background: var(--st-admitted); border-color: var(--st-admitted); color: #fff; }
.mx-stepper-list li:has(.is-done) + li::before, .mx-stepper-list li:has(.is-current)::before { background: var(--st-admitted); }
.mx-step.is-current .mx-step-dot { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 4px rgba(0, 34, 63, 0.14); }
.mx-step.is-current .mx-step-label { color: var(--ink); font-weight: 700; }
.mx-cancelled { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.8rem; padding: 0.55rem 0.8rem; border-radius: 0.7rem; background: #f1f1f1; color: #4b5563; font-size: 0.86rem; }
.mx-stage .mx-status-quick { flex: none; }

/* məlumat kartları */
#mentorexBlock .mx-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.7rem; margin: 0 0 1.4rem; }
#mentorexBlock .mx-info .mx-info-item { flex-direction: row; }
.mx-info-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 0.8rem; background: #fff; }
.mx-info-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 0.6rem; background: var(--bg-alt); color: var(--navy); }
#mentorexBlock .mx-info .mx-info-item > div { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
#mentorexBlock .mx-info .mx-info-item > div > span { font-size: 0.75rem; color: var(--ink-soft); }
#mentorexBlock .mx-info .mx-info-item strong { font-weight: 600; word-break: break-word; }
.mx-info-item a { color: var(--navy); }

/* bölmə başlıqları və vacib sənədlərin irəliləyişi */
.mx-section-head { display: flex; align-items: center; gap: 0.8rem; margin: 1.6rem 0 0.8rem; }
.mx-section-head h4 { margin: 0; font-family: var(--font-display); font-size: 1.1rem; }
.mx-checklist-count { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--bg-alt); font-size: 0.8rem; font-weight: 700; }
.mx-progress--lg { flex: 0 1 220px; height: 8px; }
.mx-progress--lg span { background: var(--st-admitted); transition: width 0.4s var(--ease); }
#mentorexBlock .mx-checklist { gap: 0.5rem; }
#mentorexBlock .mx-check { padding: 0.4rem 0.85rem; font-weight: 500; transition: transform 0.15s var(--ease); }
#mentorexBlock .mx-check:hover { transform: translateY(-1px); }

/* sənəd yükləmə sahəsi */
#mentorexBlock .mentorex-drop { gap: 0.3rem; padding: 1.6rem 1rem; border: 1.5px dashed #c9cde0; border-radius: 1rem; background: #fafbff; transition: border-color 0.2s, background 0.2s; }
#mentorexBlock .mentorex-drop .mx-drop-icon { color: var(--navy); opacity: 0.6; }
#mentorexBlock .mentorex-drop:hover, #mentorexBlock .mentorex-drop.is-over { border-color: var(--navy); background: rgba(0, 34, 63, 0.04); }

/* sənəd cədvəli */
#mentorexBlock #mentorexDocsTable tbody tr { transition: background 0.15s; }
#mentorexBlock #mentorexDocsTable tbody tr:hover { background: #f6f8fc; }

/* qeydlər: zaman xətti */
#mentorexBlock .mx-notes { position: relative; gap: 0; padding-left: 1.4rem; }
#mentorexBlock .mx-notes::before { content: ''; position: absolute; left: 0.32rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: var(--line); }
#mentorexBlock .mx-notes li { position: relative; padding: 0 0 1.1rem 0.4rem; border: 0; border-radius: 0; background: none; }
#mentorexBlock .mx-notes li::before { content: ''; position: absolute; left: -1.4rem; top: 0.35rem; width: 0.7rem; height: 0.7rem; border: 2px solid var(--navy); border-radius: 50%; background: #fff; }
#mentorexBlock .mx-notes li p { margin: 0.3rem 0 0; padding: 0.65rem 0.85rem; border: 1px solid var(--line); border-radius: 0.2rem 0.8rem 0.8rem 0.8rem; background: #fff; }

/* ---------- paylaşma linki (sənəd/qovluq üçün müddətli yükləmə ünvanı) */
a.mx-btn { display: inline-flex; align-items: center; text-decoration: none; }
.mx-share { margin-bottom: 1.2rem; }
.mx-share .section-note { margin: 0 0 0.9rem; }
.mx-share-create { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem; margin-bottom: 0.9rem; }
.mx-share-create label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; }
.mx-share-result { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.9rem; }
.mx-share-result input { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 0.7rem; background: #fff; font: 0.9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--navy); }
.mx-share-create[hidden], .mx-share-result[hidden] { display: none; }
.mx-share-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mx-share-result p { margin: 0; }
.mx-share-status { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--bg-alt); color: var(--ink-soft); }
.mx-share-status.is-active { background: var(--st-admitted-bg, #e3f7ec); color: var(--st-admitted, #15803d); }
.mx-share-status.is-expired { background: #fff1db; color: #9a4a00; }
.mx-share-status.is-revoked { background: #fdecea; color: #b3261e; }

/* ---------- sol panel + sağda iş sahəsi (şəxslərin siyahısı həmişə görünür) */
.mx-shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 1.6rem; align-items: start; scroll-margin-top: 5.5rem; }
.mx-main { min-width: 0; }
.mx-side {
  position: sticky; top: 5.75rem; display: flex; flex-direction: column; gap: 0.75rem; max-height: calc(100vh - 7rem); padding: 1rem;
  border: 1px solid var(--line); border-radius: 1rem; background: #fafbff;
}
.mx-side > * { min-width: 0; }
.mx-side-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
#mentorexBlock .mx-side-head h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.1rem; }
.mx-side-count { padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); font: 700 0.75rem var(--font-body); }
.mx-side-count:empty { display: none; }
.mx-side-head .btn-submit { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.mx-side input[type="search"] { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 0.6rem; background: #fff; font: inherit; font-size: 0.9rem; }
.mx-side input[type="search"]:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
#mentorexBlock .mx-side .mx-stats { margin: 0; }
.mx-side .mx-filterbar { gap: 0.35rem; }
.mx-side .mx-chip { min-width: 0; gap: 0.4rem; padding: 0.32rem 0.6rem; font-size: 0.78rem; }
.mx-side .mx-chip .mx-dot { flex: none; }
.mx-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-side .mx-chip b { padding: 0 0.4rem; font-size: 0.7rem; }
.mx-side .mx-alerts { flex-direction: column; gap: 0.35rem; margin-top: 0.55rem; }
.mx-side .mx-alert { padding: 0.35rem 0.6rem; border-radius: 0.6rem; font-size: 0.78rem; line-height: 1.35; }
.mx-side-sort { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-size: 0.8rem; color: var(--ink-soft); }
.mx-side-sort select { flex: 1; max-width: 12rem; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; font: inherit; font-size: 0.82rem; color: var(--ink); }

.mx-side-list { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; min-height: 7rem; margin: 0 -0.4rem; padding: 0.1rem 0.4rem 0.2rem; overflow-y: auto; overscroll-behavior: contain; }
.mx-side-empty { margin: 0.4rem 0; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }
.mx-side-item {
  --st: var(--st-new); --st-bg: var(--st-new-bg);
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; width: 100%; padding: 0.5rem 0.6rem;
  border: 1px solid transparent; border-radius: 0.75rem; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.mx-side-item--docs { --st: var(--st-docs); --st-bg: var(--st-docs-bg); } .mx-side-item--applied { --st: var(--st-applied); --st-bg: var(--st-applied-bg); }
.mx-side-item--admitted { --st: var(--st-admitted); --st-bg: var(--st-admitted-bg); } .mx-side-item--visa { --st: var(--st-visa); --st-bg: var(--st-visa-bg); }
.mx-side-item--departed { --st: var(--st-departed); --st-bg: var(--st-departed-bg); } .mx-side-item--cancelled { --st: var(--st-cancelled); --st-bg: var(--st-cancelled-bg); opacity: 0.75; }
.mx-side-item:hover { background: #fff; border-color: var(--line); }
.mx-side-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.mx-side-item.is-active { background: #fff; border-color: var(--navy); box-shadow: inset 3px 0 0 var(--st), 0 8px 16px -12px rgba(0, 34, 63, 0.5); opacity: 1; }
.mx-avatar--sm { width: 2.15rem; height: 2.15rem; font-size: 0.75rem; }
.mx-side-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.mx-side-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; font-weight: 600; }
.mx-side-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; color: var(--ink-soft); }
.mx-side-meta em { font-style: normal; font-weight: 600; color: var(--st); }
.mx-side-bar { display: block; height: 3px; margin-top: 0.1rem; border-radius: 2px; background: #e5e7ef; overflow: hidden; }
.mx-side-bar b { display: block; height: 100%; background: var(--st-admitted); }
.mx-side-flags { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.mx-side-docs { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); }
.mx-side-flag { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #f0a53a; }
.mx-side-flag.is-late { background: #d6342a; box-shadow: 0 0 0 3px rgba(214, 52, 42, 0.18); }
.mx-side-flag.is-soon { background: #f0a53a; box-shadow: 0 0 0 3px rgba(240, 165, 58, 0.22); }

/* orta enli ekranda sol panel daha dar */
@media (max-width: 1100px) {
  .mx-shell { grid-template-columns: 270px minmax(0, 1fr); gap: 1.2rem; }
}

/* dar ekran: panel yuxarıda qalır, yalnız axtarış/süzgəc/sıralama (siyahını kartlar göstərir); qovluq açılanda panel gizlənir */
@media (max-width: 900px) {
  .mx-shell { grid-template-columns: minmax(0, 1fr); }
  .mx-side { position: static; max-height: none; }
  .mx-side-list { display: none; }
  .mx-shell.is-folder .mx-side { display: none; }
  /* süzgəc çipləri bir sətirdə sürüşdürülür — panel ekranı doldurmasın */
  .mx-side .mx-filterbar { flex-wrap: nowrap; margin: 0 -0.25rem; padding: 0 0.25rem 0.3rem; overflow-x: auto; scrollbar-width: thin; }
  .mx-side .mx-chip { flex: none; }
}

@media (max-width: 640px) {
  #mentorexBlock .mentorex-folders { grid-template-columns: 1fr; }
  .mx-folder-id h3 { font-size: 1.3rem; }
  .mx-avatar--lg { width: 3rem; height: 3rem; font-size: 1rem; }
  .mx-stepper-list li { min-width: 5.2rem; }
  #mentorexBlock .mx-info { grid-template-columns: 1fr; }
}

/* =====================================================================================================================
   Şəxsin SƏNƏD YÜKLƏMƏ səhifəsi (js/pages/mentorex-upload.html, js/mentorex-upload.js): hər sənəd növü üçün bir kart — vəziyyət,
   yüklənmiş fayllar və "Fayl seç" düyməsi. Telefonda açılacağı üçün tək sütuna düşür, düymələr böyükdür.
   ===================================================================================================================== */
.mxu-app { max-width: 62rem; margin: 0 auto; }
.mxu-gate { max-width: 34rem; margin: 0 auto; text-align: center; }

.mxu-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem; margin-bottom: 0.9rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff;
}
.mxu-summary-text { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.mxu-summary-text strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); }
.mxu-summary .mx-progress--lg { flex: 1 1 12rem; max-width: 24rem; }
.mxu-summary .mx-progress span { background: #15803d; transition: width 0.4s var(--ease); }   /* --st-admitted yalnız kabinetin #mentorexBlock-undadır */
.mxu-rules { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }

.mxu-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); gap: 1rem; margin: 0.9rem 0 1.25rem; }
.mxu-group { grid-column: 1 / -1; margin: 0.4rem 0 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.mxu-group:first-child { margin-top: 0; }
.mxu-group small { font: 500 0.85rem var(--font-body); color: var(--ink-soft); }
.mxu-slot {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.1rem 1.15rem 1.15rem;
  border: 1.5px solid var(--line); border-radius: 1rem; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.mxu-slot.is-done { border-color: #9fd9b6; background: #f7fdf9; }
.mxu-slot.is-over { border-color: var(--navy); background: #f2f8ff; box-shadow: 0 0 0 4px rgba(0, 34, 63, 0.08); }
.mxu-slot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.mxu-slot h3 { margin: 0; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; color: var(--navy); }
.mxu-badge {
  flex: none; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft);
  font-size: 0.74rem; font-weight: 700; white-space: nowrap;
}
.mxu-slot.is-done .mxu-badge { background: #e3f7ec; color: #15803d; }

.mxu-files { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.mxu-files:empty { display: none; }
.mxu-file {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; border-radius: 0.6rem; background: #fff;
  border: 1px solid #d5ecde; font-size: 0.85rem;
}
.mxu-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mxu-file-size { flex: none; color: var(--ink-soft); font-size: 0.78rem; }
.mxu-file-remove {
  flex: none; width: 1.7rem; height: 1.7rem; border: none; border-radius: 50%; background: transparent; color: var(--ink-soft);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.mxu-file-remove:hover, .mxu-file-remove:focus-visible { background: #fdecea; color: #b3261e; outline: none; }

.mxu-pick {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: auto; padding: 0.75rem 1rem; min-height: 2.9rem;
  border: 1.5px dashed #b9c4d6; border-radius: 0.8rem; background: #fbfcff; color: var(--navy); font: 600 0.92rem var(--font-body);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.mxu-pick:hover, .mxu-pick:focus-within { border-color: var(--navy); background: #f2f6fc; }
.mxu-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mxu-pick svg { flex: none; }
.mxu-slot.is-busy .mxu-pick { opacity: 0.6; cursor: progress; }
.mxu-slot-msg { min-height: 1.1em; margin: -0.2rem 0 0; font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); }
.mxu-slot-msg.is-error { color: #b3261e; }
.mxu-slot-msg.is-success { color: #15803d; }
.mxu-footnote { margin: 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.55; }

@media (max-width: 640px) {
  /* telefonda başlıq yığcam olsun: sənəd xanaları tez görünsün (loqo qalır sayt başlığında) */
  .mxu-hero { padding: 2rem 1.25rem 2.25rem; }
  .mxu-hero h1 { font-size: 1.9rem; }
  .mxu-hero .mx-hero-logo { display: none; }
  .mxu-slots { grid-template-columns: 1fr; }
  .mxu-summary-text strong { font-size: 1.35rem; }
}

/* kabinetdə: şəxsin özü yüklədiyi sənədin nişanı və yükləmə linkləri cədvəli */
.mx-via {
  display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: #e6f0ff; color: #1d4ed8;
  font-size: 0.72rem; font-weight: 700; vertical-align: middle; white-space: nowrap;
}

/* =====================================================================================================================
   Kabinet səhifəsi (js/pages/mentorex.html) — daha rahat istifadə: yığcam başlıq, qovluq bölmələri (Sənədlər / Linklər /
   Qeydlər), iki link işi üçün ayrı kartlar, sənəd sətrində ikonlu düymələr. js/mentorex.js#setMentorexTab.
   ===================================================================================================================== */

/* Başlıq paneli iş sahəsini aşağı itələməsin: yığcam variant (yalnız kabinet səhifəsində; şəxsin yükləmə səhifəsi əvvəlki kimi) */
.mx-hero--compact { padding: 1.5rem 1.5rem 1.6rem; }
.mx-hero--compact .mx-breadcrumb { margin-bottom: 0.6rem; }
.mx-hero--compact .mx-hero-body { gap: 1rem 2rem; }
.mx-hero--compact h1 { margin-bottom: 0.4rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.mx-hero--compact .mx-hero-logo { width: 13rem; padding: 0.45rem 0.7rem; }
.mx-hero--compact .mx-hero-user { margin-top: 0.6rem; }
.mx-hero--compact + .login-section { padding-top: 1.5rem; }
@media (max-width: 600px) {
  .mx-hero--compact { padding: 1.4rem 1rem 1.5rem; }
  .mx-hero--compact .mx-hero-logo { display: none; }
}

/* Ana səhifədə sol siyahı sağdakı kartların təkrarıdır — yalnız qovluq açıqkən (şəxslər arası keçid üçün) görünür */
.mx-shell.is-home .mx-side-list { display: none; }

/* Bölmələr */
.mx-tabs { display: flex; gap: 0.25rem; margin: 1.4rem 0 1.2rem; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mx-tabs::-webkit-scrollbar { display: none; }
.mx-tab {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: -2px; padding: 0.7rem 1.1rem;
  border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-soft);
  font: 600 0.95rem var(--font-body); white-space: nowrap; cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.mx-tab:hover { color: var(--navy); }
.mx-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; border-radius: 0.5rem; }
.mx-tab.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.mx-tab-count { min-width: 1.35rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); font-size: 0.74rem; font-weight: 700; text-align: center; }
.mx-tab-count:empty { display: none; }
.mx-tab.is-active .mx-tab-count { background: var(--navy); color: #fff; }
.mx-tab.has-new::after { content: ''; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #e0762b; box-shadow: 0 0 0 3px rgba(224, 118, 43, 0.22); }   /* başqa bölmədəykən yeni sənəd gəldi */
.mx-panel[hidden] { display: none; }
.mx-panel > .mx-section-head:first-child { margin-top: 0.2rem; }

/* Başlıqdakı əsas düymə */
.mx-btn--primary { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 600; }
.mx-btn--primary:hover { border-color: var(--navy-deep); background: var(--navy-deep); }

/* Linklər: iki ayrı iş — hər biri öz kartında (nə edir, düyməsi, cədvəli) */
.mx-link-card { margin-bottom: 1.25rem; padding: 1.15rem 1.25rem 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.mx-link-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.8rem 1.2rem; margin-bottom: 0.9rem; }
.mx-link-card-head > div { flex: 1 1 20rem; min-width: 0; }
.mx-link-card-head h4 { margin: 0 0 0.3rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.mx-link-card-head p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }
.mx-link-card .mx-share { margin-top: 0; background: var(--bg-alt); }
.mx-link-card .inventory-table-scroll { margin-top: 0.4rem; }

/* Sənəd sətri: «Aç» və «Endir» mətnlə, qalanı ikonla (hər birinin izahı üzərinə gələndə görünür) */
.mx-row-actions { white-space: nowrap; }
.mx-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: none; border-radius: 0.55rem; background: transparent; color: var(--ink-soft); cursor: pointer; vertical-align: middle; }
.mx-icon-btn svg { width: 17px; height: 17px; }
.mx-icon-btn:hover, .mx-icon-btn:focus-visible { background: var(--bg-alt); color: var(--navy); outline: none; }
.mx-icon-btn.is-danger:hover, .mx-icon-btn.is-danger:focus-visible { background: #fdecea; color: #b3261e; }
#mentorexDocsTable tr.is-flash { animation: mx-flash 1.5s ease; }
@keyframes mx-flash { 0%, 60% { background: #fff6d6; } 100% { background: transparent; } }
