/* Avromed Akademiya — dizayn sistemi (premium, ağ fon)
   Rənglər: ağ kətan, dərin teal və kəhrəba vurğular. Admin panelinin sol menyusu tündlüyünü
   saxlayır (fərqli, sabit naviqasiya səthi kimi); bütün digər səhifələr və admin panelinin sağ
   hissəsi ağ fondadır. Animasiya, keçid və kölgə effektləri saxlanılıb. Şrift: Inter. */
:root {
  --ink: #171325;
  --ink-2: #4a4363;
  --muted: #74708c;
  --line: #e6e2f2;
  --line-2: #f1eef9;
  --canvas: #f7f6fc;
  --surface: #ffffff;
  --teal-950: #190f33;
  --teal-900: #241452;
  --teal-800: #38237e;
  --teal-700: #4f3cc9;
  --teal-600: #6c5ce7;
  --teal-100: #e7e3fb;
  --teal-50: #f3f1fd;
  --amber: #e9a23b;
  --amber-700: #a86a0f;
  --amber-100: #fcefd6;
  --leaf: #2b9a68;
  --leaf-700: #1d7250;
  --leaf-100: #dcf2e7;
  --coral: #cf4a40;
  --coral-700: #a5342c;
  --coral-100: #fbe4e1;
  --sky: #3577b5;
  --sky-100: #e1edf8;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 26px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 20px 48px -28px rgba(36,20,82,.16);
  --shadow-pop: 0 28px 70px -24px rgba(36,20,82,.24);
  --ease: cubic-bezier(.22,.9,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--ink);
  background: var(--canvas); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.014em; font-weight: 700; color: var(--ink); }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15.5px; }
p { margin: 0 0 .75em; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; } .mt-sm { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- düymələr */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r); font: inherit; font-weight: 650; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, var(--teal-700), var(--teal-900));
  text-decoration: none; white-space: nowrap; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
  box-shadow: 0 14px 28px -14px rgba(79,60,201,.55);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(79,60,201,.62); text-decoration: none; background: linear-gradient(180deg, var(--teal-600), var(--teal-800)); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(36,20,82,.04); }
.btn.secondary:hover { background: var(--teal-50); border-color: var(--teal-100); box-shadow: 0 6px 16px -10px rgba(36,20,82,.12); }
.btn.ghost { background: transparent; color: var(--teal-800); box-shadow: none; }
.btn.ghost:hover { background: var(--teal-50); box-shadow: none; }
.btn.danger { background: linear-gradient(180deg, #e0564c, var(--coral)); box-shadow: 0 14px 28px -14px rgba(207,74,64,.5); }
.btn.danger:hover { box-shadow: 0 18px 34px -12px rgba(207,74,64,.58); background: linear-gradient(180deg, #d9483e, #b83e35); }
.btn.danger-outline { background: #fff; color: var(--coral-700); border-color: #efc5c0; box-shadow: 0 1px 2px rgba(36,20,82,.04); }
.btn.danger-outline:hover { background: var(--coral-100); }
.btn.amber { background: linear-gradient(180deg, #f0af51, var(--amber)); color: #2b1c02; box-shadow: 0 14px 28px -14px rgba(233,162,59,.55); }
.btn.amber:hover { box-shadow: 0 18px 34px -12px rgba(233,162,59,.62); background: linear-gradient(180deg, #eea940, #d99327); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; position: relative; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.icon-btn:hover { background: var(--teal-50); text-decoration: none; transform: translateY(-1px); border-color: var(--teal-100); }
form.inline { display: inline; }

/* ---------- formlar */
label.lbl { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 12.5px; color: var(--coral-700); margin-top: 5px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #ccd8d5; border-radius: var(--r); background: #fff;
  font: inherit; color: var(--ink); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder { color: #93a5a2; }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
select.input { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2362787a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(21,102,108,.16); }
.input.invalid { border-color: var(--coral); }
.input.sm { height: 34px; font-size: 13.5px; border-radius: 9px; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 14px; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal-800); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.filters .field { margin: 0; }
.filters label.lbl { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

/* ---------- kartlar və bloklar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-card); }
.card.flat { padding: 0; overflow: hidden; }
.card > h2:first-child, .card > .card-head:first-child { margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.tint { background: linear-gradient(160deg, var(--teal-50), #fff 65%); border-color: var(--teal-100); }
.panel-pad { padding: 20px; }
.cols { display: grid; gap: 18px; }
.cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols.main-side { grid-template-columns: minmax(0, 1fr) 340px; }
.cols.side-main { grid-template-columns: 340px minmax(0, 1fr); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .k-label { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.1; color: var(--ink); }
.kpi .k-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.accent { background: linear-gradient(155deg, var(--teal-700), var(--teal-900)); border-color: var(--teal-700); color: #fff; box-shadow: var(--shadow-card); }
.kpi.accent .k-label, .kpi.accent .k-sub { color: rgba(255,255,255,.72); }
.kpi.accent .k-value { color: #fff; }

/* ---------- rozetkalar */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--leaf-100); color: var(--leaf-700); }
.badge.bad { background: var(--coral-100); color: var(--coral-700); }
.badge.warn { background: var(--amber-100); color: var(--amber-700); }
.badge.info { background: var(--sky-100); color: var(--sky); }
.badge.teal { background: var(--teal-100); color: var(--teal-800); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- cədvəl */
.table-wrap { overflow-x: auto; }
.table-wrap.scroll-y { max-height: 520px; overflow-y: auto; }
.table-wrap.scroll-y table.t thead th { position: sticky; top: 0; z-index: 2; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12.5px; font-weight: 650; color: var(--muted); padding: 11px 14px; background: #f8fbfa; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .15s var(--ease); }
table.t tbody tr:hover td { background: #fafcfb; }
table.t td.actions { text-align: right; white-space: nowrap; }
table.t th.sel, table.t td.sel { width: 36px; padding-right: 0; }
table.t.compact td { padding: 8px 12px; }
.t-title { font-weight: 650; color: var(--ink); }
.t-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- paginasiya, tablar */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.pager .pages { display: flex; gap: 4px; }
.pager a, .pager span.cur { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-weight: 650; font-size: 13px; padding: 0 8px; }
.pager a { color: var(--ink-2); border: 1px solid var(--line); background: #fff; }
.pager a:hover { background: var(--teal-50); text-decoration: none; }
.pager span.cur { background: linear-gradient(180deg, var(--teal-700), var(--teal-900)); color: #fff; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--line-2); border-radius: 13px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 7px 14px; border-radius: 10px; font-weight: 650; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { background: #fff; color: var(--teal-900); box-shadow: 0 2px 8px -2px rgba(36,20,82,.16); }

/* ---------- avatar, progress */
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-900); font-weight: 700; font-size: 13.5px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.avatar.xl { width: 96px; height: 96px; font-size: 32px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-700), var(--teal-600)); }
.progress.ok > i { background: linear-gradient(90deg, var(--leaf-700), var(--leaf)); }
.progress.warn > i { background: linear-gradient(90deg, var(--amber-700), var(--amber)); }
.progress.thin { height: 5px; }

/* ---------- xəbərdarlıqlar */
.flashes { position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(560px, calc(100vw - 24px)); pointer-events: none; }
.flash { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-weight: 500; animation: pop .22s ease-out; }
.flash.ok { border-color: #b6e0cb; background: #f2fbf6; color: var(--leaf-700); }
.flash.error { border-color: #efc5c0; background: #fff5f4; color: var(--coral-700); }
.flash.dev { border-color: #f0d69c; background: #fff9ec; color: var(--amber-700); font-family: ui-monospace, monospace; font-size: 13px; }
.flash .x { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; font-size: 18px; line-height: 1; padding: 0 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--amber-100); color: #6d4708; border: 1px solid #f1d9a6; }
.notice.bad { background: var(--coral-100); color: var(--coral-700); border-color: #efc5c0; }
.notice.ok { background: var(--leaf-100); color: var(--leaf-700); border-color: #b6e0cb; }
.notice.info { background: var(--sky-100); color: #24578a; border-color: #bcd6ee; }
.notice ul { margin: 4px 0 0; padding-left: 18px; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .icon { width: 30px; height: 30px; margin-bottom: 8px; color: var(--teal-600); opacity: .7; }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list-plain > li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 500; }
details.fold { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
details.fold > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--muted); }
details.fold[open] > summary::after { content: "–"; }
details.fold > .body { padding: 4px 16px 16px; }

/* ---------- çoxdilli tərcümə bölməsi (i18n) */
.i18n-box { margin: 14px 0; }
.i18n-lang { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; padding: 10px 14px 2px; }
.i18n-lang legend { font-weight: 600; font-size: 13px; color: var(--muted); padding: 0 4px; }
/* Dil seçici: tək düymə (cari dil) + üzərinə basanda açılan siyahı (əvvəlki "3-ü yanaşı
   pill" görünüşü əvəzinə). `<details>/<summary>` əsaslıdır, JS-dən asılı deyil. */
.lang-switch { position: relative; display: inline-block; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 7px 12px; border-radius: 999px; user-select: none; transition: background .15s, color .15s; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { content: ""; }
.lang-switch summary:hover { background: var(--line); }
.lang-switch[open] summary { background: var(--teal-600); color: #fff; }
.lang-switch-caret { transition: transform .15s var(--ease); flex-shrink: 0; }
.lang-switch[open] .lang-switch-caret { transform: rotate(180deg); }
/* Menyu: ayrı-ayrı, aralarında boşluq olan "pill" kartlar (yanaşı yığılmış tək qutu yox) —
   hər biri yalnız kodu göstərir (AZ/RU/EN), ad mətni yoxdur. */
.lang-switch-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 64px; display: flex; flex-direction: column; gap: 8px; background: none; border: none; box-shadow: none; padding: 0; z-index: 50; }
.lang-switch-item { width: 100%; border: 1px solid var(--line); background: #fff; text-align: center; padding: 10px 14px; border-radius: 14px; cursor: pointer; font-family: var(--font); font-size: 12.5px; font-weight: 750; letter-spacing: .04em; color: var(--ink-2); box-shadow: 0 14px 30px -16px rgba(25,15,51,.4); transition: background .15s, color .15s, transform .1s; }
.lang-switch-item:hover:not(.on) { background: var(--canvas); }
.lang-switch-item:active { transform: scale(.96); }
.lang-switch-item.on { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
/* Admin bölməsi: sol (tünd) menyudan çıxarılıb, sağdakı AĞ məzmun sahəsinin yuxarı
   küncünə qoyulub. `position:fixed` YOX — səhifənin öz başlıq cərgəsindəki idarələrlə
   (məs. "Bu ay" filtri) üst-üstə düşməsin deyə, ayrıca sticky zolaqda öz yeri var. */
.a-top-lang { display: flex; justify-content: flex-end; padding: 14px 34px 0; background: var(--canvas); position: sticky; top: 0; z-index: 35; }
.a-topbar-lang { display: none; }
@media (max-width: 900px) {
  .a-top-lang { display: none; }
  .a-topbar-lang { display: block; margin-left: auto; }
}
@media (max-width: 720px) { .a-top-lang { padding: 12px 14px 0; } }
/* Admin → Landing səhifəsi: məzmunu AZ/RU/EN üzrə ayrıca redaktə etmək üçün dil tabları. */
.lang-tabs { display: flex; gap: 8px; margin: 14px 0 4px; }
.lang-tab { display: inline-flex; align-items: center; padding: 7px 18px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 12.5px; font-weight: 750; letter-spacing: .03em; text-decoration: none; transition: background .15s, color .15s; }
.lang-tab:hover { background: var(--line); }
.lang-tab.on { background: var(--teal-600); color: #fff; }

/* ---------- diaqramlar */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .lbl-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar-track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-700), var(--teal-600)); border-radius: 99px; }
.bar-track.ok > i { background: linear-gradient(90deg, var(--leaf-700), var(--leaf)); } .bar-track.warn > i { background: linear-gradient(90deg, var(--amber-700), var(--amber)); } .bar-track.bad > i { background: linear-gradient(90deg, var(--coral-700), var(--coral)); }
.stackbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line-2); gap: 2px; }
.stackbar > i { display: block; height: 100%; }
.seg-ok { background: var(--leaf); } .seg-progress { background: var(--amber); } .seg-none { background: #cfdad7; } .seg-bad { background: var(--coral); } .seg-teal { background: var(--teal-700); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--c, var(--teal-700)); }
.cols-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.cols-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; min-width: 0; }
.cols-chart .col i { display: block; width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--teal-600), var(--teal-800)); min-height: 3px; }
.cols-chart .col small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.cols-chart .col b { font-size: 11.5px; font-weight: 650; }
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-c { position: absolute; text-align: center; line-height: 1.15; }
.ring .ring-c b { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; display: block; }
.ring .ring-c span { font-size: 11.5px; color: var(--muted); }
.spark { width: 100%; height: 120px; }
.spark .axis { stroke: var(--line); stroke-width: 1; }
.spark .ln { fill: none; stroke: var(--teal-700); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.spark .ln2 { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 4 3; stroke-linecap: round; }
.spark .area { fill: var(--teal-700); opacity: .08; }
.spark text { font-size: 10px; fill: var(--muted); }

/* ---------- auth */
.auth-topbar { position: fixed; top: 16px; right: 20px; z-index: 40; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.auth-art { position: relative; background: linear-gradient(165deg, #eef7f6, #f8faf9); color: var(--ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-right: 1px solid var(--line); }
.auth-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 360px at 85% -8%, rgba(28,123,130,.10), transparent 60%), radial-gradient(480px 320px at -10% 100%, rgba(233,162,59,.10), transparent 55%); pointer-events: none; }
.auth-art .brand { color: var(--ink); position: relative; }
.auth-art h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; max-width: 14ch; margin-top: 12px; position: relative; color: var(--teal-900); }
.auth-art p { color: var(--ink-2); max-width: 42ch; font-size: 15.5px; position: relative; }
.auth-art .ekg { position: absolute; left: -2%; right: -2%; bottom: 16%; opacity: .6; pointer-events: none; }
.auth-facts { display: grid; gap: 14px; position: relative; }
.auth-facts div { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-weight: 500; }
.auth-facts .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--teal-700); }
.auth-form { position: relative; display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: #fff; }
.auth-back { position: absolute; top: 22px; left: 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--muted); padding: 7px 10px 7px 6px; border-radius: 10px; transition: background .18s var(--ease), color .18s var(--ease); }
.auth-back .icon { width: 17px; height: 17px; }
.auth-back:hover { background: var(--canvas); color: var(--ink); text-decoration: none; }
@media (max-width: 720px) { .auth-back { top: 14px; left: 14px; } }
.auth-box { width: min(420px, 100%); }
.auth-box h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 6px; }
.otp-input { text-align: center; font-size: 30px; letter-spacing: .5em; font-weight: 650; height: 60px; padding-left: .5em; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(155deg, #f0af51, var(--amber)); color: var(--teal-950); display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(233,162,59,.55); }
.brand .mark svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- əczaçı portalı */
.p-top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.p-top .in { max-width: 1140px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 24px; }
.p-nav { display: flex; gap: 2px; }
.p-nav a { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease); }
.p-nav a:hover { background: var(--teal-50); text-decoration: none; }
.p-nav a.on { background: linear-gradient(180deg, var(--teal-700), var(--teal-900)); color: #fff; }
.p-main { max-width: 1140px; margin: 0 auto; padding: 28px 20px 96px; }
.p-tabbar { display: none; }
.dot-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.hello h1 { font-size: 28px; letter-spacing: -0.02em; }
.item-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
a.item-card:hover { border-color: var(--teal-600); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-card); }
.item-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); color: var(--teal-800); display: grid; place-items: center; flex: none; }
.item-card .ic.amber { background: var(--amber-100); color: var(--amber-700); }
.item-card .ic.leaf { background: var(--leaf-100); color: var(--leaf-700); }
.item-card .ic.coral { background: var(--coral-100); color: var(--coral-700); }
.course-card { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); box-shadow: var(--shadow-card); }
.course-card:hover { border-color: var(--teal-600); text-decoration: none; transform: translateY(-3px); }
.course-card h3 { margin: 8px 0 4px; font-size: 16.5px; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: inherit; }
.lesson-row:last-child { border-bottom: 0; }
a.lesson-row:hover { background: #fafcfb; text-decoration: none; }
.lesson-row .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--line-2); color: var(--ink-2); flex: none; }
.lesson-row .n.done { background: linear-gradient(155deg, var(--leaf-700), var(--leaf)); color: #fff; }
.lesson-row .n.prog { background: var(--amber-100); color: var(--amber-700); }
.material { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-card); }
.material + .material { margin-top: 16px; }
.material .m-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.material .m-body { padding: 18px; }
.material video { width: 100%; max-height: 520px; background: #000; border-radius: var(--r); display: block; }
.material iframe.pdf { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--r); }
.material img.pic { max-width: 100%; border-radius: var(--r); display: block; }
.prose { max-width: 70ch; line-height: 1.7; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r); }
.rank-row.me { background: var(--teal-50); outline: 1.5px solid var(--teal-600); }
.rank-row .pos { width: 30px; font-weight: 700; text-align: center; color: var(--muted); font-size: 15px; }
.rank-row .pos.top { color: var(--amber-700); }
.rank-row .score { font-weight: 700; font-size: 16px; }
.stat-mini { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.stat-mini b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.stat-mini span { font-size: 12.5px; color: var(--muted); }

/* ---------- imtahan ekranı */
.exam-body { background: var(--canvas); min-height: 100vh; color: var(--ink); }
.exam-bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); color: var(--ink); border-bottom: 1px solid var(--line); }
.exam-bar .in { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.exam-bar .title { font-weight: 650; opacity: .92; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { margin-left: auto; display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; letter-spacing: .02em; background: var(--teal-50); color: var(--teal-900); padding: 6px 16px; border-radius: 12px; }
.timer.low { background: linear-gradient(180deg, #f0af51, var(--amber)); color: #2b1c02; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .78; } }
.save-state { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.save-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); display: inline-block; }
.save-state.pending i { background: var(--amber); } .save-state.error i { background: var(--coral); }
.exam-wrap { max-width: 1100px; margin: 0 auto; padding: 8px 20px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 36px; min-height: 420px; box-shadow: var(--shadow-pop); }
.q-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--muted); font-weight: 650; }
.q-text { font-size: 22px; line-height: 1.4; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 26px; }
.choice { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 15px 18px; margin-bottom: 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease); }
.choice:hover { border-color: var(--teal-600); transform: translateY(-1px); }
.choice .mk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b7c7c3; flex: none; display: grid; place-items: center; margin-top: 1px; }
.choice.multi .mk { border-radius: 7px; }
.choice.on { border-color: var(--teal-800); background: var(--teal-50); }
.choice.on .mk { background: var(--teal-800); border-color: var(--teal-800); }
.choice.on .mk::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.palette { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; color: var(--ink); position: sticky; top: 76px; box-shadow: var(--shadow-card); }
.palette h3 { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; font-weight: 650; }
.pal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.pal-grid button { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-weight: 650; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease); }
.pal-grid button.answered { background: linear-gradient(155deg, var(--leaf-700), var(--leaf)); border-color: var(--leaf); color: #fff; }
.pal-grid button.current { outline: 2.5px solid var(--amber); outline-offset: 2px; }
.palette .btn { margin-top: 16px; }
.pal-legend { font-size: 12px; color: var(--muted); margin-top: 12px; display: grid; gap: 4px; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(8,46,49,.5); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px; }
.modal .box { background: #fff; border-radius: 20px; padding: 28px; width: min(440px, 100%); box-shadow: var(--shadow-pop); }
.result-hero { text-align: center; padding: 36px 24px; border-radius: var(--r-lg); }
.result-hero.pass { background: var(--leaf-100); } .result-hero.fail { background: var(--coral-100); }
.big-pct { font-size: 64px; font-weight: 780; letter-spacing: -0.04em; line-height: 1; }
.rv { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: #fff; }
.rv + .rv { margin-top: 12px; }
.rv.ok { border-left: 4px solid var(--leaf); } .rv.bad { border-left: 4px solid var(--coral); } .rv.blank { border-left: 4px solid #b7c7c3; }
.rv .opt { display: flex; gap: 8px; padding: 6px 10px; border-radius: 8px; margin-top: 4px; font-size: 14px; }
.rv .opt.correct { background: var(--leaf-100); color: var(--leaf-700); font-weight: 650; }
.rv .opt.wrong { background: var(--coral-100); color: var(--coral-700); font-weight: 650; }
.rv .opt.picked-ok { background: var(--leaf-100); }
.rv .why { margin-top: 10px; padding: 10px 12px; background: var(--sky-100); border-radius: 8px; font-size: 13.5px; color: #24578a; }

/* ---------- admin (sol menyu tündlüyünü saxlayır, sağ hissə ağdır) */
.a-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.a-side { background: linear-gradient(190deg, var(--teal-950), #0c0820); color: #c9c2ea; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.06); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.a-side .brand { color: #fff; padding: 2px 8px 10px; }
.a-side .grp { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #8077a3; padding: 6px 12px 3px; }
.a-side a.nav { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-radius: 9px; color: #c9c2ea; font-weight: 500; margin-bottom: 1px; font-size: 13.2px; transition: background .18s var(--ease), color .18s var(--ease); }
.a-side a.nav:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.a-side a.nav.on { background: linear-gradient(180deg, var(--teal-700), var(--teal-800)); color: #fff; font-weight: 650; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.a-side .me { margin-top: auto; padding: 9px 8px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 10px; align-items: center; flex: none; }
.a-side .me .avatar { background: linear-gradient(155deg, #f0af51, var(--amber)); color: var(--teal-950); }
.a-side .me b { display: block; color: #fff; font-size: 13.5px; line-height: 1.2; }
.a-side .me span { font-size: 12px; color: #7fa3a3; }
.a-side .me button { margin-left: auto; background: none; border: 0; color: #9fbcbb; cursor: pointer; padding: 6px; border-radius: 8px; }
.a-side .me button:hover { background: rgba(255,255,255,.1); color: #fff; }
/* Super admindən başqa bütün rollar (Satış müdiri, HR, Təlim meneceri, Content manager) üçün:
   admin panelin struktur/modulları eyni qalır, yalnız əczaçı (portal) panelinin işıqlı, açıq-rəngli
   görünüşünə uyğunlaşdırılır — iki sinifli seçicilər (.a-side.a-side-light) sıralamadan asılı
   olmayaraq əsas tünd stilin üzərinə düşür. */
.a-side.a-side-light { background: rgba(255,255,255,.9); color: var(--ink-2); border-right: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgba(36,20,82,.4); }
.a-side.a-side-light .brand { color: var(--ink); }
.a-side.a-side-light .grp { color: var(--muted); }
.a-side.a-side-light a.nav { color: var(--ink-2); }
.a-side.a-side-light a.nav:hover { background: var(--teal-50); color: var(--teal-900); }
.a-side.a-side-light a.nav.on { background: linear-gradient(180deg, var(--teal-700), var(--teal-900)); color: #fff; box-shadow: 0 10px 22px -12px rgba(79,60,201,.7); }
.a-side.a-side-light .me { border-top: 1px solid var(--line); }
.a-side.a-side-light .me b { color: var(--ink); }
.a-side.a-side-light .me span { color: var(--muted); }
.a-side.a-side-light .me button { color: var(--muted); }
.a-side.a-side-light .me button:hover { background: var(--teal-50); color: var(--teal-900); }
.a-main { padding: 28px 34px 80px; min-width: 0; background: var(--canvas); }
.a-topbar { display: none; }
.filter-bar { padding: 16px 18px; border-bottom: 1px solid var(--line-2); background: #fbfdfc; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 650; font-size: 13px; color: var(--ink-2); transition: background .18s var(--ease), border-color .18s var(--ease); }
.chip:hover { text-decoration: none; background: var(--teal-50); }
.chip.on { background: linear-gradient(180deg, var(--teal-700), var(--teal-900)); color: #fff; border-color: var(--teal-800); }
.picker { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.picker .p-list { max-height: 210px; overflow: auto; padding: 6px 10px; }
.picker .p-list label { display: flex; gap: 9px; padding: 5px 0; cursor: pointer; align-items: center; }
.picker .p-list label input { accent-color: var(--teal-800); }
.picker .p-search { border: 0; border-bottom: 1px solid var(--line-2); border-radius: var(--r) var(--r) 0 0; }
.rule-row, .choice-row, .sq-row { display: grid; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fbfdfc; margin-bottom: 10px; }
.rule-row { grid-template-columns: 130px 90px 1fr 1fr 1fr 1fr auto; }
.choice-row { grid-template-columns: 26px 1fr auto; padding: 8px 10px; margin-bottom: 8px; background: #fff; }
.sq-row { grid-template-columns: 1fr 170px 130px auto; align-items: start; }
.sq-row textarea { grid-column: 1 / -1; }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-group td { background: var(--teal-50); font-weight: 700; color: var(--teal-900); text-align: left !important; }
.json { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-2); word-break: break-word; }
pre.json { white-space: pre-wrap; margin: 0; }
.hbar-list .bar-row { grid-template-columns: minmax(120px, 34%) 1fr 56px; }
.range-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.range-form .input { width: auto; }
button.badge { border: 0; cursor: pointer; font-family: inherit; }
.chip:has(input:checked) { background: linear-gradient(180deg, var(--teal-700), var(--teal-900)); color: #fff; border-color: var(--teal-800); }
.item-card input[type="radio"] { accent-color: var(--teal-800); width: 18px; height: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1100px) {
  .cols.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols.main-side, .cols.side-main { grid-template-columns: minmax(0, 1fr); }
  .rule-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .a-shell { grid-template-columns: 1fr; }
  .a-side { position: fixed; z-index: 60; left: 0; top: 0; width: 264px; transform: translateX(-100%); transition: transform .2s; }
  .a-shell.open .a-side { transform: none; box-shadow: 0 0 0 100vmax rgba(8,46,49,.5); }
  .a-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .a-main { padding: 20px 16px 60px; }
  .cols.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-wrap { grid-template-columns: 1fr; }
  .palette { position: static; order: -1; }
  .pal-grid { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .p-nav { display: none; }
  .p-top .in { padding: 0 14px; height: 56px; }
  .p-main { padding: 18px 14px 96px; }
  .p-tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .p-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
  .p-tabbar a:hover { text-decoration: none; }
  .p-tabbar a.on { color: var(--teal-800); }
  .p-tabbar a.on .icon { stroke-width: 2.3; }
  .cols.c2, .cols.c3, .cols.c4, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hello h1 { font-size: 23px; }
  .q-card { padding: 22px 18px; border-radius: 18px; min-height: 0; }
  .q-text { font-size: 18.5px; }
  .choice { font-size: 15.5px; padding: 13px 14px; }
  .timer { font-size: 20px; padding: 4px 12px; }
  .exam-bar .title { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .rule-row, .sq-row { grid-template-columns: 1fr; }
  .big-pct { font-size: 52px; }
  .material iframe.pdf { height: 420px; }
  .page-head h1 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- material görüntüləyiciləri (YouTube, sənəd) */
.yt-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.yt-embed iframe, .yt-embed .yt-target { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #e6edeb; }
.doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; flex-wrap: wrap; }
.doc-bar .muted { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12.5px; }
.doc-bar .icon { width: 14px; height: 14px; }
.doc-scroll { max-height: min(78vh, 900px); overflow-y: auto; padding: 14px; display: grid; gap: 12px; justify-items: center; }
.doc-scroll img { width: 100%; max-width: 980px; height: auto; min-height: 240px; background: #fff; border-radius: 6px; box-shadow: 0 6px 20px -10px rgba(36,20,82,.2); display: block; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.material img.pic { user-select: none; -webkit-user-drag: none; }
@media print { .doc, .yt-embed, .material video, .material img.pic { display: none !important; } }

/* ---------- profil kartı */
.profile-avatar { position: relative; width: 120px; margin: 4px auto 0; }
.profile-avatar .avatar.xl { width: 120px; height: 120px; font-size: 40px; box-shadow: 0 14px 34px -14px rgba(36,20,82,.35); border: 4px solid #fff; }
.avatar-edit { position: absolute; right: 2px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: linear-gradient(180deg, var(--teal-700), var(--teal-900)); color: #fff; border: 3px solid #fff; box-shadow: 0 8px 18px -8px rgba(36,20,82,.5); transition: transform .2s var(--ease); }
.avatar-edit:hover { transform: scale(1.1); }
.avatar-edit .icon { width: 16px; height: 16px; }
.info-panel { margin-top: 18px; display: grid; gap: 10px; text-align: left; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, var(--teal-50), #fff); border: 1px solid var(--teal-100); }
.info-row { display: flex; align-items: center; gap: 12px; }
.info-row .ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--teal-800); box-shadow: 0 6px 14px -8px rgba(36,20,82,.3); }
.info-row b { font-size: 14px; }

/* ---------- zəngin mətn redaktoru */
.rich-wrap { border: 1px solid #ccd8d5; border-radius: var(--r); background: #fff; overflow: hidden; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.rich-wrap:focus-within { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(21,102,108,.16); }
.rich-bar { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 8px; background: var(--teal-50); border-bottom: 1px solid var(--line); }
.rich-bar button { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.rich-bar button:hover { background: #fff; border-color: var(--line); }
.rich-editor { min-height: 110px; max-height: 240px; overflow-y: auto; padding: 10px 12px; outline: none; line-height: 1.6; }
.rich-editor p { margin: 0 0 .6em; }
.rich-view p { margin: 0 0 .6em; } .rich-view ul, .rich-view ol { margin: 0 0 .6em; padding-left: 20px; }

/* ---------- namizəd cədvəli: başlıqlar tam görünür, nəticə sağda səliqəli */
.cand-table { font-size: 12.5px; }
.cand-table th { white-space: nowrap; padding: 10px 8px; font-size: 12px; }
.cand-table td { padding: 10px 8px; white-space: nowrap; vertical-align: middle; }
.cand-table td.c-mail { white-space: normal; overflow-wrap: anywhere; min-width: 110px; }
.cand-table td.c-exam { white-space: normal; max-width: 140px; }
.cand-table td.c-res { display: table-cell; }
.cand-table td.c-res .badge { margin-left: 8px; }
.cand-table td.c-res b { font-size: 14px; }
@media (max-width: 1300px) {
  .cand-table { font-size: 11.5px; }
  .cand-table th, .cand-table td { padding: 9px 5px; font-size: inherit; }
  .cand-table td.c-res .badge { margin-left: 4px; padding: 0 6px; }
  .cand-table td.c-exam { max-width: 110px; }
}

/* ---------- fayl seçimi ("Fayl seç") */
.fp-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; padding: 0 !important; border: 0 !important; }
.file-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 6px; border: 1px solid #ccd8d5; border-radius: var(--r); background: #fff; cursor: pointer; color: var(--ink-2); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.file-pick:hover { border-color: var(--teal-600); }
.file-pick:focus-visible, .file-pick:focus-within { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(21,102,108,.16); }
.file-pick .fp-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 14px; border-radius: 9px; background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); font-weight: 650; font-size: 13px; line-height: 1; white-space: nowrap; flex: none; }
.file-pick:hover .fp-btn { background: var(--teal-100); }
.file-pick .fp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1; }
.file-pick.sm { min-height: 34px; border-radius: 9px; }
.file-pick.sm .fp-btn { height: 26px; padding: 0 12px; font-size: 12.5px; }

/* ---------- reytinq balı göstəricisi */
.score-big { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(155deg, var(--teal-700), var(--teal-900)); color: #fff; box-shadow: 0 16px 30px -18px rgba(79,60,201,.7); }
.score-big b { font-size: 30px; line-height: 1.05; letter-spacing: -.02em; font-weight: 780; }
.score-big span { font-size: 11.5px; opacity: .8; margin-top: 3px; text-align: center; }
.score-big.lg { min-width: 150px; padding: 22px 26px; }
.score-big.lg b { font-size: 46px; }

/* ---------- bildirişlər */
.note-row { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 0; border-bottom: 1px solid var(--line-2); position: relative; transition: background .15s var(--ease); }
.note-row:last-child { border-bottom: 0; }
.note-row:hover { background: #fafcfb; }
.note-row.unread { background: linear-gradient(90deg, var(--teal-50), #fff 60%); }
.note-row.unread .t-title { color: var(--ink); font-weight: 750; }
.note-row:not(.unread) .t-title { font-weight: 550; color: var(--ink-2); }
.note-row:not(.unread) .n { opacity: .6; }
.note-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 12px 6px 12px 18px; color: inherit; text-decoration: none; }
.note-main:hover { text-decoration: none; }
.note-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: transparent; }
.note-row.unread .note-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(233,162,59,.2); }
.note-actions { display: flex; gap: 6px; flex: none; }
.note-actions form { margin: 0; }

/* ---------- geniş düzən və səliqəli üst menyu (əczaçı portalı) */
.p-top { box-shadow: 0 10px 30px -24px rgba(36,20,82,.4); }
.p-top .in { max-width: none; padding: 0 32px; height: 78px; gap: 22px; }
.p-top .brand-logo { padding: 0; }
.p-top .brand-logo .mark { width: 46px; height: 46px; border-radius: 14px; }
.p-top .brand-logo .mark svg { width: 25px; height: 25px; }
.p-top .brand-logo .brand-img { height: 46px !important; width: auto !important; max-width: 160px; border-radius: 12px !important; object-fit: contain !important; }
.p-nav { gap: 6px; }
.p-nav a { padding: 11px 18px; border-radius: 13px; border: 1px solid transparent; font-size: 14.5px; transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.p-nav a:hover { background: #e8f3f2; border-color: var(--teal-100); box-shadow: 0 6px 16px -10px rgba(79,60,201,.45); text-decoration: none; transform: translateY(-1px); }
.p-nav a.on, .p-nav a.on:hover { background: linear-gradient(180deg, var(--teal-700), var(--teal-900)); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -12px rgba(79,60,201,.7); }
.p-main { max-width: 1760px; padding: 32px 32px 96px; }
.a-main { padding: 26px 30px 80px; }
@media (min-width: 901px) { .a-shell { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 1100px) { .p-top .in { padding: 0 18px; gap: 12px; } .p-nav a { padding: 10px 12px; } }
@media (max-width: 720px) { .p-top .in { padding: 0 14px; height: 62px; } .p-top .brand-logo .mark { width: 40px; height: 40px; } .p-main { padding: 18px 14px 96px; } .a-main { padding: 20px 14px 60px; } }

/* ---------- mesajlaşma (WhatsApp üslubu) */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--amber); color: #2b1c02; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.chat-app { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 150px); min-height: 520px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.chat-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; background: #fff; }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; }
.chat-side-head h2 { font-size: 19px; }
.chat-search { padding: 0 16px 12px; }
.chat-list { flex: 1; overflow-y: auto; min-height: 0; }
.chat-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: background .15s var(--ease); }
.chat-item:hover { background: #f5faf9; text-decoration: none; }
.chat-item.active { background: var(--teal-50); box-shadow: inset 3px 0 0 var(--teal-700); }
.chat-av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(155deg, var(--teal-600), var(--teal-900)); color: #fff; font-weight: 700; font-size: 15px; }
.chat-av.lg { width: 46px; height: 46px; }
.chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-item-top, .chat-item-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.chat-item-top b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-time { font-size: 11.5px; color: var(--muted); flex: none; }
.chat-last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sub { font-size: 11.5px; color: var(--teal-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-unread { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--leaf); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; flex: none; }
.chat-empty { padding: 34px 22px; color: var(--muted); text-align: center; font-size: 13.5px; line-height: 1.6; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #eaf3f1; background-image: radial-gradient(rgba(21,102,108,.07) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-head a { color: var(--ink); }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.msg { display: flex; }
.msg.out { justify-content: flex-end; }
.bubble { position: relative; max-width: min(620px, 78%); padding: 8px 12px 6px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(36,20,82,.12); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 14.5px; }
.msg.in .bubble { border-top-left-radius: 4px; }
.msg.out .bubble { background: #d9f2e7; border-top-right-radius: 4px; }
.msg-time { display: block; text-align: right; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.chat-composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; background: #f7faf9; border-top: 1px solid var(--line); }
.chat-composer textarea { flex: 1; resize: none; border: 1px solid #ccd8d5; border-radius: 22px; padding: 11px 16px; font: inherit; line-height: 1.4; max-height: 140px; background: #fff; }
.chat-composer textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(21,102,108,.16); }
.chat-send { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--teal-700), var(--teal-900)); box-shadow: 0 10px 20px -10px rgba(79,60,201,.7); transition: transform .2s var(--ease); flex: none; }
.chat-send:hover { transform: scale(1.06); }
.chat-send:disabled { opacity: .5; }
.chat-placeholder { margin: auto; text-align: center; padding: 30px; color: var(--muted); max-width: 380px; }
.chat-placeholder .icon { width: 54px; height: 54px; color: var(--teal-600); opacity: .5; }
.chat-placeholder h3 { color: var(--ink); margin: 10px 0 6px; }
.portal-chat .chat-app { height: calc(100vh - 190px); }
@media (max-width: 900px) {
  .chat-app { grid-template-columns: 1fr; height: calc(100vh - 130px); }
  .chat-app.has-active .chat-side { display: none; }
  .chat-app:not(.has-active) .chat-main { display: none; }
  .chat-back { display: inline-grid; }
}

/* ---------- ilk giriş bələdçisi (onboarding tour) */
.onb-backdrop { position: fixed; inset: 0; z-index: 9989; background: rgba(25,15,51,.6); backdrop-filter: blur(1.5px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.onb-backdrop.in { opacity: 1; pointer-events: auto; }
.onb-spot { display: none; position: fixed; z-index: 9990; pointer-events: none; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(25,15,51,.6), 0 0 0 3px #fff, 0 0 0 6px rgba(47,167,159,.95), 0 6px 22px -2px rgba(47,167,159,.55); transition: top .38s var(--ease), left .38s var(--ease), width .38s var(--ease), height .38s var(--ease); }
.onb-welcome, .onb-card { position: fixed; z-index: 9992; background: #fff; border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(25,15,51,.45), 0 1px 0 rgba(255,255,255,.6) inset; width: min(360px, calc(100vw - 32px)); opacity: 0; pointer-events: none; transform: translateY(10px) scale(.98); transition: opacity .28s var(--ease), transform .28s var(--ease), top .38s var(--ease), left .38s var(--ease); }
.onb-welcome.in, .onb-card.in { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.onb-welcome { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); text-align: center; padding: 36px 32px 28px; }
.onb-welcome.in { transform: translate(-50%, -50%); }
.onb-welcome .onb-emoji { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.onb-welcome h2 { font-size: 21px; margin: 4px 0 10px; }
.onb-welcome p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 26px; }
.onb-card { padding: 20px 22px 18px; }
.onb-card .onb-arrow { position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.onb-card.p-top .onb-arrow { bottom: -6px; left: 50%; margin-left: -7px; box-shadow: 3px 3px 6px -3px rgba(25,15,51,.15); }
.onb-card.p-bottom .onb-arrow { top: -6px; left: 50%; margin-left: -7px; box-shadow: -3px -3px 6px -3px rgba(25,15,51,.15); }
.onb-card.p-left .onb-arrow { right: -6px; top: 50%; margin-top: -7px; box-shadow: 3px -3px 6px -3px rgba(25,15,51,.15); }
.onb-card.p-right .onb-arrow { left: -6px; top: 50%; margin-top: -7px; box-shadow: -3px 3px 6px -3px rgba(25,15,51,.15); }
.onb-step-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--teal-700); }
.onb-card h3 { font-size: 16.5px; margin: 10px 0 6px; }
.onb-card p { font-size: 13.8px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.onb-dots { display: flex; gap: 5px; margin-top: 16px; }
.onb-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s var(--ease), width .2s var(--ease); }
.onb-dots i.on { background: var(--teal-700); width: 16px; border-radius: 4px; }
.onb-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 10px; }
.onb-skip { background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 4px; border-radius: 8px; }
.onb-skip:hover { color: var(--ink); background: var(--canvas); }
.onb-btns { display: flex; gap: 8px; margin-left: auto; }
.onb-btn { border: 0; border-radius: 11px; padding: 9px 16px; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease); }
.onb-btn-back { background: var(--canvas); color: var(--ink-2); }
.onb-btn-back:hover { background: var(--line-2); }
.onb-btn-next { background: linear-gradient(180deg, var(--teal-600), var(--teal-800)); color: #fff; box-shadow: 0 10px 22px -10px rgba(79,60,201,.6); }
.onb-btn-next:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(79,60,201,.7); }
.onb-btn:focus-visible { outline: 2.5px solid var(--teal-700); outline-offset: 2px; }
@media (max-width: 640px) {
  .onb-card { position: fixed !important; left: 12px !important; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)) !important; top: auto !important; width: auto; }
  .onb-card .onb-arrow { display: none; }
}

/* ---------- qorunan material görünüşü (sağ-klik yoxdur, seçim yoxdur, su nişanı) */
.protected-view { position: relative; user-select: none; -webkit-user-select: none; }
.protected-view img, .protected-view video { -webkit-user-drag: none; }

/* ---------- təbrik animasiyası (imtahan/kurs uğurla bitdikdə) */
.celebrate-overlay {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(79,60,201,.16), rgba(23,19,37,.56) 72%);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease);
  overflow: hidden;
}
.celebrate-overlay.show { opacity: 1; }
.celebrate-overlay.closing { opacity: 0; }
.celebrate-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebrate-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.celebrate-star {
  position: absolute; width: 14px; height: 14px; color: var(--amber);
  opacity: 0; animation: celebrate-twinkle 1.6s ease-in-out infinite;
}
.celebrate-star svg { width: 100%; height: 100%; display: block; }
.celebrate-balloons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.celebrate-balloon {
  position: absolute; bottom: -140px; width: 56px; height: 72px;
  animation: celebrate-rise 3.4s var(--ease) forwards;
}
.celebrate-balloon-body {
  width: 56px; height: 68px; border-radius: 50% 50% 48% 48%; position: relative;
  box-shadow: inset -8px -10px 18px rgba(0,0,0,.12), inset 6px 8px 14px rgba(255,255,255,.35), 0 10px 22px -10px rgba(36,20,82,.35);
}
.celebrate-balloon-body::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 0; height: 0; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid currentColor; opacity: .9;
}
.celebrate-balloon-string {
  position: absolute; left: 50%; top: 100%; width: 1.5px; height: 70px; background: rgba(74,67,99,.4); transform: translateX(-50%);
}
.celebrate-balloon.pop .celebrate-balloon-body { animation: celebrate-pop .32s ease-out forwards; }
.celebrate-balloon.pop .celebrate-balloon-string { opacity: 0; transition: opacity .1s; }
.celebrate-card {
  position: relative; z-index: 2; background: #fff; border-radius: var(--r-lg); padding: 38px 42px 32px;
  width: min(380px, calc(100vw - 32px)); text-align: center; box-shadow: var(--shadow-pop);
  transform: scale(.82) translateY(14px); opacity: 0; animation: celebrate-card-in .5s .12s var(--ease) forwards;
}
.celebrate-card.no-anim { transform: none; opacity: 1; animation: none; }
.celebrate-trophy {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--amber), var(--amber-700)); box-shadow: 0 16px 30px -12px rgba(168,106,15,.55);
  color: #fff;
}
.celebrate-trophy .icon { width: 38px; height: 38px; stroke-width: 2; }
.celebrate-headline { font-size: 21px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.celebrate-subtitle { font-size: 14.5px; color: var(--ink-2); margin: 0 0 22px; line-height: 1.5; }
.celebrate-close {
  border: 0; border-radius: 12px; padding: 11px 26px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: linear-gradient(180deg, var(--teal-600), var(--teal-800)); color: #fff;
  box-shadow: 0 12px 24px -10px rgba(79,60,201,.6); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.celebrate-close:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -10px rgba(79,60,201,.7); }
.celebrate-close:focus-visible { outline: 2.5px solid var(--teal-700); outline-offset: 2px; }
@keyframes celebrate-rise {
  0% { transform: translateY(0) translateX(0) rotate(-4deg); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translateY(-58vh) translateX(var(--sway, 18px)) rotate(4deg); }
  100% { transform: translateY(-112vh) translateX(0) rotate(-3deg); opacity: 1; }
}
@keyframes celebrate-pop {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes celebrate-card-in {
  to { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes celebrate-twinkle {
  0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(25deg); }
}
@media (max-width: 480px) {
  .celebrate-card { padding: 30px 26px 26px; }
}
