:root {
  --bg: #f4f5fa;
  --panel: #ffffff;
  --ink: #2b2b2b;
  --muted: #8a8f9c;
  --muted-2: #5f6472;
  --line: #eceef3;
  --brand: #7a2f55;         /* kumbull e thellë — ngjyra kryesore */
  --brand-2: #652446;       /* hover */
  --brand-ink: #ffffff;
  --brand-soft: #f6ebf1;
  --brand-pink: #ed9cb3;    /* rozë e logos — theks */
  --brand-light: #ecd5e1;
  --side: #3b1d31;          /* sidebar: aubergine */
  --side-2: #2c1524;
  --logo-gray: #383838;
  --ok: #1f9d55;
  --ok-soft: #e6f6ec;
  --warn: #c27c0e;
  --warn-soft: #fdf2e0;
  --bad: #d64545;
  --bad-soft: #fdecec;
  --info: #4c62c9;
  --info-soft: #eaedfb;
  --amber: #f2a93b;
  --amber-soft: #fef3e2;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(40, 30, 60, .05);
  --shadow-lg: 0 12px 32px rgba(40, 30, 60, .12);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "IBM Plex Sans", system-ui, sans-serif;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-family: var(--font-display); letter-spacing: -.005em; }
h1 { font-size: 22px; font-weight: 600; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15.5px; font-weight: 600; }
/* Shifrat: font dekorativ, me gjerësi të njëjtë për rreshtim të mirë */
.stat .value, .donut-center b, .amount, td.num, .kv dd.strong { font-variant-numeric: tabular-nums; }
.stat .value, .donut-center b { font-family: var(--font-display); letter-spacing: -.01em; }
.i { flex: none; display: inline-block; vertical-align: middle; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.brand { display: grid; gap: 6px; padding: 2px 10px 22px; }
.brand:hover { text-decoration: none; }
.brand img { width: 176px; height: auto; display: block; margin-left: -6px; }
.brand small { color: rgba(255, 255, 255, .6); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: grid; gap: 4px; position: relative; }
.nav a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: rgba(255, 255, 255, .82); font-weight: 500; letter-spacing: .005em;
  transition: background .2s, color .22s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
/* Ikona: vija ↔ e mbushur (ndërrim me zbehje) */
.ni { position: relative; flex: none; width: 19px; height: 19px; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.ni svg { position: absolute; inset: 0; transition: opacity .22s ease; }
.ni .fill { opacity: 0; }
.ni .fill .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ni .fill .cut { fill: none; stroke: var(--bg); stroke-width: 2; stroke-linecap: round; }
.ni .fill .cutf { fill: var(--bg); }
.nav a:hover .ni { transform: translateX(2px); }
/* Aktiv: skeda "derdhet" nga sidebar-i te faqja (qoshe të lakuara nga brenda); shfaqet me zbehje të shkurtër */
.nav a.active { color: var(--brand); font-weight: 600; background: transparent; }
.nav a.active .ni { transform: none; }
.nav a.active .ni .line { opacity: 0; }
.nav a.active .ni .fill { opacity: 1; }
.nav-pill {
  position: absolute; z-index: 0; left: 0; right: -14px; top: 0; height: 42px; pointer-events: none;
  background: var(--bg); border-radius: 14px 0 0 14px;
}
.nav-pill.enter { animation: navPillIn .22s ease-out; }
@keyframes navPillIn { from { opacity: 0; } to { opacity: 1; } }
.nav-pill::before, .nav-pill::after { content: ""; position: absolute; right: 0; width: 18px; height: 18px; }
.nav-pill::before { top: -18px; background: radial-gradient(circle at 0 0, transparent 17.5px, var(--bg) 18px); }
.nav-pill::after { bottom: -18px; background: radial-gradient(circle at 0 100%, transparent 17.5px, var(--bg) 18px); }
.nav a.active .count { background: var(--brand); color: #fff; }
.nav .count { margin-left: auto; background: var(--brand-pink); color: var(--side); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 9px; transition: background .3s, color .3s; }
@media (prefers-reduced-motion: reduce) { .nav-pill.enter { animation: none; } .ni, .ni svg, .nav a { transition: none; } }
.side-foot { margin-top: auto; font-size: 12px; color: rgba(255, 255, 255, .8); padding: 10px; display: grid; gap: 6px; }
.badge-mode { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; }
.side-cta {
  margin: 14px 4px 6px; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, .08); text-align: center; color: #fff;
}
.side-cta p { margin: 0 0 10px; font-weight: 600; font-size: 13px; line-height: 1.4; }
.side-cta .btn, .promo .btn { --b-bg: #fff; --b-ink: var(--brand); --b-hbg: #fff; --b-hink: var(--brand-2); border: 0; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.side-cta .btn:hover, .promo .btn:hover { box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .4); }

.main { min-width: 0; display: flex; flex-direction: column; }
.side-backdrop { display: none; }
/* ---------- Shiriti i sipërm ----------
   Majtas: ikona e faqes (e njëjta si në menu) + data/rruga dhe titulli. Djathtas: kërkimi (⌘K), pastaj
   njoftimet dhe cilësimet si katrorë të njëjtë, dhe karta e përdoruesit. Gjithçka në lartësi 38px. */
.appbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 28px; min-height: 68px;
}
.appbar .title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.title-ico { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #8d3b64 0%, var(--brand) 60%, #5e2142 100%); box-shadow: 0 3px 8px -3px rgba(122, 47, 85, .55); }
.title-t { min-width: 0; }
.appbar .title .crumb { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.appbar .title .crumb a { color: var(--muted-2); font-weight: 500; }
.appbar .title .crumb a:hover { color: var(--brand); }
.appbar .title .crumb .rot { transform: rotate(-90deg); opacity: .6; }
.appbar .title h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.appbar .spacer { flex: 1; }
.gsearch { position: relative; width: min(340px, 30vw); }
.gsearch > .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gsearch input { height: 38px; border: 1px solid var(--line); background: #f7f6f9; border-radius: 11px; padding: 0 52px 0 36px; font-size: 13px;
  transition: background-color .15s, border-color .15s, box-shadow .15s; }
.gsearch input::-webkit-search-cancel-button { display: none; }
.gsearch input:hover { border-color: #e2dde5; }
.gsearch input:focus { outline: 0; background: #fff; border-color: var(--brand-light); box-shadow: 0 0 0 3px var(--brand-soft); }
.gsearch kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 10.5px/1 var(--font-body); color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 4px 6px; pointer-events: none; }
.gsearch input:focus ~ kbd { opacity: 0; }
.gsearch .results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 6px; display: none; max-height: 380px; overflow-y: auto;
}
.gsearch .results.open { display: block; }
.gsearch .results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.gsearch .results a:hover, .gsearch .results a.sel { background: var(--brand-soft); text-decoration: none; }
.gsearch .results .kind { margin-left: auto; font-size: 11px; color: var(--muted); }
.appbar-tools { display: flex; align-items: center; gap: 6px; padding-right: 14px; margin-right: 0; border-right: 1px solid var(--line); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--muted-2); background: #fff;
  border: 1px solid var(--line); cursor: pointer; position: relative; transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--brand-soft); border-color: var(--brand-light); color: var(--brand); text-decoration: none; }
.icon-btn.on { background: var(--brand-soft); border-color: var(--brand-light); color: var(--brand); }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; border: 2px solid #fff; line-height: 1; }
.search-btn { display: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 12px;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.user-menu summary:hover, .user-menu[open] summary { background: #f7f6f9; border-color: var(--line); }
.user-menu summary > .i { color: var(--muted); transition: transform .2s; }
.user-menu[open] summary > .i { transform: rotate(180deg); }
.user-menu .who { display: flex; flex-direction: column; line-height: 1.2; }
.user-menu .who .name { font-weight: 600; font-size: 13px; white-space: nowrap; }
.user-menu .who .role { font-size: 11px; color: var(--muted); white-space: nowrap; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; min-width: 200px; z-index: 30; }
.user-menu .menu a, .user-menu .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--brand-soft); text-decoration: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; position: relative;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar .online { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }

.content { padding: 26px 28px 60px; }
.page-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.page-actions .spacer { flex: 1; }
.page-actions .lead { color: var(--muted-2); }
.menu-btn { display: none; }

/* ---------- Components ---------- */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; flex-wrap: wrap; }
.card-h .spacer { flex: 1; }
.card-b { padding: 14px 20px 20px; }
.card + .card, .card + .grid, .grid + .card, .grid + .grid { margin-top: 20px; }
.grid { display: grid; gap: 20px; }
.grid > .card + .card, .grid > .card + .grid { margin-top: 0; }
.dash-main, .dash-side { min-width: 0; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.dash-side { display: grid; gap: 20px; }

.stat { padding: 18px 18px; display: flex; align-items: center; gap: 14px; }
.stat .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.stat .value { font-size: 23px; font-weight: 600; line-height: 1.15; }
.stat .label { color: var(--muted-2); font-size: 12px; }
.stat .sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.ico.rose { background: var(--brand-soft); color: var(--brand); }
.ico.amber { background: var(--amber-soft); color: var(--amber); }
.ico.green { background: var(--ok-soft); color: var(--ok); }
.ico.red { background: var(--bad-soft); color: var(--bad); }
.ico.blue { background: var(--info-soft); color: var(--info); }

/* ---------- Butonat ----------
   Të qeta dhe të pastra: në hover ndryshon vetëm ngjyra dhe hija thellohet pak; në klik butoni ulet 1px.
   Kryesori: gradient i butë kumbulle me ikonën në një rreth të çelët. */
.btn {
  --b-bg: #fff; --b-ink: var(--ink); --b-line: #e7e3ea; --b-hbg: #fbf7fa; --b-hink: var(--brand); --b-hline: var(--brand-light);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 15px; min-height: 36px; border-radius: 11px;
  border: 1px solid var(--b-line); background: var(--b-bg); color: var(--b-ink);
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .005em; line-height: 1.2;
  cursor: pointer; white-space: nowrap; user-select: none;
  box-shadow: 0 1px 2px rgba(59, 29, 49, .05);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn .i { flex: none; }
.btn:hover { background: var(--b-hbg); color: var(--b-hink); border-color: var(--b-hline); text-decoration: none;
  box-shadow: 0 2px 6px rgba(59, 29, 49, .08); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 1px rgba(59, 29, 49, .06); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-light); }

/* kryesori */
.btn.primary {
  --b-ink: #fff; --b-hink: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #86375f 0%, var(--brand) 100%);
  box-shadow: 0 1px 2px rgba(59, 29, 49, .18), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn.primary .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.btn.primary .i:first-child { margin-left: -5px; }
.btn.primary .i:last-child:not(:first-child) { margin-right: -5px; }
.btn.sm.primary .i { width: 18px; height: 18px; padding: 3px; }
.btn.sm.primary .i:first-child { margin-left: -3px; }
.btn.primary:hover {
  background: linear-gradient(180deg, #7a2f55 0%, var(--brand-2) 100%); border-color: transparent;
  box-shadow: 0 3px 8px rgba(122, 47, 85, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* variantet */
.btn.danger { --b-ink: var(--bad); --b-hbg: var(--bad-soft); --b-hink: #b83232; --b-hline: #f4c4c4; }
.btn.wa { --b-ink: #128c4b; --b-hbg: #e5f6ec; --b-hink: #0d7a40; --b-hline: #bfe6cf; }
.btn.ghost { --b-bg: transparent; --b-line: transparent; box-shadow: none; }
.btn.ghost:hover { box-shadow: none; }
.btn.sm { padding: 5px 11px; min-height: 29px; gap: 5px; font-size: 12px; border-radius: 9px; }
.btn.btn-icon { padding: 0; width: 36px; min-height: 36px; border-radius: 10px; }
.btn.sm.btn-icon { width: 29px; min-height: 29px; }
.btn[disabled], .btn[disabled]:hover { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.modal-h .btn-icon { color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }
.btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.select-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 12.5px; font-weight: 500; }
.select-pill .i { color: var(--brand); }
.select-pill select { border: 0; background: transparent; padding: 4px 2px; font-weight: 600; width: auto; cursor: pointer; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; background: #f0f1f5; color: #4a4f5c; white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.pill { display: inline-block; min-width: 64px; text-align: center; padding: 4px 12px; border: 1.5px solid var(--brand); color: var(--brand); border-radius: 7px; font-size: 12px; font-weight: 600; background: #fff; }
.pill.info { border-color: var(--info); color: var(--info); }
.dot-st { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-st.ok { background: var(--ok); } .dot-st.warn { background: var(--amber); } .dot-st.bad { background: var(--bad); }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.amount { color: var(--brand); font-weight: 700; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 12.5px; color: var(--ink); font-weight: 600; background: #fff; position: sticky; top: 0; white-space: nowrap; }
tbody tr:hover { background: #faf5f8; }
tr.clickable { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 700; background: #fafbfc; }
table.compact th, table.compact td { padding: 8px 10px; }
tr.dim td { opacity: .55; }
.card > .table-wrap > table th:first-child, .card > .table-wrap > table td:first-child { padding-left: 20px; }
.card > .table-wrap > table th:last-child, .card > .table-wrap > table td:last-child { padding-right: 20px; }

/* Tabela "Pagesat e fundit" — rreshti nën kursor theksohet si te dizajni */
table.fancy { border-collapse: separate; border-spacing: 0 6px; padding: 0 10px; }
table.fancy th { border: 0; padding-top: 4px; }
table.fancy td { border: 0; padding: 10px 12px; }
table.fancy tbody tr td:first-child { border-radius: 10px 0 0 10px; }
table.fancy tbody tr td:last-child { border-radius: 0 10px 10px 0; }
table.fancy tbody tr { transition: background .12s; }
table.fancy tbody tr:hover { background: var(--brand); color: #fff; }
table.fancy tbody tr:hover .amount, table.fancy tbody tr:hover .muted { color: #fff; }
table.fancy tbody tr:hover .pill { background: #fff; color: var(--brand); border-color: #fff; }
table.fancy tbody tr:hover .row-ico { background: #fff; }
.row-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.cell-flex { display: flex; align-items: center; gap: 12px; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e3e5ec; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; color: var(--muted-2); border-bottom: 2px solid transparent; font-weight: 500; }
.tabs a.active { color: var(--brand); border-color: var(--brand); text-decoration: none; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11px; fill: var(--muted-2); font-family: var(--font-body); font-weight: 500; }
.chart .grid-line { stroke: #eef0f4; stroke-dasharray: 3 4; }
.chart rect.bar { transition: opacity .15s; }
.chart g.col:hover rect.bar { opacity: .85; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.donut-wrap { display: grid; place-items: center; padding: 6px 0 14px; position: relative; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.donut-center b { font-size: 28px; font-weight: 600; display: block; }
.donut-center small { color: var(--muted); font-size: 11px; }
.donut-legend { display: grid; gap: 10px; }
.donut-legend div { display: flex; align-items: center; gap: 10px; }
.donut-legend i { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.donut-legend b { margin-left: auto; }

.promo { background: linear-gradient(145deg, var(--brand) 0%, var(--side) 100%); color: #fff; border-radius: var(--radius); padding: 22px 20px; text-align: center; position: relative; overflow: hidden; }
.promo::before, .promo::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.promo::before { width: 160px; height: 160px; right: -60px; top: -70px; }
.promo::after { width: 110px; height: 110px; left: -40px; bottom: -50px; }
.promo .ico { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; margin: 0 auto 12px; }
.promo p { margin: 0 0 14px; font-weight: 600; line-height: 1.45; position: relative; }
.promo .btn { position: relative; }

.people { display: grid; gap: 4px; padding: 0 12px 14px; }
.people a.add { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.people a.add:hover { text-decoration: none; filter: brightness(.98); }
.people a.add .plus { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--brand); }
.people .person { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; color: var(--ink); font-size: 12.5px; }
.people .person:hover { background: #faf5f8; text-decoration: none; }
.people .person .meta { min-width: 0; flex: 1; }
.people .person .meta div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Forms ---------- */
input, select, textarea {
  width: 100%; font: inherit; color: inherit; padding: 9px 11px; border: 1px solid #dcdfe7; border-radius: 9px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand-pink); }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.field { display: grid; gap: 5px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: #3c4150; }
.field .help { font-size: 12px; color: var(--muted); }
.field.check { display: flex; align-items: center; gap: 8px; padding-top: 20px; }
.field.check label { font-weight: 500; font-size: 13px; }
.field.hidden { display: none; }
.section-title { grid-column: 1 / -1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 700; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 4px; }
.section-title:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

dialog {
  border: 0; border-radius: 16px; padding: 0; width: min(720px, 94vw); max-height: 92vh; box-shadow: 0 24px 70px rgba(30, 20, 40, .28);
}
dialog.wide { width: min(980px, 96vw); }
dialog::backdrop { background: rgba(44, 21, 36, .45); }
.modal-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal-h h2 { flex: 1; }
.modal-b { padding: 20px 22px; overflow-y: auto; max-height: calc(92vh - 136px); }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: #fafbfc; }
.modal-f .spacer { flex: 1; }

/* ---------- Detail ---------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 9px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.enr { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; }
.enr-h { padding: 16px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.enr-b { padding: 16px 20px; }
.progress { height: 6px; background: #f1ecef; border-radius: 99px; overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--brand); }

.notice { padding: 11px 15px; border-radius: 10px; background: var(--info-soft); color: #2c3a85; font-size: 13px; }
.notice.warn { background: var(--warn-soft); color: #7a4a06; }
.notice.bad { background: var(--bad-soft); color: #8a1f1f; }
.notice + * { margin-top: 16px; }

.matrix td.cell { cursor: pointer; min-width: 120px; }
.matrix td.cell:hover { background: var(--brand-soft); }
.matrix td.cell .p { font-weight: 600; }

.login { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: linear-gradient(160deg, #f6ebf1 0%, var(--bg) 60%); }
.login .card { width: min(380px, 100%); }
.login-logo { display: grid; justify-items: center; gap: 6px; padding: 4px 0 20px; }
.login-logo img { width: 250px; height: auto; }
.login-logo small { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 1000; }
.toast { background: #2b2b2b; color: #fff; padding: 11px 15px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px; max-width: 360px; }
.toast.bad { background: var(--bad); }

@media (max-width: 1280px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
}
@media (max-width: 1100px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 260px; transform: translateX(-105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(20, 8, 16, .35); }
  .side-backdrop {
    display: block; position: fixed; inset: 0; z-index: 45; background: rgba(44, 21, 36, .28);
    -webkit-backdrop-filter: blur(7px) saturate(.9); backdrop-filter: blur(7px) saturate(.9);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .side.open + .side-backdrop { opacity: 1; visibility: visible; }
  body:has(.side.open) { overflow: hidden; }
  /* në mobile, skeda aktive mbetet brenda sidebar-it */
  .nav-pill { right: 0; border-radius: 14px; }
  .nav-pill::before, .nav-pill::after { display: none; }
  .menu-btn { display: grid; }
  .appbar { padding: 0 14px; gap: 8px; min-height: 60px; }
  .appbar .title .title-ico, .appbar .title .crumb, .user-menu .who, .user-menu summary > .i { display: none; }
  .appbar .title h1 { font-size: 17px; max-width: 40vw; }
  .appbar-tools { border-right: 0; padding-right: 0; }
  .user-menu summary { padding: 0; }
  .search-btn { display: grid; }
  .gsearch { display: none; position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); width: auto; }
  .appbar.search-open .gsearch { display: block; }
  .gsearch input { background: #fff; box-shadow: var(--shadow-lg); }
  .gsearch kbd { display: none; }
  .content { padding: 16px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .grid.c4.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stats .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .stats .stat .value { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}

@media print {
  .side, .appbar, .page-actions .btns, .btn { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}

/* ---------- Këstet & ndarja (te studenti) ---------- */
.sched-grid { display: grid; grid-template-columns: minmax(300px, 2fr) 3fr; gap: 10px 22px; align-items: start; }
.sched-grid > .sched-h { grid-row: 1; }
.sched-h { font-weight: 600; font-size: 13.5px; margin: 6px 0 4px; }
@media (max-width: 1180px) { .sched-grid { grid-template-columns: 1fr; } .sched-grid > .sched-h { grid-row: auto; } }

/* ---------- Çmimorja ----------
   Krye: zgjedhësi i gjuhës (kodi + emri) dhe një shirit kumbulle me përmbledhjen dhe Fizikisht/Online.
   Poshtë: seksionet, secili me karta për çdo lloj kursi; nivelet janë pllaka të klikueshme me çmimin. */
.pl-hero { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.pl-langs { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 2px 2px 12px; }
.pl-langs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px;
  color: var(--muted-2); font-weight: 500; font-size: 13px; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.pl-langs a b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; letter-spacing: .03em;
  background: #f3f0f4; color: var(--muted-2); font-weight: 700; transition: inherit; }
.pl-langs a:hover { background: #faf7f9; color: var(--brand); text-decoration: none; }
.pl-langs a.active { background: var(--brand-soft); border-color: var(--brand-light); color: var(--brand); font-weight: 600; }
.pl-langs a.active b { background: var(--brand); color: #fff; }
.pl-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, #8f3c66 0%, transparent 55%), linear-gradient(135deg, var(--side) 0%, #5a2443 100%); }
.pl-sum { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 240px; }
.pl-code { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .04em;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.pl-sum h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.pl-sum p { margin: 2px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.pl-sum p b { color: var(--brand-pink); font-weight: 600; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .22); gap: 2px; }
.seg a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 8px; color: rgba(255, 255, 255, .75); font-weight: 600; font-size: 12.5px;
  transition: background-color .15s, color .15s; }
.seg a:hover { color: #fff; text-decoration: none; }
.seg a.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.pl-both { font-size: 12.5px; color: rgba(255, 255, 255, .75); padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, .18); }
.pl-hint { display: flex; align-items: flex-start; gap: 7px; margin: 0 4px 22px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pl-hint .i { flex: none; margin-top: 2px; color: var(--brand-pink); }

.ps + .ps { margin-top: 28px; }
.ps-h { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; }
.ps-h h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.ps-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ps-n { margin-left: auto; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.pc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.pc { --acc: var(--brand); --acc-soft: var(--brand-soft); background: var(--panel); border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid #f0edf1; padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.pc::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); opacity: .85; }
.pc-individual { --acc: #c2577f; --acc-soft: #fbedf2; }
.pc-cift { --acc: #c8862a; --acc-soft: #fdf3e4; }
.pc header { display: flex; align-items: center; gap: 12px; }
.pc-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.pc-t { flex: 1; min-width: 0; }
.pc-t h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pc-t p { margin: 2px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc header .btn-icon { color: var(--muted); }
.pc-terms { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-terms span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--muted-2); background: #f6f4f7; padding: 3px 9px; border-radius: 6px; }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-row .pt { flex-direction: row; align-items: baseline; gap: 6px; min-height: 0; padding: 7px 14px; }
.pc-row .pt-l { display: none; }
.pc-row .pt-v { font-size: 17px; }
.pc-row .pt.empty .pt-l { display: inline-flex; }
.pt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; border-radius: 10px; text-align: left;
  border: 1px solid #efecf0; background: #fcfbfc; font: inherit; color: var(--ink); cursor: pointer; min-height: 58px;
  transition: background-color .15s, border-color .15s, box-shadow .15s; }
.pt:hover { background: #fff; border-color: var(--acc); box-shadow: 0 2px 8px rgba(59, 29, 49, .08); }
.pt:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-light); }
.pt-l { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.pt-v { font-size: 15px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pt-s { font-size: 11px; color: var(--acc); font-weight: 500; }
.pt.odd { background: var(--acc-soft); border-color: transparent; }
.pt.empty { border-style: dashed; background: transparent; justify-content: space-between; }
.pt.empty .pt-add { color: #c9c3cc; transition: color .15s; }
.pt.empty:hover .pt-add { color: var(--acc); }
.pl-foot { margin: 18px 4px 0; font-size: 12.5px; }
.pl-foot a { color: var(--muted-2); text-decoration: underline; text-underline-offset: 3px; }
.pl-foot a:hover { color: var(--brand); }
@media (max-width: 700px) {
  .pc-list { grid-template-columns: 1fr; }
  .pl-langs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 12px; }
  .pl-langs::-webkit-scrollbar { display: none; }
  .pl-bar { padding: 14px; }
  .seg { width: 100%; } .seg a { flex: 1; justify-content: center; }
}

/* ---------- Importi i pagesave nga arka ---------- */
dialog.xwide { width: min(1280px, 97vw); }
.pi-wrap { max-height: 58vh; overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.pi-table select { min-width: 190px; max-width: 280px; padding: 5px 8px; font-size: 12.5px; }
.pi-wait { color: var(--warn); font-weight: 500; }
.disc { color: var(--ok); font-weight: 600; }
.gi-target { max-width: 560px; margin-bottom: 14px; }
.gi-form { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; padding: 14px; border-radius: 12px; background: #faf8fa; border: 1px solid var(--line); }
@media (max-width: 900px) { .gi-form { grid-template-columns: 1fr 1fr; } }
.gi-price { display: flex; flex-wrap: wrap; gap: 8px; }
.gi-price span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 600; }
.pi-table td { vertical-align: middle; }
.pi-table td .small { white-space: nowrap; }

/* Ndarja e lidhur me pagesat reale */
td.pay-unpaid, .pay-unpaid { color: var(--bad); font-weight: 600; }
td.pay-part { color: var(--bad); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; }
td.pay-wait { color: var(--muted); }
td.pay-unpaid, td.pay-part, td.pay-wait { cursor: help; }
tfoot td.pay-unpaid { cursor: default; }
.pay-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 2px 14px; color: var(--muted); }
.pay-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pay-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pay-dot.ok { background: var(--ok); } .pay-dot.part { background: var(--warn); } .pay-dot.bad { background: var(--bad); } .pay-dot.wait { background: var(--line, #ccc); border: 1px solid var(--muted); }

/* Qasja vetëm për shikim */
.notice.ro-note { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--brand) 7%, #fff); border-color: color-mix(in srgb, var(--brand) 22%, #fff); color: var(--ink, inherit); }
.notice.ro-note .i { color: var(--brand); flex: none; }
