:root {
  /* Oxford-vari rəng tonları: dərin Oxford Blue + parlaq cyan aksent —
     ox.ac.uk-dan ilhamlanan orijinal sxem. */
  --navy: #00223f;
  --navy-deep: #001529;
  --cyan: #26d2ff;
  --cyan-solid: #26d2ff;
  --mint: #1fd1a8;
  --amber: #ffb454;
  --ink: #12131a;
  --ink-soft: #5b5f72;
  --bg: #f6f6fb;
  --bg-alt: #edeef8;
  --line: #e1e2ee;
  --radius: 1rem;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Kabinetlər geniş ekranda boş kənarları işlədir (2026-11-10): kabinet, kitabxana kabineti və MENTOREX açıq olanda bütün --max (başlıq, məzmun,
   altbilgi) 1760px olur; ictimai səhifələr 1240px qalır. Ayrıca açılan modul səhifələri (Yataqxana, Yeməkxana, Şəbəkə, Fayllarım) da 1760px-dir.
   :has() dəstəklənməyən köhnə brauzerdə sadəcə əvvəlki en qalır. */
body:has(#dashboardPanel:not([hidden])),
body:has(#libraryDashboardSection:not([hidden])),
body:has(#mentorexApp:not([hidden])) { --max: 1760px; }
/* Modul səhifələrində başlıq və altbilgi də məzmunla eyni enə düşsün (məzmun öz CSS-ində 1760px-dir). */
.netp-body, .cntp-body, .pf-body, .dormp-body { --max: 1760px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ keçid animasiyaları
   1) Səhifələr arası (View Transitions API, yalnız CSS): saytın bir səhifəsindən digərinə keçəndə köhnə səhifə yavaşca itir,
      yenisi aşağıdan yuxarı sürüşərək görünür; başlıq (.site-header) yerində qalır — yalnız ölçüsü/fonu yumşaq dəyişir.
      Hər iki səhifə qaydanı daşımalıdır: style.css-siz səhifələrdə (exam.css, biology.css, whiteboard.css) eyni blok var.
      Dəstəkləməyən brauzer (köhnə Firefox) sadəcə animasiyasız keçir.
   2) Səhifə daxilində: kabinetdə bölmə dəyişəndə (.dashboard-block, davamiyyətin alt-panelləri) yeni bölmə yumşaq açılır.
      fill-mode QƏSDƏN "backwards"-dır: animasiya bitəndən sonra transform qalmasın — yoxsa blokun içindəki position:fixed
      pəncərələr (modallar) bloka bağlanardı. Hərəkəti azaltmaq istəyənlərdə (prefers-reduced-motion) hamısı söndürülür. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 0.2s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: page-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: 0.35s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }

.dashboard-block:not([hidden]),
.attendance-panel:not([hidden]) { animation: section-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes section-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .dashboard-block:not([hidden]), .attendance-panel:not([hidden]) { animation: none; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Qısa məzmunlu səhifələrdə (giriş, qeydiyyat və s.) footer səhifənin
   sonuna "yapışdırılır" — əks halda ekran məzmundan hündür olanda
   footer-dən sonra boş, mənasız bir sahə qalırdı. */
main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.5);
}

/* Kabinet açıq olanda (login.html-də #dashboardPanel, library.html-də #libraryDashboardSection görünür; kabinetin alt səhifələrində
   başlığa .site-header--map yazılıb) başlıq bir az hündür olur, arxa fonda Gəncənin xəritəsi.
   Soldan tünd göy keçid yazının oxunmasını, sağdakı keçid isə profil kartının fonla qarışmamasını təmin edir. */
body:has(#dashboardPanel:not([hidden])) .site-header,
body:has(#libraryDashboardSection:not([hidden])) .site-header,
.site-header--map {
  background:
    linear-gradient(90deg, rgba(0, 21, 41, 0.92) 0%, rgba(0, 21, 41, 0.55) 38%, rgba(0, 21, 41, 0.35) 62%, rgba(0, 21, 41, 0.8) 100%),
    var(--navy) url('../images/cabinet-header-map.webp') center 40% / cover no-repeat;
  border-bottom: 2px solid rgba(240, 128, 96, 0.55);
  /* Xəritə yavaş-yavaş «üzür»: şəkil başlıqdan bir az böyük götürülür və onun mövqeyi 70 saniyəyə
     bir küncdən o biri küncə sürüşüb geri qayıdır. Gradiyent qatı yerində qalır, ona görə yazı həmişə oxunur. */
  background-size: 100% 100%, max(125%, 560px) auto;
  animation: header-map-drift 70s ease-in-out infinite alternate;
}
@keyframes header-map-drift {
  0%   { background-position: 0 0, 0% 25%; }
  50%  { background-position: 0 0, 60% 55%; }
  100% { background-position: 0 0, 100% 40%; }
}
/* Küçə xətləri boyunca işıq axır: xəritənin parlaq surəti üst qatda eyni ölçü və eyni hərəkətlə durur,
   onu yalnız sürüşən ensiz bir zolaq (mask) açır — zolaq keçdiyi yerdə xətlər yanıb-sönür. */
body:has(#dashboardPanel:not([hidden])) .site-header::before,
body:has(#libraryDashboardSection:not([hidden])) .site-header::before,
.site-header--map::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('../images/cabinet-header-map.webp') no-repeat;
  background-size: max(125%, 560px) auto;
  filter: contrast(4) brightness(1.5) saturate(1.6);   /* fon tündləşir, yalnız xətlər parlayır */
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(105deg, transparent 0 42%, #000 50%, transparent 58% 100%);
          mask-image: linear-gradient(105deg, transparent 0 42%, #000 50%, transparent 58% 100%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: header-map-lines-drift 70s ease-in-out infinite alternate, header-map-glow 7s linear infinite;
}
body:has(#dashboardPanel:not([hidden])) .site-header .header-inner,
body:has(#libraryDashboardSection:not([hidden])) .site-header .header-inner,
.site-header--map .header-inner { position: relative; z-index: 1; }
@keyframes header-map-lines-drift {
  0%   { background-position: 0% 25%; }
  50%  { background-position: 60% 55%; }
  100% { background-position: 100% 40%; }
}
@keyframes header-map-glow {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(#dashboardPanel:not([hidden])) .site-header,
  body:has(#libraryDashboardSection:not([hidden])) .site-header,
  .site-header--map { animation: none; background-position: 0 0, center 40%; }
  body:has(#dashboardPanel:not([hidden])) .site-header::before,
  body:has(#libraryDashboardSection:not([hidden])) .site-header::before,
  .site-header--map::before { display: none; }
}
body:has(#dashboardPanel:not([hidden])) .site-header .header-inner,
body:has(#libraryDashboardSection:not([hidden])) .site-header .header-inner,
.site-header--map .header-inner { padding-top: 1.9rem; padding-bottom: 1.9rem; }
/* Xəritə OpenStreetMap məlumatından çəkilib (ODbL) — mənbə göstərilməlidir. */
body:has(#dashboardPanel:not([hidden])) .site-header::after,
body:has(#libraryDashboardSection:not([hidden])) .site-header::after,
.site-header--map::after {
  content: '© OpenStreetMap contributors';
  position: absolute; right: 0.6rem; bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.45); font-size: 0.62rem; letter-spacing: 0.02em; pointer-events: none;
}
@media (max-width: 700px) {
  body:has(#dashboardPanel:not([hidden])) .site-header .header-inner,
  body:has(#libraryDashboardSection:not([hidden])) .site-header .header-inner,
  .site-header--map .header-inner { padding-top: 1.1rem; padding-bottom: 1.1rem; }
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.6rem;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}

.main-nav {
  display: none;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--cyan); }

.main-nav a[hidden] { display: none; }

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--cyan-solid);
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-login-btn:hover { background: #fff; color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.45); }
.nav-login-btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }

/* "Kitabxana" düyməsi — "Giriş"in yanında, amma ikinci dərəcəli (konturlu)
   görünür ki, əsas çağırış düyməsi "Giriş" olaraq qalsın. */
.nav-library-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-library-btn:hover { background: rgba(255,255,255,0.14); border-color: #fff; transform: translateY(-2px); }
.nav-library-btn:active { transform: translateY(0) scale(0.97); }

/* "İmtahan" düyməsi (Kitabxana ilə Giriş arasında) — liseyin qızılı rəngində ki, şagird tez tapsın. Kitabxanadan fərqli olaraq
   telefonda da görünür (yalnız ikon + qısa söz). Səhifə: /imtahan (js/pages/imtahan.html). */
.nav-exam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: #c9a227;
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.nav-exam-btn svg { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-exam-btn:hover { background: #e0b93a; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.45); }
.nav-exam-btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }
@media (max-width: 900px) {
  .nav-exam-btn { min-height: 40px; padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}
/* Telefonda ikon gizlənir — liseyin adı çox dar sütuna sıxılmasın. */
@media (max-width: 480px) {
  .nav-exam-btn { padding: 0.4rem 0.7rem; }
  .nav-exam-btn svg { display: none; }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.lang-toggle:active { transform: scale(0.95); }

.nav-toggle {
  display: flex;
  position: relative;
  z-index: 46;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 6rem 1.5rem 4.5rem;
  /* Liseyin binası (images/hero-school.jpg, 1672px / mobil üçün hero-school-m.jpg). Sol tərəfdəki tünd keçid yazının oxunmasını
     təmin edir, sağ tərəfdə şəkil öz rənglərində görünür. */
  background:
    linear-gradient(100deg, rgba(0,21,41,0.9) 0%, rgba(0,34,63,0.74) 38%, rgba(0,34,63,0.3) 70%, rgba(0,34,63,0.06) 100%),
    url("../images/hero-school.jpg?v=20261010") center 55% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

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

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin: 0 0 1.1rem;
  animation: hero-rise 0.7s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  max-width: 18ch;
  margin: 0 0 1.25rem;
  animation: hero-rise 0.8s var(--ease) both;
  animation-delay: 0.08s;
}

.hero-desc {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 60ch;
  margin: 0 0 2.5rem;
  animation: hero-rise 0.8s var(--ease) both;
  animation-delay: 0.16s;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .track-picker {
  animation: hero-rise 0.8s var(--ease) both;
  animation-delay: 0.24s;
}

/* Hero-dakı kompakt "Gəncə STEAM" keçidi — track-picker-in altındakı boş
   sahədə, adi axında (track-picker ilə eyni "şüşə" üslubda). */
.hero-steam-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  box-sizing: border-box;
  padding: 0.84rem 1.1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  text-decoration: none;
  position: relative;
  /* Giriş animasiyası (bir dəfə) + davamlı "canlı" nəbz effekti (sonsuz) —
     nəbz giriş animasiyası bitəndən (0.8s+0.3s gecikmə) sonra başlayır. */
  animation: hero-rise 0.8s var(--ease) both, hero-steam-mini-pulse 2.4s ease-out 1.1s infinite;
  animation-delay: 0.3s, 1.1s;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.hero-steam-mini:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(38,210,255,0.5);
  transform: translateY(-2px);
}

@keyframes hero-steam-mini-pulse {
  0% { box-shadow: 0 0 0 0 rgba(38,210,255,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(38,210,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(38,210,255,0); }
}

.hero-steam-mini-logo {
  width: 110px;
  height: auto;
  display: block;
}

.hero-steam-mini-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan-solid);
  white-space: nowrap;
}

.hero-steam-mini-arrow {
  display: inline-block;
  animation: hero-steam-mini-arrow 1.6s ease-in-out infinite;
}

@keyframes hero-steam-mini-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Track picker (search-bar inspired) */
.track-picker {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 0.6rem;
  display: inline-flex;
  backdrop-filter: blur(6px);
}

.track-picker-tabs {
  display: flex;
  gap: 0.4rem;
}

.track-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.3rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s ease, color 0.2s ease;
}

.track-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }

.track-tab.is-active {
  background: var(--cyan-solid);
  color: var(--navy-deep);
}

/* Feature row (image cards) */
.feature-row {
  padding: 4rem 1.5rem;
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  transition: transform 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.1rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-card h3::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-card:nth-child(1) h3::before { background: var(--cyan-solid); }
.feature-card:nth-child(2) h3::before { background: var(--mint); }
.feature-card:nth-child(3) h3::before { background: var(--amber); }

.feature-card:nth-child(1) .feature-media { box-shadow: inset 0 4px 0 var(--cyan-solid), 0 10px 30px -18px rgba(0,34,63,0.25); }
.feature-card:nth-child(2) .feature-media { box-shadow: inset 0 4px 0 var(--mint), 0 10px 30px -18px rgba(0,34,63,0.25); }
.feature-card:nth-child(3) .feature-media { box-shadow: inset 0 4px 0 var(--amber), 0 10px 30px -18px rgba(0,34,63,0.25); }

.feature-card:nth-child(1):hover .feature-media { box-shadow: inset 0 4px 0 var(--cyan-solid), 0 20px 40px -18px rgba(93,77,232,0.35); }
.feature-card:nth-child(2):hover .feature-media { box-shadow: inset 0 4px 0 var(--mint), 0 20px 40px -18px rgba(31,209,168,0.35); }
.feature-card:nth-child(3):hover .feature-media { box-shadow: inset 0 4px 0 var(--amber), 0 20px 40px -18px rgba(255,180,84,0.35); }

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

.feature-media {
  width: 88%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 0 0 rgba(0,34,63,0);
  transition: box-shadow 0.4s var(--ease);
}

.feature-card:hover .feature-media {
  box-shadow: 0 20px 40px -18px rgba(0,34,63,0.35);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.feature-card:hover .feature-media img {
  transform: scale(1.08);
}

/* "Missiya və Vizyon" bölməsi — iki kart, .feature-card ilə eyni hover
   qaldırma effekti, hər birinin öz aksent rəngi (missiya=cyan, vizyon=mint). */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.mv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.mv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -18px rgba(0,34,63,0.2);
}

.mv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  margin-bottom: 1.25rem;
}

.mv-card--vision .mv-icon { background: var(--mint); }

.mv-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mv-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.mv-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.96rem;
}

/* Missiya/Vizyon mətnləri əvvəlcə tək, uzun, nöqtəli-vergüllə bölünmüş bir
   cümlə idi (oxunması çətin idi) — hər fikir öz sətrinə ayrılmış bullet-li
   siyahıya çevrilib, oxunaqlılıq üçün. */
.mv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mv-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

.mv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

.mv-card--vision .mv-list li::before { background: var(--mint); }

@media (max-width: 720px) {
  .mv-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section.alt { background: var(--bg-alt); }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.js-reveal-ready [data-reveal-group].is-visible .section-num,
.js-reveal-ready [data-reveal].is-visible .section-num {
  animation: badge-pop 0.5s var(--ease-spring) both;
  animation-delay: 0.1s;
}

@keyframes badge-pop {
  from { transform: scale(0.5); background: var(--navy); color: #fff; }
  to { transform: scale(1); }
}

.section-head {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1.1rem;
}

.section-head::before, .split-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--navy));
}

.split-label {
  position: relative;
  padding-left: 1.1rem;
}

.section-head h2, .split-label h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0.4rem 0 0;
  color: var(--navy);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 3rem;
}

.split-content p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.1rem;
}

.stat-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 0;
}

.stat-row > div {
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.stat-row > div:hover {
  border-left-color: var(--cyan);
}

.stat-row dt {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.stat-row dd {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* "Nailiyyətlər" bölməsindəki Olimpiada/Müsabiqə qrafiklərinin illər üzrə
   cəmi — .stat-row-ə bənzəyir, amma ortalanmış, sabit (hover tələb etməyən)
   cyan ayırıcı xətlə və böyük hərfli (uppercase) etiketlə. */
.mini-stat-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0 0 3rem;
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.mini-stat-row > div {
  text-align: center;
  padding-left: 1.75rem;
  border-left: 2px solid var(--cyan);
}

.mini-stat-row > div:first-child {
  padding-left: 0;
  border-left: none;
}

.mini-stat-row dt {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.mini-stat-row dd {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .mini-stat-row { gap: 1.75rem; padding: 1.5rem 1rem; }
  .mini-stat-row dt { font-size: 1.8rem; }
}

/* Statistika kabinetdən idarə olunana və yüklənənə qədər (bax
   js/api.js#loadSiteStats) rəqəm yerinə fırlanan bir "yüklənir" işarəsi —
   .btn-submit.is-loading-də istifadə olunan eyni fırlanma (bax btn-spin). */
.stat-loading {
  display: inline-block;
  width: 1.7rem;
  height: 1.7rem;
  border: 3px solid var(--line);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .stat-loading { animation: none; }
}

/* Məzunlar paneli — mətn + real nailiyyət şəkillərindən (ADMITTED_GRADUATE,
   bax js/api.js-dəki loadGraduatesPanel) qurulan "bento" kollaj. Uydurma
   şəkillər DEYİL — /api/achievements-dən gələn real qəbul posterləridir. */
.grad-panel {
  background: var(--bg-alt);
  border-radius: calc(var(--radius) * 1.5);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grad-panel-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.grad-panel-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 46ch;
}

/* Sabit 5 şəkil (bax js/api.js — GRAD_PANEL_ACHIEVEMENT_IDS), təsadüfi
   seçilmir — hamısı eyni ölçüdə dairə, yüngül "kaskad" sürüşməsi ilə. */
.grad-collage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 1.25rem;
  padding: 1rem 0;
}

.grad-collage img {
  width: 160px;
  height: 160px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 78% 22%;
  border-radius: 50%;
  display: block;
  background: #fff;
  box-shadow: 0 8px 20px -10px rgba(0,34,63,0.35);
}

.grad-collage .g2, .grad-collage .g4 { margin-top: 2rem; }

@media (max-width: 900px) {
  .grad-panel { grid-template-columns: 1fr; padding: 2.25rem; }
  .grad-panel-text p { max-width: none; }
  .grad-collage img { width: 115px; height: 115px; }
  .grad-collage .g2, .grad-collage .g4 { margin-top: 1.25rem; }
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Kabinet — "IT bölməsi" paneli (yalnız Admin) */
.it-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.it-status-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  min-width: 190px;
}

.it-status-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.it-status-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.it-status-value.is-online { color: var(--mint); }
.it-status-value.is-offline { color: #d64545; }

.it-links {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.it-links a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.it-links a:hover { color: var(--cyan-solid); }

/* Achievements */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.achievement-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.achievement-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(0,34,63,0.28);
  border-color: rgba(0,34,63,0.15);
}

.achievement-col h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.achievement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.achievement-list li:first-child {
  padding-top: 0;
  border-top: none;
}

/* Fərqli illərin yazılarını ayıran kiçik etiket (bax js/api.js#loadAchievements
   — "year-divider"). Adi (şəkilsiz) siyahıda sadə, üfüqi xətt üzərində
   kiçik il yazısı kimi görünür; karusel (foto) zolağında isə aşağıdakı
   :has(.has-photo) qaydası ilə tam fərqli, şaquli "ayracı" görkəminə keçir. */
.achievement-list li.year-divider {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: block;
}

.achievement-list li.year-divider:first-child {
  padding-top: 0;
  border-top: none;
}

.achievement-list li.year-divider span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* Şəkli olan yazılar (universitet qəbulu kartları və s.) bir-birinin ALTINA
   yığılmır — üfüqi istiqamətdə fasiləsiz sürüşən "karusel" zolağı kimi
   göstərilir (bax js/api.js — siyahı HTML-i özü-özü ilə ikiqat təkrarlanır
   ki, -50% translateX-dən sonra tikişsiz "sıçrayışsız" dövr alınsın).
   Dəstəklənməyən köhnə brauzerlərdə :has() sadəcə əvvəlki sadə siyahı
   görünüşünə düşür. */
.achievement-col:has(.has-photo) {
  overflow: hidden;
}

.achievement-list:has(.has-photo) {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  gap: 1.1rem;
  animation: achievement-marquee 90s linear infinite;
}

.achievement-list:has(.has-photo):hover {
  animation-play-state: paused;
}

.achievement-list:has(.has-photo) li {
  padding-top: 0;
  border-top: none;
}

/* Karusel zolağında il ayracı üfüqi xətt yox, kartlar arasında nazik,
   şaquli bir "lövhə" kimi görünür — mətn yuxarıdan aşağı yazılır ki, dar
   sahədə tam il rəqəmi sıxılmadan oxuna bilsin. */
.achievement-list:has(.has-photo) li.year-divider {
  flex: 0 0 auto;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 0.25rem;
}

.achievement-list:has(.has-photo) li.year-divider span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 0.7rem 0.4rem;
}

@keyframes achievement-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Ümumi "sonsuz lent" — iki cərgə əks istiqamətdə fasiləsiz sürüşür, üzərinə gələndə/klaviatura ilə
   fokuslananda dayanır (bax js/api.js — "Respublika fənn olimpiadaları" grid-i; steam.html-in
   qalereyasında EYNİ texnika css/steam.css-dədir, css/style.css orada yüklənmir deyə təkrarlanıb).
   Hər cərgə öz-özü ilə İKİQAT təkrarlanır ki, translateX(-50%) tam dövr edəndə tikişsiz başa qayıtsın. */
.marquee-row { overflow: hidden; width: 100%; }

.marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-left 60s linear infinite;
}

.marquee-track.is-reverse { animation-name: marquee-right; }

.marquee-row:hover .marquee-track,
.marquee-track:focus-within {
  animation-play-state: paused;
}

@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.achievement-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft, #f2f4f7);
  transition: transform 0.3s var(--ease);
}

.achievement-list li:hover .achievement-photo {
  transform: scale(1.08);
}

/* Şəkli olan yazılar (məs. universitet qəbulu elan kartları) — kiçik
   dairəvi thumbnail əvəzinə TAM GENİŞLİKDƏ, aydın oxuna bilən böyük kart.
   Karusel zolağında yan-yana sürüşdüyü üçün sabit en (flex-basis) lazımdır. */
.achievement-list li.has-photo {
  flex: 0 0 190px;
  width: 190px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.achievement-list li.has-photo .achievement-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  box-shadow: 0 10px 26px -14px rgba(0,34,63,0.3);
}

.achievement-list li.has-photo:hover .achievement-photo {
  transform: scale(1.02);
}

.achievement-body {
  min-width: 0;
}

.achievement-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.has-photo .achievement-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.achievement-year {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.achievement-desc {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.has-photo .achievement-desc {
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.achievement-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Nailiyyət şəkli düyməsi — klikləndikdə lightbox-da böyüyür. */
.achievement-photo-btn {
  display: block;
  width: fit-content;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
}

.achievement-list li.has-photo .achievement-photo-btn {
  width: 100%;
  border-radius: var(--radius);
}

.achievement-photo-btn:focus-visible {
  outline: 2px solid var(--cyan-solid);
  outline-offset: 3px;
}

.achievement-photo-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 21, 41, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/22px no-repeat;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.achievement-photo-btn:hover::after,
.achievement-photo-btn:focus-visible::after {
  opacity: 1;
}

/* "Respublika fənn olimpiadaları" — foto olan bu kateqoriya dar 3-sütunlu
   .achievement-grid-dən çıxarılıb, .teacher-grid ilə EYNİ kart dizaynında
   (bax .teacher-card və yuxarıdakı izahlar) tam enli, ayrıca bir bölmə kimi
   göstərilir (bax js/api.js#loadAchievements). */
.achievement-spotlight {
  margin-top: 2.75rem;
}

.achievement-spotlight-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.5rem;
}

/* Foto düyməsi (bax .achievement-photo-btn) blob-şəkilli .teacher-photo
   sahəsini tam doldursun deyə ölçüləri ora uyğunlaşdırılır — böyütmə
   ikonu və klik davranışı olduğu kimi qalır. */
.teacher-photo .achievement-photo-btn {
  display: block;
  width: 100%;
  height: 100%;
}

.teacher-photo .achievement-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* İllərə görə ayracı (bax .achievement-list li.year-divider) — grid
   düzülüşündə bütün eni tutan, kənarında xətt olan bir başlıq sətri kimi. */
.achievement-year-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.5rem 0 -0.25rem;
}

.achievement-year-heading:first-child {
  margin-top: 0;
}

.achievement-year-heading span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  white-space: nowrap;
}

.achievement-year-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Buraxılış imtahanı nəticələri — statik nəticə cədvəlləri */
.exam-results {
  margin-top: 2.5rem;
}

.exam-results-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.25rem;
}

.exam-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.exam-results-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.exam-results-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(0,34,63,0.28);
  border-color: rgba(0,34,63,0.15);
}

.exam-results-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
}

.exam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.exam-table th,
.exam-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.exam-table th {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exam-table tbody tr {
  transition: background 0.2s var(--ease);
}

.exam-table tbody tr:not(.exam-table-avg):hover {
  background: var(--bg-alt);
}

.exam-score-value {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.exam-score-bar {
  display: block;
  width: 100%;
  min-width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.exam-score-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-solid), var(--navy));
  transform: scaleX(1);
  transform-origin: left;
}

.js-reveal-ready [data-reveal-group].is-visible .exam-score-bar > span {
  animation: exam-bar-fill 1s var(--ease) both;
}

@keyframes exam-bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.exam-cell-total {
  font-weight: 700;
  color: var(--navy);
}

.exam-row-best {
  position: relative;
  background: rgba(38,210,255,0.06);
}

.exam-row-best td:first-child {
  border-left: 3px solid var(--cyan-solid);
  padding-left: calc(0.5rem - 3px);
  font-weight: 600;
}

.exam-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.exam-table-avg td {
  font-weight: 700;
  color: var(--ink);
}

.exam-table-avg td:first-child {
  font-weight: 600;
}

.exam-results-total {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.exam-results-total strong {
  color: var(--navy);
  font-size: 1.1rem;
  margin-left: 0.35rem;
}

/* Respublika Fənn Olimpiadaları — illər üzrə medal sayı sütun qrafiki */
.olympiad-chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
}

.olympiad-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.olympiad-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.olympiad-bar-value {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.olympiad-bar-track {
  width: 100%;
  max-width: 52px;
  height: 180px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-alt);
  border-radius: 6px 6px 0 0;
}

.olympiad-bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--cyan-solid), var(--navy) 65%, var(--cyan-solid));
  background-size: 100% 240%;
  transform: scaleY(1);
  transform-origin: bottom;
}

.olympiad-bar-col.is-peak .olympiad-bar-fill {
  box-shadow: 0 0 0 3px rgba(38,210,255,0.18);
}

.olympiad-bar-label {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
}

.js-reveal-ready [data-reveal-group].is-visible .olympiad-bar-fill {
  animation: olympiad-bar-grow 0.9s var(--ease) both, olympiad-bar-flow 4.5s ease-in-out infinite;
}

.js-reveal-ready [data-reveal-group].is-visible .olympiad-bar-col.is-peak .olympiad-bar-fill {
  animation: olympiad-bar-grow 0.9s var(--ease) both, olympiad-bar-flow 4.5s ease-in-out infinite, olympiad-bar-pulse 2.2s ease-in-out infinite;
}

.olympiad-chart .olympiad-bar-col:nth-child(1) .olympiad-bar-fill { animation-delay: 0.05s; }
.olympiad-chart .olympiad-bar-col:nth-child(2) .olympiad-bar-fill { animation-delay: 0.13s; }
.olympiad-chart .olympiad-bar-col:nth-child(3) .olympiad-bar-fill { animation-delay: 0.21s; }
.olympiad-chart .olympiad-bar-col:nth-child(4) .olympiad-bar-fill { animation-delay: 0.29s; }
.olympiad-chart .olympiad-bar-col:nth-child(5) .olympiad-bar-fill { animation-delay: 0.37s; }
.olympiad-chart .olympiad-bar-col:nth-child(6) .olympiad-bar-fill { animation-delay: 0.45s; }

@keyframes olympiad-bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes olympiad-bar-flow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

@keyframes olympiad-bar-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(38,210,255,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(38,210,255,0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .olympiad-bar-fill,
  .olympiad-bar-col.is-peak .olympiad-bar-fill {
    animation: none;
    transform: scaleY(1);
  }
}

@media (max-width: 900px) {
  .olympiad-chart { overflow-x: auto; justify-content: flex-start; padding-bottom: 0.4rem; }
  .olympiad-bar-col { flex: 0 0 74px; }
}

/* Lightbox — nailiyyət şəklinin tam ekranda göstərilməsi */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox[hidden] { display: none; }

.lightbox.is-visible { opacity: 1; }

body.lightbox-open { overflow: hidden; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 21, 41, 0.82);
  cursor: pointer;
  padding: 0;
}

.lightbox-content {
  position: relative;
  margin: 0;
  max-width: min(90vw, 720px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s var(--ease-spring);
}

.lightbox.is-visible .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  display: block;
  /* Qalereya qrupu daxilində ‹/› ilə keçiddə köhnə şəkil sönür, yenisi görünür (bax js/api.js#renderLightboxItem). */
  transition: opacity 0.18s var(--ease);
}

.lightbox-content img.is-switching { opacity: 0; }

.lightbox-content figcaption {
  margin: 1rem 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

/* Qalereya naviqasiyası — bir [data-lightbox-group] daxilindəki şəkillər arasında keçid.
   Tək şəkil açılıbsa (qrup yoxdur/1 elementlidir) js/api.js bu düymələri gizlədir. */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
}

.lightbox-nav[hidden] { display: none; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

@media (min-width: 720px) {
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }
}

/* News section — stanford.edu "Stanford News" bölməsinin ölçüləri ilə bir-bir eyni:
   boz fon, iki bərabər sütun (solda başlıq, sağda 2×N kart şəbəkəsi), serif başlıq,
   ağ kartlar (12px künc, kölgəsiz, 4:3 şəkil, 32px daxili boşluq). Yeganə fərq —
   Stanford-un qırmızısı əvəzinə saytın öz navy rəngi. Kartlar ekrana girəndə tağvari
   formadan açılır — bax js/api.js#revealNewsCards. */
.news-section {
  --news-accent: var(--navy);
  padding: 58px 40px;
  background: #eaeaea;
  font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.news-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  max-width: none;
}

.news-head {
  position: sticky;
  top: 6.5rem;
  display: grid;
  justify-items: start;
  gap: 32px;
}

.news-head h2 {
  font-family: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 3.9vw, 3.36rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #111;
  margin: 0;
}

.news-intro {
  margin: -12px 0 0;
  max-width: 65ch;
  font-size: 20px;
  line-height: 1.4;
  color: #111;
}

.view-all {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--news-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: background 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.view-all[hidden] { display: none; }

.view-all:hover { background: var(--navy-deep); text-decoration-color: currentColor; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.news-grid[hidden] {
  display: none;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

/* Tağvari "açılma" animasiyası (Stanford: radius 220px + scale .95 → normal) */
.news-anim .news-card {
  border-top-left-radius: 220px;
  border-top-right-radius: 220px;
  transform: scale(0.95);
  opacity: 0;
  transition: border-radius 0.9s var(--ease), transform 0.9s var(--ease), opacity 0.6s var(--ease);
}

.news-anim .news-card.is-in {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transform: none;
  opacity: 1;
}

.news-anim .news-card:nth-child(2n).is-in { transition-delay: 0.12s; }

.news-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d5d5d4;
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.33, 0, 0.67, 1);
}

.news-card:hover .news-media img { transform: scale(1.05); }

/* Yüklənmiş şəkil KƏSİLMƏDƏN tam görünsün: şəkil yüklənəndən sonra çərçivə 4:3 əvəzinə şəklin öz nisbətini alır
   (bax js/api.js#loadNews-dakı onload). Çox hündür şəkillər 560px-də dayanır və ağ fonda mərkəzləşir. */
.news-media.is-loaded { aspect-ratio: auto; background: #fff; }
.news-media.is-loaded img { display: block; height: auto; max-height: 560px; margin: 0 auto; object-fit: contain; }

.news-media-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: url('../images/logo.png') center / 28% no-repeat, linear-gradient(135deg, var(--navy) 0%, #0a3a63 100%);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 32px;
}

.news-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--news-accent);
}

.news-kicker-sep {
  display: inline-block;
  width: 2px;
  height: 9px;
  margin: 0 8px;
  background: currentColor;
}

.news-card h3 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #111;
  margin: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.news-card:hover h3 { color: var(--news-accent); text-decoration-color: currentColor; }

.news-summary {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.3;
  color: #767674;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: auto;
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.4;
  color: #43423e;
}

.news-meta-sep {
  display: inline-block;
  width: 2px;
  height: 9px;
  margin: 0 8px;
  background: #d5d5d4;
}

/* Ən yeni xəbər — kart şəbəkəsinin bütün enini tutur, tam mətn birbaşa görünür (bax js/api.js#newsFeaturedHtml). */
/* Şəkil solda, mətn sağda — bütün xəbər bir ekrana sığsın, aşağı-yuxarı sürüşdürmək lazım olmasın. */
.news-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  scroll-margin-top: 6.5rem;
}
/* Şəkil KƏSİLMƏDƏN tam görünür (cover əvəzinə contain): portret posterlərdə (məs. 4:5) başlıq və loqolar kəsilirdi.
   Şəkil sütunun enini tutur, öz nisbətində uzanır; ekrandan hündür olmasın deyə hündürlük məhdudlaşdırılır, mətn
   şəkildən hündürdürsə şəkil neytral fonda şaquli mərkəzləşir. */
.news-card--featured .news-media,
.news-card--featured .news-media.is-loaded { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: auto; min-height: 280px; background: #f2f2f0; }
.news-card--featured .news-media img,
.news-card--featured .news-media.is-loaded img { position: static; display: block; width: 100%; height: auto; max-height: min(78vh, 760px); margin: 0 auto; object-fit: contain; object-position: center; }
.news-card--featured .news-card-body { padding: 28px 30px 28px; }
.news-card--featured h3 {
  font-family: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}
.news-card--featured:hover h3 { color: #111; text-decoration-color: transparent; }
.news-card--featured:hover .news-media img { transform: none; }
.news-card--featured .news-summary { margin-top: 10px; font-size: 16px; color: #43423e; }
.news-featured-content { margin-top: 12px; }
.news-featured-content p { margin: 0 0 0.8em; font-size: 15.5px; line-height: 1.55; color: #2e2d29; }
.news-featured-content p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .news-card--featured { grid-template-columns: 1fr; }
  .news-card--featured .news-media,
  .news-card--featured .news-media.is-loaded { height: auto; min-height: 0; }
  .news-card--featured .news-media img,
  .news-card--featured .news-media.is-loaded img { max-height: 75vh; }
  .news-card--featured .news-card-body { padding: 22px; }
}

/* Başlıq düyməsi bütün kartı əhatə edir (::after) — kart harasına kliklənsə, tam mətn açılır. */
.news-open {
  all: unset;
  cursor: pointer;
}

.news-open::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-open:focus-visible { outline: none; }
.news-card:has(.news-open:focus-visible) { box-shadow: 0 0 0 3px var(--cyan); }

.news-more {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--news-accent);
}

/* Xəbərin tam mətni pəncərəsi (bax js/api.js#openNewsModal) */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.news-modal[hidden] { display: none; }

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 21, 41, 0.6);
  animation: data-loader-in 0.25s var(--ease) both;
}

.news-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 70px -24px rgba(0, 21, 41, 0.6);
  font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  animation: data-loader-in 0.3s var(--ease) both;
}

.news-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 4px 14px -6px rgba(0, 21, 41, 0.5);
}

.news-modal-close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Pəncərədə də şəkil tam görünür (portret posterlər kəsilməsin) — çox hündür şəkil ekranın 70%-ində dayanır. */
.news-modal-media { background: #f2f2f0; }
.news-modal-media img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.news-modal-body { padding: 28px 36px 36px; }

.news-modal-meta {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
}

.news-modal-body h2 {
  margin: 0 0 18px;
  font-family: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: #111;
  text-wrap: balance;
}

.news-modal-content p {
  margin: 0 0 1em;
  font-size: 18px;
  line-height: 1.6;
  color: #2e2d29;
}

@media (max-width: 600px) {
  .news-modal { padding: 0; align-items: end; }
  .news-modal-dialog { max-height: 92vh; max-height: 92dvh; border-radius: 14px 14px 0 0; }
  .news-modal-body { padding: 22px 20px 28px; }
  .news-modal-content p { font-size: 17px; }
}

/* Boş vəziyyət: eyni kart forması, şəkil yerində çərçivə + ikon */
.news-card--placeholder .news-media {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a8a6;
}

.news-placeholder-line {
  display: block;
  height: 14px;
  margin-top: 8px;
  border-radius: 999px;
  background: #ededed;
}

.news-placeholder-line--short { width: 60%; }
.news-placeholder-line--meta { width: 40%; height: 10px; margin-top: 0; }

.news-empty {
  margin: 20px 0 0;
  color: #43423e;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; gap: 32px; }
  .news-head { position: static; }
}

@media (max-width: 600px) {
  .news-section { padding: 40px 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-body { padding: 24px; }
}

/* Teachers — STEAM səhifəsindəki komanda kartlarının (css/steam.css
   .steam-team-*) eyni dizaynı: rəngli, dekorativ halqalı "foto-kart"
   yuxarıda (ad/vəzifə onun üzərində ağ mətnlə), varsa qısa məlumat ağ
   fonda aşağıda. auto-fit sayəsində eni 4→2→1 sütuna qədər özü uyğunlaşır,
   STEAM qrupundakı kimi ayrıca media-query breakpoint-inə ehtiyac yoxdur. */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.teacher-grid[hidden] {
  display: none;
}

/* ---------- Prezident təqaüdçüləri (index.html #prezident-teqaudculeri, js/api.js#scholarCardHtml) ----------
   Tünd zolaq + tam-şəkilli portret kartlar. Kartlar sarğı .scholar-item-dədir: reveal animasiyası (aşağıdakı
   ".js-reveal-ready [data-reveal-group] > *") sarğıya düşür, hover isə kartın öz `translate` xassəsi ilə işləyir. */
.scholars {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem 6rem;
  color: #fff;
  background:
    radial-gradient(48rem 26rem at 88% -8%, rgba(38,210,255,0.20), transparent 62%),
    radial-gradient(40rem 24rem at 6% 108%, rgba(31,209,168,0.11), transparent 60%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.scholars[hidden] { display: none; }

/* yüngül nöqtəli şəbəkə — yuxarıdan aşağı tədricən itir */
.scholars::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Arxa fonda Azərbaycan Respublikasının dövlət gerbi (images/gerb.svg — Wikimedia Commons, ictimai domen): iri, solğun "su nişanı"
   kimi ortada durur, kartlar və mətn onun üstündədir. Bütöv görünsün deyə `contain` + yuxarı/aşağı boşluq. */
.scholars::after {
  content: '';
  position: absolute;
  inset: 1.5rem 0;
  z-index: 0;
  background: url('../images/gerb.svg?v=20261017a') center / contain no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

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

.scholars-head {
  max-width: 46rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.scholars-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.38rem 0.95rem 0.38rem 0.75rem;
  border: 1px solid rgba(38,210,255,0.35);
  border-radius: 999px;
  background: rgba(38,210,255,0.08);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scholars-kicker svg { width: 14px; height: 14px; }

.scholars-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
}

.scholars-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
}

/* Kart sayı nə qədər olursa olsun eni 230–280px, ortada düzülür (az kartda nəhəng, çox kartda kiçik olmasın) */
.scholar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 280px));
  justify-content: center;
  gap: 1.5rem;
}

.scholar-item { display: block; }

/* Admin-ə boş siyahıda göstərilən xatırlatma kartı (js/api.js#loadPresidentialScholars) */
.scholar-hint {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 38rem;
  padding: 1.6rem 1.8rem;
  border: 1.5px dashed rgba(38,210,255,0.45);
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.scholar-hint:hover { background: rgba(38,210,255,0.1); border-color: var(--cyan); }
.scholar-hint strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff; }
.scholar-hint em { font-style: normal; font-weight: 700; color: var(--cyan); }

.scholar-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.4rem;
  background: linear-gradient(160deg, #0b3d68 0%, var(--navy) 100%);
  box-shadow: 0 28px 50px -30px rgba(0,0,0,0.85);
  transition: translate 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s var(--ease);
}

.scholar-card:hover {
  translate: 0 -8px;
  border-color: rgba(38,210,255,0.55);
  box-shadow: 0 38px 60px -28px rgba(0,0,0,0.9), 0 0 0 1px rgba(38,210,255,0.22);
}

.scholar-photo { position: absolute; inset: 0; }

.scholar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.9s var(--ease);
}

.scholar-card:hover .scholar-photo img { transform: scale(1.07); }

.scholar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-bottom: 22%;
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.3);
}

/* mətnin oxunması üçün aşağıdan tünd keçid */
.scholar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,21,41,0.96) 0%, rgba(0,21,41,0.72) 30%, rgba(0,21,41,0) 62%);
  pointer-events: none;
}

.scholar-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem 0.32rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(0,21,41,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.scholar-badge svg { width: 14px; height: 14px; color: var(--amber); }

.scholar-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.4rem 1.3rem 1.3rem;
}

.scholar-body::before {
  content: '';
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-bottom: 0.8rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  transition: width 0.45s var(--ease);
}

.scholar-card:hover .scholar-body::before { width: 4.4rem; }

.scholar-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.scholar-detail {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.8);
}

/* Uzun məlumat: kartda 3 sətir; üstünə gələndə, fokus alanda və ya toxunuşla (.is-open) tam açılır — mətn şəkilin üstünə
   qalxır, ona görə aşağıdan tünd keçid də güclənir. */
.scholar-card { cursor: default; outline-offset: 3px; }
.scholar-card:hover .scholar-detail,
.scholar-card:focus-visible .scholar-detail,
.scholar-card.is-open .scholar-detail {
  display: block;
  -webkit-line-clamp: unset;
}

.scholar-card:hover::after,
.scholar-card:focus-visible::after,
.scholar-card.is-open::after {
  background: linear-gradient(to top, rgba(0,21,41,0.97) 0%, rgba(0,21,41,0.9) 50%, rgba(0,21,41,0.3) 85%, rgba(0,21,41,0) 100%);
}

@media (max-width: 600px) {
  .scholars { padding: 4rem 1rem 4.5rem; }
  .scholars-head { margin-bottom: 2.5rem; }
  .scholar-card { border-radius: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scholar-card, .scholar-photo img, .scholar-body::before { transition: none; }
  .scholar-card:hover { translate: none; }
  .scholar-card:hover .scholar-photo img { transform: none; }
}

/* "Respublika fənn olimpiadaları" grid-i (bax js/api.js#loadAchievements) .teacher-grid əvəzinə
   bunu istifadə edir — iki .marquee-row cərgəsini altlı-üstlü düzür; kartların öz eni isə
   aşağıdakı ".marquee-track .teacher-card" qaydası ilə sabitlənir (adi grid-də olduğu kimi
   xananı doldurmaq əvəzinə). */
.achievement-marquee {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.marquee-track .teacher-card { flex: 0 0 260px; }

/* Kartın üzərindəki il nişanı — marquee-də əvvəlki statik qrupun il ayracını (bax
   .achievement-list li.year-divider) əvəz edir. */
.teacher-year-badge {
  position: absolute;
  /* Aşağı-solda: yuxarı-sağdakı şəffaf ağ nişan ağ fonlu şagird fotolarının üstündə
     itirdi; sol-alt küncdə isə həmişə tünd göy fon var (foto yalnız sağ 64%-dədir). */
  bottom: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 2px 8px -2px rgba(0,20,38,0.45);
  z-index: 2;
}

.teacher-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px -12px rgba(0,34,63,0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -18px rgba(0,34,63,0.3);
}

.teacher-photocard {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--navy);
}

.teacher-ring {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  pointer-events: none;
}

.teacher-ring--1 { width: 220px; height: 220px; top: -60px; right: -50px; }
.teacher-ring--2 { width: 140px; height: 140px; top: 30px; right: 60px; }

.teacher-dot {
  position: absolute;
  top: 42%;
  right: 38%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.18);
}

.teacher-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64%;
  height: 94%;
  overflow: hidden;
  border-radius: 60% 0 0 45% / 65% 0 0 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Foto hələ yoxdursa blob-un içi boş qalmasın deyə yüngül ağ döşəmə —
     baş hərflər (bax .teacher-initials) məhz bunun üzərində görünür. */
  background: rgba(255,255,255,0.16);
  transition: transform 0.5s var(--ease);
}

.teacher-card:hover .teacher-photo {
  transform: scale(1.05);
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Profil şəkli hələ yüklənməyən pedaqoji heyət üzvləri üçün boş sahə
   əvəzinə adın baş hərfləri göstərilir (məs. "Rəşad Qədirov" → "RQ"). */
.teacher-initials {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.teacher-header {
  position: relative;
  z-index: 1;
  /* fit-content: flex sütun içində default "stretch" davranışını ləğv edir ki, panel
     mətnin özünə sıx otursun (qısa "Direktor" üçün kiçik, uzun vəzifə üçün geniş) —
     max-width isə bunu yenə də fotoya (sağ tərəf) dəymədən saxlayır. */
  width: fit-content;
  max-width: 60%;
  /* Açıq rəngli fotolarda (ağ köynək, açıq fon) əvvəlki tək text-shadow həlli kifayət
     etmirdi — ad/vəzifə birbaşa üzün üstünə düşəndə çətin oxunurdu. Bunun əvəzinə
     mətnin ARXASINA sərt, fotodan asılı olmayan tünd panel qoyulur ki, aydınlıq
     HƏMİŞƏ (foto nə rəngdə olur-olsun) təmin olunsun. */
  background: rgba(0,20,38,0.82);
  border-radius: 10px;
  padding: 0.45rem 0.75rem 0.5rem;
  margin: -0.45rem 0 0 -0.75rem;
}

.teacher-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.2rem;
  line-height: 1.25;
  /* Uzun soyadlar (məs. tələbə tam adları) dar başlıq sahəsini aşıb
     .teacher-photocard-un overflow:hidden-i tərəfindən kəsilməsin deyə
     sözün özü sətir daxilində qırılır. */
  overflow-wrap: break-word;
}

.teacher-subject {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
}

.teacher-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

/* Pedaqoji heyət kartında ad + vəzifə fotonun altında, ağ fonda (bax js/api.js#teacherCardHtml). */
.teacher-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
  overflow-wrap: break-word;
}

.teacher-role {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-soft);
}

.teacher-role + .teacher-bio { margin-top: 0.75rem; }

.teacher-bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Contact info (ünvan/telefon/e-poçt) */
.contact-info {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-info dt {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.contact-info dd {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.contact-info dd a {
  transition: color 0.2s ease;
}

.contact-info dd a:hover {
  color: var(--cyan);
}

/* Əlaqə bölməsinin xəritəsi — əlaqə məlumatının altında, bütün enə (əlaqə forması götürülüb) */
.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .contact-map,
  .contact-map iframe { min-height: 280px; }
}

/* Contact form */
.contact-form {
  margin-top: 2rem;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row[hidden] { display: none; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0,34,63,0.1);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-submit:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,34,63,0.5); }
.btn-submit:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.btn-submit.is-loading {
  color: transparent;
  pointer-events: none;
}

.btn-submit.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.is-shaking {
  animation: shake 0.5s var(--ease);
}

.form-status {
  margin: 0;
  font-size: 0.88rem;
  transition: opacity 0.25s var(--ease);
}

.form-status.is-success { color: #1a7a4c; }
.form-status.is-error { color: #b3261e; }

/* Ekran oxuyucular üçün görünən, vizual olaraq gizli mətn (məs. placeholder-
   yalnız input-ların label-ları) — ümumi, təkrar istifadə oluna bilən utility. */
.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;
}

/* "Qəbul olmaq istəyirsiniz?" bannerı — istifadəçinin təqdim etdiyi nümunəyə
   (tünd fonlu tərgib mətni + üzərinə minik ağ kart forması) uyğun, saytın öz
   navy/cyan rəng sxemində. */
.admission-cta {
  position: relative;
  padding: 4.5rem 1.5rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  overflow: hidden;
}

.admission-cta::before,
.admission-cta::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  pointer-events: none;
}

.admission-cta::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
}

.admission-cta::after {
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: 20%;
}

.admission-cta-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* "04 Əlaqə" başlığı panelin yuxarısında (index.html#elaqe): tünd fonda ağ, sol xətt cyan → şəffaf ağ. */
.admission-cta-head {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto 2.75rem;
  scroll-margin-top: 6.5rem;
}

.admission-cta-label h2 { color: #fff; }

.admission-cta-label .section-num {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admission-cta-label::before { background: linear-gradient(180deg, var(--cyan), rgba(255, 255, 255, 0.35)); }

/* Əlaqə məlumatı başlıqsız (başlıq yuxarıdakı paneldədir): panelə yaxın başlayır, ünvan/telefon/e-poçt geniş ekranda bir sırada. */
.section.contact--body { padding-top: 3.5rem; }

@media (min-width: 901px) {
  .contact--body .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.9rem 3.5rem;
  }
}

.admission-cta-pitch .eyebrow { margin-bottom: 0.9rem; }

.admission-cta-pitch h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.15;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.admission-cta-pitch p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.admission-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.admission-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.4);
}

.admission-cta-btn-arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.admission-cta-btn:hover .admission-cta-btn-arrow {
  transform: translate(2px, 2px);
}

.admission-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admission-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  /* Diqqət çəkmək üçün ətrafında yayılan yaşıl dalğa + ikonun vaxtaşırı "zəng" titrəməsi. */
  animation: wa-pulse 2.4s ease-out infinite;
}

.admission-cta-wa svg {
  transform-origin: 50% 50%;
  animation: wa-ring 2.4s ease-in-out infinite;
}

.admission-cta-wa:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.4);
  animation: none;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes wa-ring {
  0%, 60%, 100% { transform: rotate(0); }
  65% { transform: rotate(-14deg); }
  70% { transform: rotate(12deg); }
  75% { transform: rotate(-10deg); }
  80% { transform: rotate(8deg); }
  85% { transform: rotate(0); }
}

.admission-cta-wa-label { opacity: 0.85; font-weight: 600; margin-right: 0.25rem; }

.admission-cta-card {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: 0 30px 60px -24px rgba(0,10,25,0.45);
}

.admission-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.admission-cta-card > p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.admission-form { margin-top: 0; max-width: none; gap: 0.9rem; }

/* Honeypot sahəsi — botlar üçün "görünür", real istifadəçilər üçün yoxdur
   (bax js/api.js#wireContactForm). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .admission-cta-inner { grid-template-columns: 1fr; }
  .admission-cta-pitch h2,
  .admission-cta-pitch p { max-width: none; }
}

@media (max-width: 600px) {
  .admission-cta { padding: 3.5rem 1.25rem; }
  .admission-cta-card { padding: 1.75rem; }
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 1.5rem 2rem;
}

/* Arxa fonda solğun loqo izi (watermark) — tam-ekran açılan menyudakı
   (.main-nav.open::before) eyni effekt, footer-ə də tətbiq olunur. */
.site-footer::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 4%;
  width: 34vw;
  max-width: 380px;
  min-width: 180px;
  aspect-ratio: 1;
  background: url("../images/logo.png") center / contain no-repeat;
  opacity: 0.06;
  transform: translateY(-50%);
  pointer-events: none;
}

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

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin: 0 0 0.3rem;
}

.footer-col a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.footer-col a:hover { color: #fff; transform: translateX(3px); }

/* Hazırda hədəfi olmayan keçidlər (href="#") — "display: inline-block"
   yuxarıda təyin olunduğu üçün [hidden] atributu tək başına kifayət etmir. */
.footer-col a[hidden] { display: none; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* footer-cols olmayan sadə footer variantı (login/register/it səhifələri) —
   tam footer üçün nəzərdə tutulan böyük yuxarı boşluq bura tətbiq olunanda
   məzmunun üstündə boş, mənasız bir zolaq yaranırdı. Dəstəklənməyən köhnə
   brauzerlərdə :has() sadəcə əvvəlki (daha geniş boşluqlu) görünüşə düşür. */
.site-footer:not(:has(.footer-cols)) {
  padding-top: 1.75rem;
}

.site-footer:not(:has(.footer-cols)) .footer-bottom {
  padding-top: 0;
}

.footer-social {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 5rem 1.25rem 3.5rem; }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(0,21,41,0.88) 0%, rgba(0,34,63,0.78) 55%, rgba(0,34,63,0.55) 100%),
      url("../images/hero-school-m.jpg?v=20261010");
  }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  /* .teacher-grid artıq auto-fit istifadə edir (bax "Teachers" bölməsi) —
     eni özü 4→2→1 sütuna uyğunlaşır, əlavə breakpoint-ə ehtiyac yoxdur. */
  .achievement-grid { grid-template-columns: 1fr; }
  .exam-results-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; }
  .footer-social { order: -1; }
}

@keyframes nav-drop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tam-ekran menyu: Oxford Universiteti saytındakı açılan menyu effektinə
   bənzər — böyük keçid siyahısı + arxa fonda solğun loqo izi (watermark).
   Bütün ekran ölçülərində (həm mobil, həm masaüstü) eyni şəkildə açılır. */
.main-nav.open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 6.5rem 1.75rem 2.5rem;
  gap: 0;
  overflow-y: auto;
  animation: nav-drop 0.3s var(--ease) both;
}

.main-nav.open::before {
  content: '';
  position: absolute;
  top: 52%;
  right: 6%;
  width: 40vw;
  max-width: 460px;
  min-width: 220px;
  aspect-ratio: 1;
  background: url("../images/logo.png") center / contain no-repeat;
  opacity: 0.07;
  transform: translateY(-50%);
  pointer-events: none;
}

.main-nav.open a {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 600;
  color: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: hero-rise 0.35s var(--ease) both;
}

.main-nav.open a::after {
  content: '\2192';
  color: var(--cyan);
  font-size: 1.3rem;
  transition: transform 0.2s var(--ease);
}

.main-nav.open a:hover,
.main-nav.open a:focus-visible {
  color: var(--cyan);
}

.main-nav.open a:hover::after,
.main-nav.open a:focus-visible::after {
  transform: translateX(6px);
}

.main-nav.open a:last-child { border-bottom: none; }

.main-nav.open a:nth-child(1) { animation-delay: 0.03s; }
.main-nav.open a:nth-child(2) { animation-delay: 0.08s; }
.main-nav.open a:nth-child(3) { animation-delay: 0.13s; }
.main-nav.open a:nth-child(4) { animation-delay: 0.18s; }
.main-nav.open a:nth-child(5) { animation-delay: 0.23s; }
.main-nav.open a:nth-child(6) { animation-delay: 0.28s; }

body.nav-open { overflow: hidden; }

/* Login & dashboard */
.login-section {
  padding-top: 4rem;
}

/* Giriş səhifəsinin arxa fonu: səkkizguşəli ulduz naxışı (js/ornament.js). Canvas
   header ilə footer arasındakı bütün <main> sahəsini doldurur, kartın və kabinetin
   arxasında qalır. */
.login-bg { position: relative; }
.login-bg > .login-section { position: relative; z-index: 1; }
.login-ornament {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Giriş ekranı — kitabxananın giriş ekranı kimi (css/library.css#.library-gate): solda "xoş gəlmisiniz" mətni, sağda tək ağ
   giriş kartı (loqo, başlıq, izah, iki sahə, tam enli cyan düymə). Fon dəyişmir — ulduz naxışı (js/ornament.js) qalır, ona görə
   sol mətn ağ yox, tünd göydür. Rol seçimi yoxdur (bax login.html-dəki şərh). it.html/register.html-dəki .login-card dəyişmir. */
.login-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(560px, calc(100vh - 170px));
  padding: 2rem 1rem;
}
/* display:flex [hidden]-i əzməsin (auth.js#showDashboard #loginCard-ı gizlədir). */
.login-stage[hidden] { display: none; }
/* Kabinet açılanda (#loginCard gizlənir) boş qalmasın deyə, giriş görünən müddətdə kabinet bölməsi gizlənir. */
.login-stage:not([hidden]) ~ .login-section { display: none; }

.login-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

/* Solda "xoş gəlmisiniz" mətni — yalnız geniş ekranda görünür (kitabxanadakı kimi). Naxışın xətləri hərflərin üstündən
   keçməsin deyə yazının ətrafında yumşaq ağ işıq var. */
.login-welcome {
  flex: 1 1 320px;
  max-width: 380px;
  color: var(--navy);
  text-shadow: 0 0 14px #fff, 0 0 8px #fff, 0 0 4px #fff, 0 0 18px rgba(255, 255, 255, 0.95);
}
.login-welcome-icon { display: inline-flex; margin-bottom: 1.5rem; }
.login-welcome-icon svg { width: 88px; height: 72px; filter: drop-shadow(0 6px 10px rgba(0, 34, 63, 0.18)); }
.login-welcome h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.login-welcome p { font-size: 1.02rem; line-height: 1.6; color: #3b4660; margin: 0; }
@media (max-width: 860px) {
  .login-welcome { display: none; }
}

.login-gate {
  max-width: 420px;
  width: 100%;
  margin: 0;
  padding: 2.5rem 1.75rem;
  text-align: center;
  /* Yarı şəffaf "buzlu şüşə" — saytın ana səhifəsindəki şüşə panellər kimi (arxadakı naxış bulanıq görünür). */
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(0, 34, 63, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .login-gate { background: rgba(255, 255, 255, 0.95); }
}
.login-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #0a5c8a);
  box-shadow: 0 10px 24px -12px rgba(0, 34, 63, 0.6);
}
/* Loqo ağ rəngdədir (şəffaf fonda), ona görə tünd dairənin içində görünür. */
.login-gate-icon img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.login-gate h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.1rem 0 0.6rem;
  color: var(--navy);
}
.login-gate > p { margin: 0 0 1.5rem; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
.login-gate .contact-form { margin-top: 0; max-width: none; gap: 1rem; text-align: left; }
.login-gate .form-row input { background: rgba(255, 255, 255, 0.88); }

/* Şifrə sahəsi: "göz" düyməsi və klaviatura xəbərdarlığı (bax js/auth.js#initPasswordHelpers). */
.pw-field { position: relative; }
.pw-field input { width: 100%; padding-right: 2.8rem; }
.pw-toggle {
  position: absolute; top: 50%; right: 0.4rem; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: #5b5f72; cursor: pointer;
}
.pw-toggle svg { width: 1.15rem; height: 1.15rem; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--navy); }
.pw-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.pw-hint { display: block; margin-top: 0.35rem; font-size: 0.82rem; font-weight: 600; color: #8a5200; }
.pw-hint[hidden] { display: none; }
.login-gate .form-status { margin: 0; min-height: 1.2em; text-align: center; }
.login-gate .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--cyan-solid);
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.login-gate .btn-submit:hover { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: none; }
.login-gate .btn-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.login-gate .btn-submit.is-loading::after { border-color: rgba(0, 21, 41, 0.25); border-top-color: var(--navy-deep); }

/* Yanlış girişdə silkələnən yalnız kartdır (ümumi .is-shaking bütün səhnəni tərpədərdi). */
.login-stage.is-shaking { animation: none; }
.login-stage.is-shaking .login-gate { animation: shake 0.5s var(--ease); }

/* Alçaq ekranlarda (məs. kiçik telefon, üfüqi mövqe) kart ekrana sığsın deyə sıxılır — kitabxanadakı kimi. */
@media (max-height: 700px) {
  .login-gate { padding: 1.5rem 1.5rem; }
  .login-gate-icon { width: 72px; height: 72px; }
  .login-gate h1 { margin: 0.7rem 0 0.4rem; font-size: 1.25rem; }
  .login-gate > p { font-size: 0.9rem; margin-bottom: 1rem; }
  .login-gate .contact-form { gap: 0.7rem; }
}
@media (max-height: 600px) {
  .login-gate > p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .login-gate .btn-submit { transition: none; }
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 24px 48px -28px rgba(0,34,63,0.35);
  animation: hero-rise 0.5s var(--ease) both;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.login-sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.login-card .contact-form,
.dashboard-block .contact-form {
  margin-top: 0;
  max-width: none;
}

.login-card .role-picker {
  margin-bottom: 1.75rem;
}

.form-row select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-row select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0,34,63,0.1);
}

.dashboard-panel {
  max-width: var(--max);
  margin: 0 auto;
}

/* İdarəetmə paneli — "app shell" strukturu: solda sabit (sticky) sidebar
   (loqo, ikonlu naviqasiya, aşağıda çıxış+profil), sağda böyük səhifə
   başlığı + axtarış/bildiriş, altında kart-əsaslı məzmun. */
.db-shell {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.db-sidebar {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  max-height: calc(100vh - 3rem);
}

.db-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.5rem;
  text-decoration: none;
}

.db-sidebar-brand img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }

.db-sidebar-brand span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.db-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Diqqət: .db-nav-item özü display:flex təyin etdiyi üçün, JS-in qoyduğu
   [hidden] atributu bunu ƏKS HALDA "əzərdi" (author qaydası UA-nın
   [hidden]{display:none} qaydasından həmişə üstündür) — bu qayda olmasa
   rolu uyğun olmayan tab-lar (məs. Kitablarım/Profilim) HƏR İSTİFADƏÇİYƏ
   görünərdi. */
.db-nav-item[hidden] { display: none; }

.db-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.db-nav-item:hover { background: rgba(255,255,255,0.7); color: var(--navy); }

.db-nav-item.is-active {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 3px 10px -4px rgba(0,34,63,0.18);
}

/* Bir bəndin alt-bölmələri (məs. Davamiyyət → Bugünkü vəziyyət / Gündəlik qeyd / Aylıq xülasə): valideyn
   bəndin altında girintili, ikonsuz, bir az kiçik sətirlər (tünd mövzu üçün bax css/cabinet.css). */
.db-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-left: 1.4rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--line);
}
.db-nav-sub[hidden] { display: none; }
.db-nav-sub .db-nav-item { padding: 0.45rem 0.7rem; font-size: 0.82rem; }

.db-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.db-nav-item--logout { color: #b3392f; }
.db-nav-item--logout:hover { background: rgba(179,57,47,0.1); color: #b3392f; }

.db-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.3rem;
}

.dashboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.db-identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.2;
  min-width: 0;
}

.db-identity-text > span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-identity-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.role-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.title-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.title-pill[hidden] {
  display: none;
}

/* Sağ tərəf — səhifə başlığı + axtarış/bildiriş + kart-əsaslı məzmun. */
.db-main {
  flex: 1;
  min-width: 0;
}

.db-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.db-main-header h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.db-main-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.db-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 240px;
  max-width: 300px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.db-search:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0,34,63,0.08);
}

.db-search svg { width: 18px; height: 18px; flex-shrink: 0; }

.db-search input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
}

.db-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.db-icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.db-icon-btn svg { width: 19px; height: 19px; }

/* Əvvəlki eyni səbəb: display:inline-flex olmasa JS-in qoyduğu [hidden]
   atributunu "əzir" (bu, əslində redizayndan ƏVVƏL də mövcud olan, indi
   aşkar edilmiş bir xəta idi — dashboardNotifBtn hər rol üçün görünürdü). */
.db-icon-btn[hidden] { display: none; }

/* Yuxarı paneldəki «Fayllarım» düyməsi (login.html#headerPersonalFilesBtn): Fayllarım başlığındakı emblemin kiçik nüsxəsi
   (css/fayllarim.css .pf-hero-icon) — tünd göy şüşəvari kvadrat, ağ qovluq, sarı xətlər. Hərəkət: ətrafdan iki halqa növbə ilə yayılıb
   sönür, sarı xətlər növbə ilə "yazılır", nöqtə yanıb-sönür. Üzərinə gələndə kvadrat bir az qalxır. Azaldılmış hərəkətdə hamısı dayanır. */
.db-folder-btn {
  --db-folder-acc: #ffd479;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 80% 15%, #12598a, #00223f 70%);
  box-shadow: 0 10px 22px -12px rgba(0, 34, 63, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.db-folder-btn[hidden] { display: none; }
.db-folder-btn:hover,
.db-folder-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(0, 34, 63, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.db-folder-btn svg {
  position: relative;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.db-folder-line { stroke: var(--db-folder-acc); stroke-dasharray: 1; stroke-dashoffset: 0; animation: db-folder-write 3.2s ease-in-out infinite; }
.db-folder-line--late { animation-delay: 0.35s; }
.db-folder-dot { fill: var(--db-folder-acc); stroke: none; animation: db-folder-blink 3.2s ease-in-out infinite; }
.db-folder-ring {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  border: 1px solid rgba(18, 89, 138, 0.55);
  pointer-events: none;
  animation: db-folder-ring 3.2s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
.db-folder-ring--late { animation-delay: 1.6s; }

@keyframes db-folder-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.65); opacity: 0; border-radius: 20px; }
}

@keyframes db-folder-write {
  0%, 12% { stroke-dashoffset: 1; }
  40%, 82% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

@keyframes db-folder-blink {
  0%, 40%, 100% { opacity: 1; }
  52%, 64% { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .db-folder-ring { display: none; }
  .db-folder-line, .db-folder-dot { animation: none; }
  .db-folder-btn { transition: none; }
}

.db-notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0453c;
  border: 2px solid #fff;
}

.dashboard-layout {
  display: flex;
  align-items: flex-start;
}

.dashboard-content {
  flex: 1;
  min-width: 0;
}

.db-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
}

.db-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.db-stat-pill {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.db-stat-pill strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
}

@media (max-width: 900px) {
  .db-shell { flex-direction: column; gap: 1rem; }
  .db-sidebar {
    position: static;
    max-height: none;
    width: 100%;
    flex: 0 0 auto;
  }
  .db-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; }
  .db-nav-item { flex-shrink: 0; }
  /* Üfüqi menyuda alt-bölmələr ayrıca sütun deyil — valideyn bəndin ardınca eyni sırada düzülür. */
  .db-nav-sub { display: contents; }
  .db-nav-sub[hidden] { display: none; }
  .db-sidebar-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
  }
  .db-main-header { flex-direction: column; align-items: stretch; }
  .db-main-actions { justify-content: space-between; }
  .db-search { flex: 0 0 auto; width: 100%; max-width: none; }
  .db-card { padding: 1.25rem; }
}

.btn-ghost-dark {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  height: fit-content;
}

.btn-ghost-dark:hover { border-color: var(--navy); color: var(--navy); }

.dashboard-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.06);
}

.dashboard-block h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.2rem;
}

.dashboard-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.dashboard-block-head h2 { margin: 0; }

.dashboard-block-head-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-danger-outline {
  border-color: #b3261e;
  color: #b3261e;
}

.btn-danger-outline:hover {
  background: #b3261e;
  color: #fff;
  border-color: #b3261e;
}

.btn-link {
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 1rem;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.user-table th,
.user-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.user-table tbody tr {
  transition: background 0.2s var(--ease);
}

.user-table tbody tr:hover {
  background: var(--bg-alt);
}

.user-table th {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.link-danger {
  background: none;
  border: none;
  color: #b3261e;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.link-danger:hover { text-decoration: underline; }

.link-action {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-right: 1rem;
}

.link-action:hover { text-decoration: underline; }

.contact-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-msg-row {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg-alt);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-msg-row:hover {
  box-shadow: 0 10px 24px -16px rgba(0,34,63,0.35);
  transform: translateY(-2px);
}

.contact-msg-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.contact-msg-head strong { color: var(--ink); }
.contact-msg-head span { color: var(--ink-soft); }

.contact-msg-date {
  margin-left: auto;
  font-size: 0.78rem;
}

.contact-msg-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}

.contact-msg-read,
.contact-msg-unread {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.contact-msg-read { background: #e3f3e8; color: #1a7a4c; }
.contact-msg-unread { background: #fdecea; color: #b3261e; }

.contact-msg-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 1rem;
}

.role-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.role-btn { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease); }
.role-btn:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.role-btn:active { transform: translateY(0) scale(0.96); }

.role-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@keyframes credit-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-credit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.15);
  z-index: 40;
  flex-shrink: 0;
  animation: credit-in 0.6s var(--ease) both;
  animation-delay: 0.3s;
  transition: box-shadow 0.3s var(--ease);
}

.admin-credit:hover {
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.22);
}

.admin-credit-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-credit-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.admin-credit-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-credit-title {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.admin-credit-btn {
  margin-left: 0.3rem;
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.admin-credit-btn:hover { background: var(--navy-deep); }
.admin-credit-btn:active { transform: scale(0.97); }

@keyframes popover-in {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-mini-login {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.2);
  transform-origin: top right;
  animation: popover-in 0.2s var(--ease-spring) both;
}

.admin-mini-login[hidden] {
  display: none;
}

.admin-mini-login input {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.admin-mini-login input:focus {
  outline: none;
  border-color: var(--navy);
}

/* .admin-mini-submit — həm login.html-in "Admin" düyməsi (#adminMiniSubmit),
   həm library.html-in "Kitabxana" düyməsi (#libraryMiniSubmit) bu qaydadan
   istifadə edir. */
#adminMiniSubmit,
.admin-mini-submit {
  padding: 0.45rem;
  border: none;
  border-radius: 0.4rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

#adminMiniSubmit:hover,
.admin-mini-submit:hover { background: var(--navy-deep); }

.admin-mini-status {
  margin: 0;
  font-size: 0.72rem;
  min-height: 1em;
}

.admin-mini-status.is-error { color: #b3261e; }
.admin-mini-status.is-success { color: #1a7a4c; }

@media (max-width: 900px) {
  .admin-credit { padding: 0.3rem 0.7rem 0.3rem 0.3rem; }
  .admin-credit-photo { width: 30px; height: 30px; }
  .admin-credit-text { display: none; }
}

/* Scroll-reveal (bax js/main.js — IntersectionObserver bu elementlərə .is-visible əlavə edir).
   Diqqət: gizlətmə YALNIZ <html class="js-reveal-ready"> olduqda aktivləşir —
   JavaScript hər hansı səbəbdən işləməsə, məzmun HEÇ VAXT görünməz qalmır. */
.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal-ready [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-reveal-ready [data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.03s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.27s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.33s; }

/* Yuxarıda nazik scroll-proqres zolağı */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--cyan);
  z-index: 100;
  transition: width 0.1s linear;
}

/* Məlumat yüklənəndə bölmənin içində görünən "server" yükləyicisi (bax js/api.js#dataLoaderHtml):
   server ikonu (işıqları yanıb-sönür) + altında üç sıçrayan nöqtə + yazı. Backend oyaq olanda
   cavab ~0.5 s-də gəlir — yükləyici 0.3 s gecikmə ilə görünür ki, qısa yüklənmədə yanıb-sönməsin.
   4 s-dən sonra yazı JS taymeri olmadan, yalnız CSS ilə "Server oyanır…" mətninə keçir. */
.data-loader {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--navy);
  animation: data-loader-in 0.35s var(--ease) 0.3s both;
}

.data-loader-server { width: 52px; height: 52px; }

.data-loader-server .led {
  fill: var(--cyan);
  animation: data-loader-led 1.2s steps(1) infinite;
}

.data-loader-server .led:nth-of-type(2) { animation-delay: 0.6s; }

.data-loader-dots { display: flex; gap: 8px; }

.data-loader-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  animation: data-loader-bounce 1.2s ease-in-out infinite;
}

.data-loader-dots i:nth-child(2) { animation-delay: 0.15s; background: #0a5a8a; }
.data-loader-dots i:nth-child(3) { animation-delay: 0.3s; background: var(--cyan); }

.data-loader-text {
  display: grid;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* İki mətn eyni xanada üst-üstə durur; 4 s-də biri gizlənir, digəri görünür. */
.data-loader-text > span { grid-area: 1 / 1; }
.data-loader-text .dl-normal { animation: data-loader-hide 0s 4s forwards; }
.data-loader-text .dl-wake { visibility: hidden; color: var(--navy); font-weight: 600; animation: data-loader-show 0s 4s forwards; }

.achievement-list li.data-loader {
  /* .achievement-list li flex sırasını ləğv edir — kartın içində də şaquli düzülsün. */
  display: grid;
  padding: 1.5rem 0.5rem;
  border-top: none;
}

/* Kabinetlərdə künc kartı (bax js/api.js#initFetchLoader): solda server ikonu, sağda nöqtələr + yazı. */
.fetch-loader {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 18px 40px -18px rgba(0,21,41,0.45);
  animation: data-loader-in 0.35s var(--ease) both;
}

.fetch-loader[hidden] { display: none; }
.fetch-loader .data-loader-server { grid-row: 1 / span 2; width: 40px; height: 40px; }
.fetch-loader .data-loader-dots { align-self: end; }
.fetch-loader .data-loader-dots i { width: 8px; height: 8px; }
.fetch-loader .data-loader-text { align-self: start; text-align: left; }

@media (max-width: 600px) {
  .fetch-loader { right: 16px; left: 16px; bottom: 16px; width: auto; }
}

@keyframes data-loader-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes data-loader-led { 50% { opacity: 0.25; } }
@keyframes data-loader-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.55; } 30% { transform: translateY(-10px); opacity: 1; } }
@keyframes data-loader-hide { to { visibility: hidden; } }
@keyframes data-loader-show { to { visibility: visible; } }

/* Səhifəyə daxil olarkən qısa "giriş" ekranı — hər səhifə açılanda görünür,
   məzmun tam hazır olduqda yumşaq şəkildə itir. */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-mark {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loader-mark img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.page-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(38, 210, 255, 0.18);
  border-top-color: var(--cyan);
  animation: page-loader-spin 0.85s linear infinite;
}

@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-ring { animation: none; border-top-color: rgba(38, 210, 255, 0.18); }
}

/* =====================================================================
   Mobil (telefon) uyğunlaşdırması — kompüter dizaynının ekrana sığdırılmış
   forması: eyni görünüş, sütunlar telefon eninə uyğunlaşdırılıb, heç bir
   məzmun kəsilmir/üfüqi daşmır.
   DİQQƏT: bu blok faylın SONUNDA olmalıdır — yuxarıdakı eyni xüsusiyyətli
   əsas qaydalardan (məs. .brand-name { white-space: nowrap }) sonra gəlməsə
   qalib gəlməz (media query xüsusiyyəti artırmır, yalnız mənbə sırası həll edir).
   ===================================================================== */
@media (max-width: 900px) {
  /* Header: logo + ad solda (ad bir neçə sətrə bölünə bilər), düymələr sağda — tək sıra */
  .header-inner { flex-wrap: nowrap; gap: 0.6rem; padding: 0.65rem 1rem; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 0.55rem; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { white-space: normal; font-size: 0.68rem; line-height: 1.2; }
  .header-actions { gap: 0.4rem; }
  .lang-toggle { min-height: 40px; padding: 0.3rem 0.65rem; font-size: 0.72rem; }
  .nav-login-btn { min-height: 40px; padding: 0.4rem 0.85rem; font-size: 0.8rem; }
  .nav-toggle { width: 40px; height: 40px; }

  /* Kabinet: sütun düzülüşündə əsas hissə ekran enini tutsun (əks halda
     məzmun eni qədər genişlənib səhifəni üfüqi daşırırdı) */
  .db-shell { align-items: stretch; }
  .db-main { width: 100%; }
  .user-table { display: block; overflow-x: auto; }
  .db-main-actions { gap: 0.6rem; }
  .db-search { flex: 1 1 auto; width: auto; min-width: 0; }
}

@media (max-width: 600px) {
  /* Buraxılış imtahanı cədvəlləri — 5 sütun telefon eninə sığır, "Cəm" kəsilmir */
  .exam-results-card { padding: 1.1rem 0.8rem; }
  .exam-table { table-layout: fixed; font-size: 0.74rem; }
  .exam-table th, .exam-table td { padding: 0.5rem 0.2rem; }
  .exam-table th { font-size: 0.5rem; letter-spacing: 0; }
  .exam-table th:first-child, .exam-table td:first-child { width: 27%; }
  .exam-score-bar { min-width: 0; }
  .exam-row-best td:first-child { padding-left: 0.3rem; }
  .exam-badge { margin: 0.2rem 0 0; display: table; padding: 0.1rem 0.4rem; font-size: 0.5rem; letter-spacing: 0; }

  /* Olimpiada/müsabiqə medal qrafikləri — 6 sütunun hamısı sürüşdürmə olmadan görünür */
  .olympiad-chart-card { padding: 1.25rem 0.6rem 1rem; }
  .olympiad-chart { overflow-x: visible; justify-content: space-between; gap: 0.2rem; padding-bottom: 0; }
  .olympiad-bar-col { flex: 1 1 0; min-width: 0; }
  .olympiad-bar-track { max-width: 34px; height: 150px; }
  .olympiad-bar-value { font-size: 0.6rem; margin-bottom: 0.4rem; }
  .olympiad-bar-label { font-size: 0.56rem; line-height: 1.15; margin-top: 0.5rem; white-space: normal; }

  /* Kabinet: iç-içə boşluqlar telefonda eni yeməsin */
  .db-main-header h1 { font-size: 1.35rem; }
  .db-card { padding: 0.75rem; }
  .dashboard-block { padding: 1rem; }
  .dashboard-block-head { flex-wrap: wrap; }
  .dashboard-block-head-actions { flex-wrap: wrap; }
}

/* "Kitabxana" header düyməsi kiçik ekranda yer tutur (brend adı oxunmaz olur),
   ona görə telefonda gizlədilir — həmin keçid açılan menyuda mövcuddur. */
@media (max-width: 600px) {
  .nav-library-btn { display: none; }
}

/* Formda yan-yana "checkbox + mətn" sətri (məs. kabinetdə "Kitabxanada göstər"). */
.form-row .checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.form-row .checkbox-row input {
  width: 18px;
  height: 18px;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--navy);
}

/* ------------------------------------------------------------------ Davamiyyət (addım-kartları)
   Kitabxana kabinetinin "Kitab ver" formundakı nömrələnmiş-kart dizaynı ilə EYNİ vizual dil
   (bax css/library.css .library-issue-*) — o fayl yalnız library.html-ə yüklənir, ona görə
   eyni qaydalar bura, login.html-in də istifadə edə bilməsi üçün köçürülüb. */
.attendance-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 800px) { .attendance-step-grid { grid-template-columns: minmax(0, 1fr); } }

.attendance-step-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.attendance-step-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
}

.attendance-step-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Şagirdi cədvəldə tez tapmaq üçün axtarış qutusu (bax library-toolbar). */
.attendance-toolbar {
  display: flex;
  gap: 0.6rem;
  margin: 0.9rem 0;
}
.attendance-toolbar input[type="search"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: #fff;
}
.attendance-toolbar input[type="search"]:focus {
  outline: none;
  border-color: var(--navy);
}

/* Gecikmə vaxtı — yalnız "Gecikdi" işarələnəndə aktivləşir, əks halda solğun/deaktiv görünür. */
.attendance-late-time {
  width: 6.5rem;
}
.attendance-late-time:disabled {
  opacity: 0.4;
}

/* Üzürlü qayıbın səbəbi — "Üzürlü" işarələnəndə qutunun yanında açılan kiçik xana. */
.attendance-excused-cell {
  white-space: nowrap;
}
.attendance-excuse-note {
  width: 9rem;
  margin-left: 0.4rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.85rem;
  vertical-align: middle;
  border: 1px solid var(--line, #d0d7de);
  border-radius: 6px;
  background: #fff;
}
.attendance-excuse-note:focus {
  outline: none;
  border-color: var(--navy);
}
.attendance-excuse-text {
  color: var(--muted, #5b6573);
  font-size: 0.8rem;
}

/* "Qayıb səbəbi" bölməsi (bax js/auth.js#initAttendanceExcuseBlock) — hər qayıb şagird üçün bir
   kart, "Bugünkü vəziyyət"in sinif kartları (.attendance-class-card) ilə EYNİ vizual dildə, amma
   səbəb mətni dar bir xanaya YOX, tam genişlikdə bir textarea-ya yazılır ki, bütöv görünsün. */
/* "Qayıb səbəbi" — bir baxışda seçilmiş günün bütün siniflərinin qayıbları, sinif-sinif plitələr (bax js/auth.js#initAttendanceExcuseBlock).
   Plitə dili "Şagirdlər" bölməsi ilə eynidir (.student-tile): ağ kart, avatar, yumşaq kölgə. Sol zolaq vəziyyəti göstərir:
   kəhrəba — səbəb gözləyir, yaşıl — üzürlü; mavi çərçivə — yazılıb, hələ saxlanmayıb. */
.excuse-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; margin: 0.4rem 0 0.8rem; }
.excuse-day { display: inline-flex; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 0.7rem; background: #fff; }
.excuse-day__step { width: 2.4rem; border: 0; background: transparent; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.excuse-day__step:hover:not(:disabled) { background: var(--bg-alt); }
.excuse-day__step:disabled { color: #b4bccb; cursor: default; }
.excuse-day__input { padding: 0.55rem 0.7rem; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; }
.excuse-day__today { padding: 0 0.95rem; border: 0; background: var(--bg-alt); color: var(--navy); font: 600 0.85rem var(--font-body); cursor: pointer; }
.excuse-day__today[hidden] { display: none; }
.excuse-day__today:hover { background: #dbe5f1; }
/* Davamiyyətin «Bugünkü vəziyyət» və «Gündəlik qeyd» tarixləri: eyni ‹ tarix › «Bu gün» düzülüşü (bax js/auth.js#initDateSteppers). */
.attendance-day { display: flex; width: 100%; }
.attendance-day .excuse-day__input { flex: 1; min-width: 0; width: auto; margin: 0; border-radius: 0; border-top: 0; border-bottom: 0; box-shadow: none; }
/* RTİ: qayıbın fənləri — siyahıdan seçilir (bax js/auth.js#subjectPickerHtml). */
.subject-pick { position: relative; display: inline-block; margin-left: 0.4rem; vertical-align: middle; }
.subject-pick[hidden] { display: none; }
.subject-pick__toggle { max-width: 15rem; overflow: hidden; padding: 0.25rem 0.6rem; border: 1px solid var(--line, #d0d7de); border-radius: 6px; background: #fff; color: var(--ink); font: 500 0.82rem var(--font-body); text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.subject-pick__toggle.is-empty { color: var(--muted, #5b6573); border-style: dashed; }
.subject-pick__toggle:hover { border-color: var(--navy); }
.subject-pick__menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 22rem; max-width: 80vw; padding: 0.7rem; border: 1px solid var(--line, #d0d7de); border-radius: 0.7rem; background: #fff; box-shadow: 0 12px 30px -12px rgba(0, 34, 63, 0.35); }
.subject-pick__menu[hidden] { display: none; }
.subject-pick__hint { margin: 0 0 0.5rem; color: var(--muted, #5b6573); font-size: 0.76rem; }
.subject-pick__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.subject-pick__chip { padding: 0.3rem 0.6rem; border: 1px solid var(--line, #d0d7de); border-radius: 999px; background: #fff; color: var(--ink); font: 500 0.8rem var(--font-body); cursor: pointer; }
.subject-pick__chip:hover { border-color: var(--navy); }
.subject-pick__chip.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.subject-pick__chip b { font-weight: 700; }
.subject-pick__clear { margin-top: 0.55rem; padding: 0.25rem 0.6rem; border: 0; background: transparent; color: #b42318; font: 600 0.78rem var(--font-body); cursor: pointer; }
.excuse-filter { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.25rem; border-radius: 0.85rem; background: var(--bg-alt); }
.excuse-filter__btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border: 0; border-radius: 0.6rem; background: transparent; color: var(--ink-soft); font: 600 0.85rem var(--font-body); white-space: nowrap; cursor: pointer; }
.excuse-filter__btn b { min-width: 1.5rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: rgba(0, 34, 63, 0.09); color: var(--navy); font-size: 0.78rem; text-align: center; }
.excuse-filter__btn:hover { color: var(--navy); }
.excuse-filter__btn.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 34, 63, 0.16); }
.excuse-filter__btn[data-excuse-filter="pending"].is-active b { background: #fde9c4; color: #7a4a00; }
.excuse-filter__btn[data-excuse-filter="done"].is-active b { background: #dff3e8; color: #14633c; }
.excuse-search { flex: 1 1 14rem; min-width: 12rem; padding: 0.6rem 0.85rem; border: 1px solid var(--line); border-radius: 0.7rem; background: #fff; font: inherit; }

/* Sinif paneli: "Bütün siniflər" + hər sinif; qayıbı olan sinifdə kəhrəba say, olmayanda solğun 0 (bax js/auth.js#renderClassBar). */
.excuse-classbar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.9rem; }
.excuse-classchip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 600 0.82rem var(--font-body); white-space: nowrap; cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease; }
.excuse-classchip b { min-width: 1.35rem; padding: 0.02rem 0.4rem; border-radius: 999px; background: #fde9c4; color: #7a4a00; font-size: 0.74rem; text-align: center; }
.excuse-classchip:hover { border-color: var(--cyan-solid); }
.excuse-classchip.is-empty { background: var(--bg); color: var(--ink-soft); font-weight: 500; }
.excuse-classchip.is-empty b { background: rgba(0, 34, 63, 0.07); color: var(--ink-soft); }
.excuse-classchip.is-active { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 600; }
.excuse-classchip.is-active b { background: rgba(255, 255, 255, 0.22); color: #fff; }
.excuse-classchip:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 640px) { .excuse-classbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; scrollbar-width: thin; } }

.excuse-board { margin-top: 0.5rem; }
.excuse-class { margin: 0 0 1.7rem; }
.excuse-class[hidden] { display: none; }
.excuse-class__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; margin: 0 0 0.75rem; color: var(--navy); font: 600 1.25rem var(--font-display); }
.excuse-class__title small { color: var(--ink-soft); font: 500 0.82rem var(--font-body); }
.excuse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)); gap: 0.85rem; }
.excuse-empty { margin: 1rem 0; padding: 1.6rem 1rem; border: 1px dashed var(--line); border-radius: 0.9rem; color: var(--ink-soft); text-align: center; }

.attendance-excuse-card { position: relative; display: flex; min-width: 0; flex-direction: column; gap: 0.7rem; padding: 0.95rem 1rem 0.9rem 1.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 0.9rem; background: #fff; box-shadow: 0 1px 2px rgba(0, 34, 63, 0.05); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.attendance-excuse-card[hidden] { display: none; }
.attendance-excuse-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: #e0a100; }
.attendance-excuse-card.is-done::before { background: #1a7a4c; }
.attendance-excuse-card.is-dirty { border-color: var(--cyan-solid); box-shadow: 0 0 0 2px rgba(38, 210, 255, 0.3); }
.attendance-excuse-card__header { display: flex; align-items: center; gap: 0.75rem; }
.attendance-excuse-card__header h4 { min-width: 0; margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.excuse-statusrow { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.excuse-state { display: inline-block; padding: 0.12rem 0.6rem; border-radius: 999px; background: #fdf1d3; color: #7a4a00; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.attendance-excuse-card.is-done .excuse-state { background: #dff3e8; color: #14633c; }
.excuse-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.excuse-chip { padding: 0.28rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--navy); font: 600 0.78rem var(--font-body); cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease; }
.excuse-chip:hover { border-color: var(--cyan-solid); background: #f3fcff; }
.excuse-chip:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Üzürlüdür — kiçik checkbox əvəzinə modern bir keçid (toggle). */
.attendance-excuse-toggle { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; cursor: pointer; user-select: none; }
.attendance-excuse-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attendance-excuse-toggle__track { position: relative; width: 2.3rem; height: 1.3rem; flex-shrink: 0; border-radius: 999px; background: #d7dbe3; transition: background 0.15s ease; }
.attendance-excuse-toggle__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.attendance-excuse-toggle input:checked + .attendance-excuse-toggle__track { background: #1a7a4c; }
.attendance-excuse-toggle input:checked + .attendance-excuse-toggle__track::after { transform: translateX(1rem); }
.attendance-excuse-toggle input:focus-visible + .attendance-excuse-toggle__track { outline: 2px solid var(--navy); outline-offset: 2px; }
.attendance-excuse-toggle__label { color: var(--ink-soft); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }

/* Səbəb — tam genişlikdə, çox-sətirli; yazdıqca böyüyür (JS), uzun mətn də kəsilmədən görünür. */
.attendance-excuse-textarea { width: 100%; min-height: 3.4rem; max-height: 14rem; resize: vertical; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 0.6rem; background: #fff; color: var(--ink); font: inherit; font-size: 0.9rem; }
.attendance-excuse-textarea:disabled { background: var(--bg-alt); color: var(--ink-soft); }
.attendance-excuse-textarea:focus { outline: none; border-color: var(--navy); }

.attendance-excuse-card__footer { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.attendance-excuse-card__footer .btn-submit { min-height: 38px; padding: 0.5rem 1.2rem; }
.attendance-excuse-card__footer .btn-submit:disabled { opacity: 0.45; cursor: default; }
.attendance-excuse-row-status { margin: 0; font-size: 0.82rem; }
@media (max-width: 520px) { .excuse-filter { width: 100%; } .excuse-day { width: 100%; } .excuse-day__input { flex: 1; min-width: 0; } }

/* Gündəlik qeyd cədvəlinin Gəldi/Qayıb/Gecikdi seçimləri (radio) və Üzürlü qutusu — sadə brauzer
   defoltu əvəzinə .checkbox-row (bax yuxarı) ilə EYNİ ölçü/rəng, cədvəl xanasının ortasında. */
#attendanceRosterTable input[type="checkbox"],
#attendanceRosterTable input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
}
#attendanceRosterTable input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.35; }
#attendanceRosterTable td:has(input[type="checkbox"]),
#attendanceRosterTable td:has(input[type="radio"]) { text-align: center; }

/* "Bugünkü vəziyyət" dashboard-unun tarix/sinif filtrləri — digər form-row-lar kimi tam eninə yox,
   yan-yana kiçik sahələr (dar ekranda alt-alta düşür). */
.attendance-dashboard-filters { display: flex; flex-wrap: wrap; gap: 1rem; }
.attendance-dashboard-filter { flex: 0 1 220px; }
.attendance-clear-all-nav { padding-top: 0.35rem; }
.attendance-clear-all-nav[hidden] { display: none; }
.db-nav-item--danger { color: #a32d2d; }
.db-nav-item--danger:hover { background: rgba(226, 75, 74, 0.1); color: #8a2525; }
.db-nav-item--danger:disabled { opacity: 0.55; cursor: wait; }
.attendance-clear-all-warning { display: block; padding: 0 0.8rem 0.3rem 2.8rem; color: var(--ink-soft); font-size: 0.72rem; }

/* Faiz/vəziyyət rəqəmli mətn əvəzinə rəngli pill kimi (bax js/auth.js#percentPill/#statusPill) —
   gözlə cədvəldə "hansı sinif pisdir" sualının cavabını axtarmadan tapmaq üçün. Rənglər
   .cab-attn--danger/--warn/--success ilə EYNİ palitradır (bax css/cabinet.css) - sayt üzrə vahid. */
.attendance-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.attendance-pill--good { color: #1a7a4c; background: rgba(26, 122, 76, 0.1); }
.attendance-pill--warn { color: #8a5200; background: rgba(240, 160, 48, 0.14); }
.attendance-pill--bad { color: #a32d2d; background: rgba(226, 75, 74, 0.1); }
.attendance-pill--neutral { color: var(--ink-soft); background: var(--bg-alt); }
/* "Hesabat" (texniki inventar) bölməsi — bax js/inventory.js. Vəziyyət nişanlarının rəngləri davamiyyət nişanları
   (.attendance-pill) və Excel ixracı (InventoryExcel) ilə EYNİdir. */
.inventory-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.inventory-pill--good { color: #1a7a4c; background: rgba(26, 122, 76, 0.1); }
.inventory-pill--warn { color: #8a5200; background: rgba(240, 160, 48, 0.14); }
.inventory-pill--bad { color: #a32d2d; background: rgba(226, 75, 74, 0.1); }
.inventory-pill--neutral { color: var(--ink-soft); background: var(--bg-alt); }
.inventory-muted, .inventory-note { color: var(--ink-soft); }
.inventory-signer-row { max-width: 460px; margin: 0.5rem 0 1rem; }

/* Filial seçimi (Gəncə/Bakı) — bax login.html#inventoryCityToggle, js/inventory.js#wireInventoryBlock.
   Segmentli keçid düyməsi: biri həmişə aktivdir, bütün Anbar görünüşünü (kartlar/cədvəl/Excel) süzür. */
.inventory-city-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: var(--bg-alt);
}
.inventory-city-btn {
  padding: 0.5rem 1.3rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.inventory-city-btn:hover { color: var(--navy); }
.inventory-city-btn.is-active { background: var(--navy); color: #fff; box-shadow: 0 4px 10px -4px rgba(0, 34, 63, 0.5); }
.inventory-city-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* İnventar növü kartları — hər siyahı öz ikonu ilə (bax js/inventory.js#inventoryIcon); üslub .cab-stat ilə eynidir. */
.inventory-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
  margin: 0.75rem 0 1.5rem;
}
.inventory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.inventory-card:hover { border-color: var(--navy); box-shadow: 0 6px 16px -10px rgba(0, 34, 63, 0.45); }
.inventory-card:focus-visible { outline: 2px solid var(--cab-accent, var(--navy)); outline-offset: 2px; }
.inventory-card.is-active { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(0, 34, 63, 0.18); background: #fff; }
.inventory-card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--navy);
  background: rgba(0, 34, 63, 0.08);
  margin-bottom: 0.35rem;
}
.inventory-card-icon svg { width: 24px; height: 24px; }
.inventory-card--unusable .inventory-card-icon { color: #a32d2d; background: rgba(226, 75, 74, 0.1); }
.inventory-card-name { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
.inventory-card-total { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.inventory-card-total small { font-size: 0.75rem; font-weight: 500; color: var(--ink-soft); font-family: var(--font-body); margin-left: 0.35rem; }
.inventory-card-split { display: flex; flex-wrap: wrap; gap: 0.25rem 0.7rem; font-size: 0.75rem; color: var(--ink-soft); min-height: 1.1rem; }
.inventory-card-split .is-good { color: #1a7a4c; }
.inventory-card-split .is-warn { color: #8a5200; }
.inventory-card-split .is-bad { color: #a32d2d; }
.inventory-card-excel {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.inventory-card-excel:hover { border-color: var(--navy); }
.inventory-actions { white-space: nowrap; }

/* Yalnız-baxış (Pedaqoji rəhbərlik heyəti, səlahiyyətsiz): redaktə sütunu boş qalmasın deyə gizlənir. */
#inventoryBlock.is-readonly .inventory-actions,
#inventoryBlock.is-readonly #inventoryItemsTable th:last-child { display: none; }
.inventory-form-wrap {
  margin: 1rem 0 1.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.inventory-form-wrap[hidden] { display: none; }
.inventory-form-wrap h3 { margin: 0 0 1rem; }
.inventory-form { display: flex; flex-direction: column; gap: 1rem; }
.inventory-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.inventory-form .form-row select {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
}
/* Anbar uçotu: gün.ay.il tarix sahəsi + təqvim düyməsi (bax js/stock.js#initStockDateField). Brauzerin date sahəsi
   gizli qalır — yalnız təqvimi açmaq üçündür, açılan təqvim sahənin altında çıxsın deyə eni sahə boydadır. */
.stock-date-field { position: relative; display: flex; }
.stock-date-field input[type="text"] { flex: 1; min-width: 0; padding-right: 2.9rem; font-variant-numeric: tabular-nums; }
.stock-date-field input[aria-invalid="true"] { border-color: #b3261e; }
.stock-date-pick {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0 0.45rem 0.45rem 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.stock-date-pick:hover, .stock-date-pick:focus-visible { background: rgba(0, 34, 63, 0.07); outline: none; }
.stock-date-pick svg { width: 18px; height: 18px; }
.form-row .stock-date-native {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.inventory-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.inventory-check input { width: 18px; height: 18px; accent-color: var(--navy); }
#inventoryItemsTable td:nth-child(6), #inventoryItemsTable th:nth-child(6) { text-align: center; }
.inventory-table-scroll { overflow-x: auto; margin-bottom: 0.5rem; }
.inventory-table-scroll .user-table { min-width: 640px; }
#inventoryItemsTable { min-width: 980px; }
.attendance-count-share { display: inline-flex; align-items: baseline; gap: 0.35rem; white-space: nowrap; }
.attendance-count-share strong { font-weight: 700; }
.attendance-count-share small, .attendance-excused-count { color: var(--ink-soft); font-size: 0.78rem; }
.attendance-excused-count { display: block; margin-top: 0.15rem; }

/* Davamiyyətin iş axınları (bugünkü vəziyyət, gündəlik qeyd, aylıq xülasə, +admin-only məktəb-üzrə
   hesabat/Excel idxalı) ayrı panellərdir — hansının görünəcəyini sidebar-dakı alt-bölmələr seçir (bax
   login.html #attendanceSidebarSub, js/auth.js#activateAttendancePanel). */
.attendance-panel[hidden] { display: none; }

/* Sinif kartları faiz və əsas sayları ayrı vizual qruplarda, tez müqayisə ediləcək formada göstərir. */
.attendance-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}
.attendance-class-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.attendance-class-card--unrecorded { border-left: 4px solid rgba(240, 160, 48, 0.8); }
.attendance-class-card__header,
.attendance-class-card__header > div,
.attendance-class-card__rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.attendance-class-card__header h3 { margin: 0; font-size: 1.05rem; }
.attendance-class-card__header > div > span,
.attendance-class-card__rate > span:first-child { color: var(--ink-soft); font-size: 0.82rem; }
.attendance-class-card__rate { padding: 0.65rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.attendance-class-card__rate .attendance-pill { font-size: 1rem; }
.attendance-class-card__empty { color: var(--ink-soft); }
.attendance-class-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.attendance-class-card__stats > div { min-width: 0; }
.attendance-class-card__stats > div > span:first-child { display: block; margin-bottom: 0.3rem; color: var(--ink-soft); font-size: 0.76rem; }
.attendance-class-open {
  align-self: flex-start;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.attendance-class-open:hover { text-decoration: underline; }
.attendance-class-open:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.attendance-dashboard-message { grid-column: 1 / -1; }
.attendance-reset-btn {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.attendance-reset-btn:hover { border-color: var(--navy); color: var(--navy); }
.attendance-reset-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Məktəb-üzrə aylıq hesabatda (bax js/auth.js#initAttendanceBlock) faizi 90%-dən aşağı olan
   sinif sətri - "diqqət lazımdır" siyahısında əvvəldə də gəlir (backend sıralayır), rəng bunu
   vizual olaraq da vurğulayır. */
#attendanceSchoolSummaryTableBody tr.attendance-low-percent { background: rgba(255,99,71,0.10); }
/* Məktəb üzrə orta sətri və "Bugünkü vəziyyət"in orta faizi — yekun kimi seçilsin. */
#attendanceSchoolSummaryTableBody tr.attendance-average-row { font-weight: 700; background: #dce6f2; border-top: 2px solid var(--navy); }
.attendance-dashboard-average { font-weight: 600; color: var(--navy); }

/* Şifrə sahəsinin "göz" düyməsi (bax js/api.js#initPasswordToggles): sahənin içində, sağda; mətn altına düşməsin. */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 2.75rem; box-sizing: border-box; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #6b7a8c;
  cursor: pointer;
}
.password-toggle:hover { color: var(--navy); background: rgba(0, 34, 63, 0.06); }
.password-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.password-toggle svg { width: 18px; height: 18px; }

/* Şagirdin sinfi "İstifadəçi hesabları" cədvəlində; sinfi yoxdursa qırmızı (davamiyyətə düşmür). */
.user-class { color: var(--ink-soft); font-size: 0.8rem; }
.user-class.is-missing { color: #b42318; font-weight: 600; }

/* Davamiyyət: sinfi təyin olunmamış şagirdlər barədə xəbərdarlıq (bax js/auth.js#loadUnassignedStudents). */
.attendance-unassigned {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fff7e6;
  color: #7a4b00;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* "Bu bölmə hazırlanır" — Transkriptlər (kitabxana: js/librarian.js#renderLibraryTranscripts; kabinet: js/auth.js#renderCabinetTranscripts): iki fırlanan dişli çarx,
   altında yazı və axan zolaq. Hərəkəti azaltmaq ayarı olanda style.css-dəki ümumi qayda animasiyanı dayandırır. */
.lib-wip {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 3rem 1rem 3.5rem;
  text-align: center;
  animation: lib-wip-in 0.4s var(--ease) both;
}
.lib-wip[hidden] { display: none; }
.lib-wip-gears { width: 150px; height: 100px; }
.lib-wip-gear { transform-box: fill-box; transform-origin: center; }
.lib-wip-gear--big { animation: lib-wip-spin 6s linear infinite; }
.lib-wip-gear--small { animation: lib-wip-spin 3.6s linear infinite reverse; }
.lib-wip-teeth { fill: none; stroke: var(--navy); stroke-width: 8; stroke-dasharray: 6.3 6.3; }
.lib-wip-teeth--small { stroke-width: 7; stroke-dasharray: 5.5 5.5; }
.lib-wip-body { fill: var(--navy); }
.lib-wip-body--accent { fill: #0a5a8a; }
.lib-wip-hole { fill: var(--cyan); }
.lib-wip-title {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.lib-wip-text { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.lib-wip-bar {
  display: block;
  width: min(220px, 70%);
  height: 4px;
  margin-top: 0.6rem;
  overflow: hidden;
  border-radius: 99px;
  background: var(--bg-alt);
}
.lib-wip-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 99px;
  background: var(--cyan);
  animation: lib-wip-slide 1.6s ease-in-out infinite;
}
@keyframes lib-wip-spin { to { transform: rotate(360deg); } }
@keyframes lib-wip-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes lib-wip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* "Anbar uçotu" bölməsi — bax js/stock.js. Forma, cədvəl qabı və nişanlar texniki inventar bölməsindəki
   siniflərdən (.inventory-*) təkrar istifadə edir; burada yalnız ay seçimi, xəbərdarlıq və imza bloku var. */
.stock-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 1rem;
}
.stock-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--bg-alt);
}
.stock-month-nav select,
.stock-month-nav input {
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 0.8rem;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
}
.stock-month-nav input { width: 5.4rem; }
.stock-month-btn {
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.stock-month-btn:hover { background: var(--navy); color: #fff; }
.stock-month-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.stock-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stock-actions[hidden] { display: none; }
.stock-warnings {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem 0.7rem 2rem;
  border-radius: var(--radius);
  background: rgba(226, 75, 74, 0.08);
  color: #8a2525;
  font-size: 0.9rem;
}
.stock-warnings[hidden] { display: none; }
.stock-report-table td { vertical-align: top; }
.stock-total-row td { background: var(--bg-alt); border-top: 2px solid var(--navy); }
.stock-sign-rows { display: grid; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.stock-sign-row { display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; }
@media (max-width: 700px) {
  .stock-sign-row { grid-template-columns: 1fr; }
  .stock-toolbar { align-items: stretch; }
}
/* Yalnız-baxış (Pedaqoji rəhbərlik heyəti): redaktə sütunu boş qalmasın deyə gizlənir. */
#stockBlock.is-readonly .inventory-actions,
#stockBlock.is-readonly #stockReceiptsTable th:last-child,
#stockBlock.is-readonly #stockIssuesTable th:last-child { display: none; }
/* Material kartları (.inventory-card ilə eyni dizayn): qalığı qalmayan qrup solğun görünür. */
/* Məxaric bölməsinin altında: bu ay gələn mallardan sonrakı aylarda verilənlər (yalnız məlumat, bax js/stock.js). */
.stock-later { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.stock-later[hidden] { display: none; }
.stock-later h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.stock-later .section-note { margin-top: 0; }
.stock-card--empty { opacity: 0.6; }
.stock-card--empty .inventory-card-icon { color: var(--ink-soft); background: rgba(0, 34, 63, 0.05); }

/* "Paylama cədvəli" (bax js/stock-sheet.js): Excel kimi sətir-sətir yazılan cədvəl. Xanalar çərçivəsiz input-dur, fokus
   alanda çərçivə çıxır; sarı sətir — yadda saxlanmamış dəyişiklik, qırmızı xana — xəta. */
.stock-sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0.75rem;
}
.stock-sheet-period { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; color: var(--ink-soft); font-size: 0.92rem; }
.stock-sheet-period input {
  width: 7.4rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 0.6rem;
  font: inherit;
  color: var(--navy);
}
.stock-sheet-title { margin: 0.25rem 0 0.75rem; font-size: 1rem; line-height: 1.45; text-align: center; }
.inventory-table-scroll .stock-sheet-table { width: 100%; min-width: 780px; table-layout: fixed; border-collapse: collapse; } /* .inventory-table-scroll .user-table (640px) qaydasından güclü olmalıdır */
.stock-sheet-table th {
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--line);
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}
.stock-sheet-table th:nth-child(1) { width: 3rem; }
.stock-sheet-table th:nth-child(3) { width: 7.8rem; }
.stock-sheet-table th:nth-child(5) { width: 5.2rem; }
.stock-sheet-table th:nth-child(6) { width: 6.2rem; }
.stock-sheet-table th:nth-child(7) { width: 5.5rem; }
.stock-sheet-table th:nth-child(8) { width: 4.2rem; }
/* ad (2) və material (4) sütunları qalan eni bərabər bölür */
.stock-sheet-table td { padding: 0; border: 1px solid var(--line); vertical-align: middle; }
.stock-sheet-table input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 0.6rem 0.55rem;
  font: inherit;
  color: inherit;
}
.stock-sheet-table input:hover:not([readonly]) { background: rgba(0, 34, 63, 0.04); }
.stock-sheet-table input:focus { outline: none; border-color: var(--navy); background: #fff; }
.stock-sheet-table input[readonly] { cursor: default; }
.stock-sheet-table td.stock-sheet-no { text-align: center; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stock-sheet-table td.stock-sheet-unit { padding: 0 0.4rem; text-align: center; color: var(--ink-soft); }
.stock-sheet-table td:nth-child(6) input { text-align: center; }
.stock-sheet-table td.stock-sheet-sign { background: rgba(0, 34, 63, 0.025); }
.stock-sheet-table .stock-sheet-actions { white-space: nowrap; text-align: center; }
.stock-sheet-table td.stock-sheet-actions { border-color: transparent; padding: 0 0.25rem; }
.stock-sheet-row.is-new td { background: rgba(38, 210, 255, 0.06); }
.stock-sheet-row.is-new td.stock-sheet-no { color: var(--navy); font-weight: 700; }
.stock-sheet-row.is-dirty td { background: #fff7df; }
.stock-sheet-row.is-saving { opacity: 0.6; }
.stock-sheet-table td.has-error { background: rgba(226, 75, 74, 0.12); }
.stock-sheet-table td.has-error input { border-color: #e24b4a; }
.stock-sheet-btn {
  width: 1.7rem;
  height: 1.7rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.stock-sheet-btn:hover { background: var(--bg-alt); color: var(--navy); }
.stock-sheet-btn.is-danger:hover { background: rgba(226, 75, 74, 0.12); color: #c0392b; }
.stock-sheet-empty { padding: 1rem; text-align: center; }

/* Çap: səhifəyə yalnız #stockPrintSheet (js/stock-sheet.js body-yə əlavə edir) çıxır, qalan hər şey gizlədilir. */
#stockPrintSheet { display: none; }
@page stock-sheet { size: A4 portrait; margin: 12mm 12mm 14mm; }
@media print {
  body.is-printing-stock > *:not(#stockPrintSheet) { display: none !important; }
  body.is-printing-stock { background: #fff !important; }
  body.is-printing-stock #stockPrintSheet {
    display: block;
    page: stock-sheet;
    color: #000;
    font: 10.5pt/1.3 Arial, Helvetica, sans-serif;
  }
  #stockPrintSheet h1 { margin: 0 0 6mm; font: 700 12pt/1.4 Arial, Helvetica, sans-serif; text-align: center; }
  #stockPrintSheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  #stockPrintSheet thead { display: table-header-group; }
  #stockPrintSheet tr { break-inside: avoid; }
  #stockPrintSheet th,
  #stockPrintSheet td { border: 0.6pt solid #000; padding: 1.2mm 1.6mm; vertical-align: middle; overflow-wrap: anywhere; }
  #stockPrintSheet th { background: #e6e6e6; font-size: 9.5pt; font-weight: 700; text-align: center; hyphens: none; overflow-wrap: normal; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #stockPrintSheet td { height: 11mm; }
  #stockPrintSheet td.c { text-align: center; }
  #stockPrintSheet th:nth-child(1), #stockPrintSheet td:nth-child(1) { width: 13mm; }
  #stockPrintSheet th:nth-child(3), #stockPrintSheet td:nth-child(3) { width: 24mm; white-space: nowrap; }
  #stockPrintSheet th:nth-child(5), #stockPrintSheet td:nth-child(5) { width: 21mm; }
  #stockPrintSheet th:nth-child(6), #stockPrintSheet td:nth-child(6) { width: 25mm; }
  #stockPrintSheet th:nth-child(7), #stockPrintSheet td:nth-child(7) { width: 30mm; }
}

/* "Şagirdlər" bölməsi (yalnız Admin) — bax js/students.js. */
.students-year { margin: 0 0 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); font-size: 0.92rem; }
.students-year p { margin: 0.25rem 0; }
.students-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.75rem; }
.students-toolbar select,
.students-toolbar input { padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; font: inherit; }
.students-toolbar input { flex: 1; min-width: 200px; }
.students-move { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; padding: 0.7rem 0.9rem; border: 1px solid var(--navy); border-radius: 0.6rem; background: rgba(0, 34, 63, 0.04); }
.students-move[hidden] { display: none; }
.students-move input { padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 0.5rem; font: inherit; width: 11rem; }
/* "Şagirdlər" — plitka görünüşü: siniflər üzrə qruplar, hər şagird bir plitka (bax js/students.js#studentTileHtml) */
.students-tilebar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.25rem 0 1rem; color: var(--ink-soft); font-size: 0.9rem; }
.students-selectall { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; font-weight: 600; color: var(--ink); }
.students-selectall[hidden] { display: none; }
.student-class-group { margin: 0 0 1.7rem; }
.student-class-title { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.75rem; font: 600 1.2rem var(--font-display); color: var(--navy); }
.student-class-title small { font: 500 0.8rem var(--font-body); color: var(--ink-soft); }
.student-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.85rem; }
.student-tile { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 0.95rem 1rem 0.85rem; background: #fff; border: 1px solid var(--line); border-radius: 0.9rem; box-shadow: 0 1px 2px rgba(0, 34, 63, 0.04); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.student-tile:hover { border-color: #c4c9e6; box-shadow: 0 10px 22px -12px rgba(0, 34, 63, 0.3); transform: translateY(-2px); }
.student-tile.is-selected { border-color: var(--cyan-solid); background: #f3fcff; box-shadow: 0 0 0 2px rgba(38, 210, 255, 0.35); }
.student-tile-main { display: grid; grid-template-columns: auto 1fr; column-gap: 0.8rem; row-gap: 0.2rem; align-items: center; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.student-tile.has-check .student-tile-main { padding-right: 1.7rem; }
.student-tile-main:focus-visible { outline: 2px solid var(--cyan-solid); outline-offset: 4px; border-radius: 0.6rem; }
.student-avatar { grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: hsl(var(--hue, 210) 52% 42%); color: #fff; font: 700 0.95rem var(--font-display); letter-spacing: 0.02em; }
.student-tile-name { align-self: end; font-weight: 600; line-height: 1.25; color: var(--ink); }
.student-tile-meta { align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--ink-soft); }
.student-tile-class { padding: 0.05rem 0.55rem; border-radius: 999px; background: rgba(38, 210, 255, 0.16); color: #0a6b8a; font-weight: 700; }
.student-tile-class.is-missing { background: #fde8e6; color: #b42318; }
.student-tile-id { font-variant-numeric: tabular-nums; }
/* "Liseydən çıxıb" (js/students.js): plitka solğun, nişan qırmızımtıl; kartda qeyd/geri qaytarma bloku */
.student-tile.is-left { background: #f7f8fa; border-style: dashed; }
.student-tile.is-left .student-tile-name { color: var(--ink-soft, #5b6b82); }
.student-left-badge { display: inline-block; align-self: flex-start; margin-top: 0.15rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #fde8e6; color: #b42318; font-size: 0.75rem; font-weight: 600; }
.student-left-box { margin: 0.6rem 0 0.9rem; }
.student-left-box.is-left { padding: 0.6rem 0.85rem; border: 1px solid #f3c1bb; border-radius: 0.7rem; background: #fff5f4; }
.student-left-box.is-left p { margin: 0 0 0.5rem; }
.student-left-box .students-move { margin-top: 0.5rem; }
.student-tile-actions .link-action.is-danger { color: #b42318; }
.student-tile-results { padding-top: 0.55rem; border-top: 1px dashed var(--line); font-size: 0.82rem; }
.student-tile-actions { display: flex; gap: 1rem; margin-top: auto; padding-top: 0.55rem; border-top: 1px solid var(--line); }
.student-tile-check { position: absolute; top: 0.7rem; right: 0.75rem; display: flex; cursor: pointer; }
.student-tile-check input { width: 1.1rem; height: 1.1rem; cursor: pointer; }
@media (max-width: 520px) { .student-tiles { grid-template-columns: 1fr; } }
.student-details-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.student-details-head h3 { margin: 0; }
#studentDetails h4 { margin: 1.1rem 0 0.5rem; }
.student-loans { margin: 0; padding-left: 1.2rem; }
.student-loans li { margin: 0.3rem 0; }
.student-overdue { color: #b3261e; font-weight: 600; }
#studentsTable td:first-child, #studentsTable th:first-child { width: 2.2rem; text-align: center; }
/* Şagirdin nəticələri: medal nişanları və redaktə forması (bax js/students.js). */
.student-details-actions { display: flex; gap: 0.5rem; }
.student-medals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.student-medal-row { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }
.medal-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.medal-badge--gold { background: #fff4cc; color: #7a5600; border-color: #f0d36b; }
.medal-badge--silver { background: #eef0f4; color: #4a5160; border-color: #c9ced8; }
.medal-badge--bronze { background: #fbe7da; color: #7d3f16; border-color: #e3b28f; }
.student-medal-edit { display: grid; grid-template-columns: 9rem 7rem 1fr 5rem auto; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.student-medal-edit select,
.student-medal-edit input { padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 0.5rem; background: #fff; font: inherit; min-width: 0; }
@media (max-width: 640px) { .student-medal-edit { grid-template-columns: 1fr 1fr; } }
#studentDetails h4 { margin: 1.1rem 0 0.5rem; }

/* MENTOREX sənəd qovluqları (bax js/mentorex.js). */
.mentorex-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
.mentorex-folder { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease); }
.mentorex-folder:hover, .mentorex-folder:focus-visible { border-color: var(--navy); box-shadow: 0 6px 18px rgba(0, 34, 63, 0.08); transform: translateY(-1px); outline: none; }
.mentorex-folder svg { width: 30px; height: 30px; color: var(--navy); }
.mentorex-folder-name { font-weight: 600; word-break: break-word; }
.mentorex-folder-note { font-size: 0.85rem; color: var(--ink-soft); }
.mentorex-folder-meta { font-size: 0.8rem; color: var(--ink-soft); margin-top: auto; }
.mentorex-folder-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: 1rem 0; }
.mentorex-folder-head h3 { margin: 0 0 0.25rem; }
.mentorex-folder-head p { margin: 0; }
.mentorex-folder-actions { display: flex; gap: 0.75rem; }
.mentorex-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 1.4rem 1rem; margin-bottom: 0.6rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg-alt); text-align: center; cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.mentorex-drop:hover, .mentorex-drop.is-over { border-color: var(--navy); background: rgba(0, 34, 63, 0.05); }
.mentorex-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mentorex-drop span { font-size: 0.85rem; color: var(--ink-soft); }
.mentorex-type { display: inline-block; min-width: 3.2rem; padding: 0.05rem 0.35rem; margin-right: 0.35rem; border-radius: 0.35rem; background: rgba(0, 34, 63, 0.08); color: var(--navy); font-size: 0.68rem; font-weight: 700; text-align: center; }
#mentorexFolderForm { margin-top: 0; }
#mentorexUploadStatus { white-space: pre-line; }

/* MENTOREX — genişləndirilmiş iş masası: statistika, mərhələ nişanları, son tarix, yoxlama siyahısı, qeydlər. */
.mx-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.mx-stats[hidden] { display: none; }
.mx-stat { display: flex; flex-direction: column; align-items: flex-start; min-width: 7.5rem; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.mx-stat:disabled { cursor: default; }
.mx-stat.is-active { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(0, 34, 63, 0.12); }
.mx-stat-value { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.mx-stat-label { font-size: 0.78rem; color: var(--ink-soft); }
.mx-stat--warn { border-color: #f0c674; background: #fff8e6; }
.mx-card-top { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.mx-status { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: #eef0f6; color: #3b4256; white-space: nowrap; vertical-align: middle; }
.mx-status--docs { background: #e6f0ff; color: #1d4ed8; }
.mx-status--applied { background: #efe7ff; color: #6d28d9; }
.mx-status--admitted { background: #e3f7ec; color: #15803d; }
.mx-status--visa { background: #fff1db; color: #b45309; }
.mx-status--departed { background: #d9f2f7; color: #0e7490; }
.mx-status--cancelled { background: #f1f1f1; color: #6b7280; text-decoration: line-through; }
.mx-deadline { font-size: 0.8rem; color: var(--ink-soft); }
.mx-deadline.is-soon { color: #b45309; font-weight: 600; }
.mx-deadline.is-late { color: #b3261e; font-weight: 600; }
.mx-warn { color: #b3261e; }
.mx-progress { display: block; width: 100%; height: 5px; border-radius: 999px; background: #eceef4; overflow: hidden; margin-top: 0.2rem; }
.mx-progress span { display: block; height: 100%; background: var(--navy); }
.mx-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.4rem 1.2rem; margin-top: 0.4rem; }
.mx-info div { display: flex; flex-direction: column; }
.mx-info span { font-size: 0.75rem; color: var(--ink-soft); }
.mx-info strong { font-weight: 600; word-break: break-word; }
.mx-status-quick { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.mx-status-quick select { padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 0.45rem; font: inherit; }
.mentorex-folder-actions { flex-wrap: wrap; align-items: center; }
.mx-checklist { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.mx-check { padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 0.82rem; cursor: pointer; }
.mx-check.is-ok { background: #e3f7ec; color: #15803d; border-color: #b6e6c8; }
.mx-check.is-missing { background: #fdecea; color: #b3261e; border-color: #f5c2bd; }
.mx-upload-options { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 0.6rem; }
.mx-upload-options label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 500; }
.mx-upload-options select, .mx-upload-options input { padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 0.5rem; font: inherit; background: #fff; }
#mentorexFolderView h4 { margin: 1.3rem 0 0.6rem; }
.mx-note-form { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.8rem; }
.mx-note-form textarea { flex: 1; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 0.5rem; font: inherit; resize: vertical; }
.mx-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.mx-notes li { padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 0.6rem; background: #fff; }
.mx-note-head { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; }
.mx-note-head button { margin-left: auto; }
.mx-notes p { margin: 0.3rem 0 0; white-space: pre-line; }
@media (max-width: 640px) { .mx-note-form { flex-direction: column; } .mx-note-form textarea { width: 100%; } }

/* Anbar: «İl üzrə Excel» paneli — iki format seçimi (js/stock.js#exportStockYear) */
.stock-export-formats { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0.25rem 0 0.9rem; }
.stock-export-format {
  display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.stock-export-format:has(input:checked) { border-color: var(--navy, #16345f); box-shadow: 0 0 0 2px rgba(22, 52, 95, 0.12); }
.stock-export-format input { margin-top: 0.2rem; }
.stock-export-format span { display: grid; gap: 0.2rem; }
.stock-export-format small { color: var(--ink-soft); line-height: 1.35; }
#stockYearExportWrap .stock-sheet-period input[type="month"] { width: 10rem; }

/* Davamiyyət: «Lisey üçün» / «Gəncə-Daşkəsən RTİ üçün» jurnalları (js/auth.js#attendanceJournal) */
.attendance-journal-toggle { margin: 0.35rem 0 0.6rem; }
.attendance-journal-note {
  margin: 0 0 0.9rem; padding: 0.65rem 0.9rem; border-radius: 10px;
  background: #fff6e0; border: 1px solid #e8c766; color: #5a4300; font-size: 0.92rem; line-height: 1.4;
}
#attendanceBlock.is-rti-journal #attendancePanelTitle::after {
  content: " · RTİ üçün"; color: #a36f00; font-weight: 600;
}

/* ------------------------------------------------------------------ İkiaddımlı giriş (2FA)
   .tf-overlay — girişdə kod pəncərəsi (js/api.js#completeTwoFactor, bütün giriş formaları);
   .tf-settings — kabinetin «Hesab məlumatları»ndakı qoşma bölməsi (js/auth.js#initTwoFactorSettings). */
.tf-overlay {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(0, 21, 41, 0.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: tf-fade 0.18s ease-out;
}
@keyframes tf-fade { from { opacity: 0; } }
.tf-dialog {
  width: min(24rem, 100%);
  display: grid; gap: 0.7rem; justify-items: center; text-align: center;
  padding: 1.8rem 1.6rem 1.3rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.55);
  border-top: 3px solid #c9a227;
}
.tf-dialog h2 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.tf-icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: #f6ecc4; color: #7a5c00; }
.tf-icon svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tf-note { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.tf-code {
  width: 100%; padding: 0.7rem 0.8rem;
  border: 2px solid var(--line); border-radius: 12px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.7rem; font-weight: 700; letter-spacing: 0.3em; text-align: center; text-transform: uppercase;
  color: var(--navy);
}
.tf-code:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 34, 63, 0.1); }
.tf-code::placeholder { color: #c3cad5; }
.tf-error { width: 100%; margin: 0; padding: 0.5rem 0.7rem; border-radius: 8px; background: #fdecea; color: #b3261e; font-size: 0.88rem; }
.tf-submit { width: 100%; }
.tf-link { padding: 0.15rem; border: 0; background: none; color: var(--navy); font: inherit; font-size: 0.86rem; text-decoration: underline; cursor: pointer; }
.tf-link[data-tf-cancel] { color: var(--ink-soft); }

.tf-settings { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tf-settings h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--navy); }
.tf-badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: #e3f4ea; color: #1f8a5b; font-size: 0.8rem; font-weight: 700; }
.tf-steps { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; color: var(--ink); font-size: 0.92rem; line-height: 1.6; }
.tf-qr-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-bottom: 1rem; }
.tf-qr { width: 180px; height: 180px; flex: none; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tf-qr-wrap .section-note { flex: 1 1 14rem; margin: 0; }
.tf-secret { display: inline-block; margin-top: 0.35rem; padding: 0.3rem 0.55rem; border-radius: 6px; background: var(--bg-alt); font-size: 0.92rem; letter-spacing: 0.04em; word-break: break-all; user-select: all; }
.tf-codes-warn { margin: 0 0 0.8rem; padding: 0.7rem 0.85rem; border-radius: 10px; background: #fff4d6; color: #5c4700; font-size: 0.9rem; }
.tf-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tf-codes li { padding: 0.45rem 0.6rem; border: 1px dashed #c9d2df; border-radius: 8px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1rem; text-align: center; letter-spacing: 0.06em; }
