/* Kristály admin – sötét, mobilbarát téma (ugyanaz a paletta, mint a Windows kliensé) */
:root {
    --bg: #101119;
    --bg2: #17181f;
    --panel: #1a1b22;
    --card: #20222c;
    --card-alt: #272a36;
    --border: #333642;
    --accent: #e0a458;
    --accent-ink: #241a0c;
    --danger: #c24b4b;
    --danger-soft: #352227;
    --success: #4e9b6e;
    --text: #f2f3f7;
    --text2: #9aa0b4;
    --muted: #6c7280;
    --radius: 10px;
    --sidebar: 244px;
    --topbar: 56px;
    --strip: 0px; /* a karácsonyi fényfüzér helye az oldal tetején */
}
body.xmas { --strip: 26px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    padding-top: var(--strip);
    background: linear-gradient(180deg, var(--bg), var(--bg2)) fixed;
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
code { font-family: Consolas, "Cascadia Mono", monospace; background: var(--card-alt); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.muted { color: var(--text2); }
.small { font-size: .85rem; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1 1 auto; }
.hidden { display: none !important; }

/* ---------- betöltő képernyő ---------- */
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 8px; font-size: 1.3rem; color: var(--text2); }
.boot-mark { font-size: 3rem; color: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .45; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; background: var(--danger-soft); border-top: 1px solid var(--danger); padding: 10px 16px; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 14px; top: 8px; }

/* ---------- elrendezés ---------- */
.shell { display: flex; min-height: calc(100vh - var(--strip)); }
.sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar); padding-top: var(--strip);
    background: var(--panel);
    display: flex; flex-direction: column; z-index: 60; transition: transform .2s ease;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-size: 1.25rem; font-weight: 600; }
.brand-mark { color: var(--accent); font-size: 1.5rem; }
.nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; overflow-y: auto; flex: 1; }
.nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
    color: var(--text2); text-decoration: none;
}
.nav a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--card-alt); color: var(--accent); }
.nav .ico { width: 20px; text-align: center; }
.sidebar-foot { height: 56px; padding: 0; display: flex; align-items: stretch; border-top: 1px solid var(--border); }
.sidebar-foot .profile { flex: 1; min-width: 0; display: flex; }

.main { transition: margin-left .2s ease; margin-left: var(--sidebar); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: var(--strip); z-index: 40; height: var(--topbar); display: none; align-items: center; gap: 12px;
    padding: 0 20px; background: rgba(16, 17, 25, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.menu-btn { display: none; }
/* a menü szélén kilógó fül: becsukja / kinyitja a menüt */
.menu-tab {
    position: fixed; z-index: 65; top: calc(var(--strip) + 20px); left: var(--sidebar); width: 22px; height: 46px; padding: 0;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: var(--panel); color: var(--text2); border: 1px solid var(--border); border-left: 0; border-radius: 0 12px 12px 0;
    box-shadow: 4px 0 14px rgba(0, 0, 0, .25); transition: left .2s ease, color .15s ease, background .15s ease, width .15s ease;
}
.menu-tab:hover { color: var(--accent); background: var(--card); width: 26px; }
.menu-tab .i { width: 16px; height: 16px; vertical-align: middle; }
.topbar-title { font-weight: 600; }
.topbar-brand { font-weight: 600; font-size: 1.05rem; }
.content { padding: 40px 28px 28px; max-width: 1180px; width: 100%; margin: 0 auto; flex: 1 0 auto; }
.footbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    height: 42px; padding: 0 24px; border-top: 1px solid var(--border); background: var(--panel);
    font-size: .8rem; color: var(--text2);
}
.foot-copy { color: var(--muted); }
.backdrop { display: none; }

/* a menü asztali nézetben becsukható; az állapotot a böngésző megjegyzi */
@media (min-width: 861px) {
    .shell.collapsed .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
    .shell.collapsed .main { margin-left: 0; }
    .shell.collapsed .main::before { left: 0; }
    .shell.collapsed .menu-tab { left: 0; }
}

@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
    .main { margin-left: 0; }
    .menu-btn { display: inline-flex; }
    .topbar { display: flex; }
    .footbar { padding: 0 14px; }
    .backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 50; }
    .content { padding: 22px 14px 28px; }
    .menu-tab { display: none; }
    .topbar { padding: 0 12px; }
    .hide-mobile { display: none !important; }
}

/* ---------- kártyák, szakaszok ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card > h3:first-child, .card > .card-head:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-sub { color: var(--text2); margin: -10px 0 18px; font-size: .92rem; max-width: 70ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .num { font-size: 1.9rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.stat .lbl { color: var(--text2); font-size: .85rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.grid2 > .card { margin-bottom: 0; }
/* rugalmas, több oszlopos kártyaelrendezés: ahány oszlop kifér, a kártyák egymás alá illeszkednek (nincs felesleges üres hely) */
.masonry { columns: 360px; column-gap: 14px; }
.masonry > .card { break-inside: avoid; margin-bottom: 14px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }

/* ---------- gombok ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    background: var(--card-alt); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
    padding: 9px 16px; font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; min-height: 42px;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 11px; min-height: 32px; font-size: .85rem; }
.page-head .actions .btn { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.page-head .actions input[type=search] { min-height: 36px; padding: 6px 11px; }
.table .actions .btn { min-height: 28px; padding: 3px 10px; font-size: .8rem; font-weight: 600; border-radius: 7px; }
.table .actions .btn + .btn { margin-left: 4px; }
.icon-btn { background: transparent; border: 0; color: var(--text2); cursor: pointer; font-size: 1.15rem; padding: 6px 10px; border-radius: 8px; min-height: 36px; }
.icon-btn:hover { background: var(--card-alt); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.link-btn:hover { text-decoration: underline; }

/* ---------- űrlapok ---------- */
label.field { display: block; margin-bottom: 16px; }
.field > span.lbl { display: block; font-size: .8rem; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=datetime-local], select, textarea {
    width: 100%; background: var(--card-alt); color: var(--text); border: 1.5px solid var(--border); border-radius: 8px;
    padding: 9px 11px; font: inherit; min-height: 42px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder { color: var(--muted); }
input:disabled, select:disabled { opacity: .55; }
select option { background: var(--card); color: var(--text); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] {
    appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 0; cursor: pointer;
    background: var(--card-alt); border: 1.5px solid #4a4e5e; border-radius: 6px; display: inline-grid; place-content: center;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:hover, input[type=radio]:hover { border-color: var(--accent); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { box-shadow: 0 0 0 3px rgba(224, 164, 88, .35); outline: none; }
input[type=checkbox]:checked, input[type=radio]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]::after { content: ""; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .12s ease; }
input[type=checkbox]:checked::after { transform: rotate(45deg) scale(1); }
input[type=radio]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); transform: scale(0); transition: transform .12s ease; }
input[type=radio]:checked::after { transform: scale(1); }
input:disabled[type=checkbox], input:disabled[type=radio] { opacity: .5; cursor: not-allowed; }
input[type=file] { width: 100%; color: var(--text2); font: inherit; font-size: .9rem; background: var(--card-alt); border: 1.5px dashed var(--border); border-radius: 8px; padding: 8px; cursor: pointer; }
input[type=file]:hover { border-color: var(--accent); }
input[type=file]::file-selector-button {
    margin-right: 12px; cursor: pointer; background: var(--card); color: var(--text); border: 1px solid var(--border);
    border-radius: 7px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: .85rem;
}
input[type=file]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.check-list .check.box { margin: 0; }
.check.box + .check.box { margin-top: 8px; }
.check.box { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card-alt); }
.hint { color: var(--text2); font-size: .85rem; margin-top: 4px; }
.err-text { color: #e57373; font-size: .85rem; margin-top: 4px; }

/* ---------- jelcímkék ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--card-alt); border: 1px solid var(--border); color: var(--text2); white-space: nowrap; }
.badge.ok { color: #7fd1a2; border-color: #2f5f45; background: #1f3029; }
.badge.warn { color: var(--accent); border-color: #6b5230; background: #352c1c; }
.badge.bad { color: #e57373; border-color: #6b2f33; background: var(--danger-soft); }
.badge.info { color: #8fb8f0; border-color: #35507a; background: #1e2a3d; }
.badge.icon { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 28px; height: 26px; padding: 0 7px; font-size: .95rem; line-height: 1; cursor: help; }
.badge.icon .badge-text { font-size: .75rem; }
.badge.icon.sm { min-width: 24px; height: 22px; padding: 0 5px; font-size: .85rem; }
.name-badge { margin-left: 10px; vertical-align: middle; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- üzenetsáv ---------- */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; border: 1px solid; margin-bottom: 14px; font-size: .92rem; white-space: pre-line; cursor: pointer; animation: bannerIn .22s ease-out; transition: opacity .3s ease, transform .3s ease; }
.banner .msg { flex: 1; }
.banner.leaving { opacity: 0; transform: translateY(-4px); }
@keyframes bannerIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.banner .ic { font-weight: 700; width: 16px; text-align: center; flex: none; }
.banner.err { background: var(--danger-soft); border-color: #6b2f33; } .banner.err .ic { color: #e57373; }
.banner.ok { background: #1f3029; border-color: #2f5f45; } .banner.ok .ic { color: #7fd1a2; }
.banner.persistent { cursor: default; align-items: center; }
.banner-close { flex: none; align-self: center; background: transparent; border: 0; color: var(--text2); cursor: pointer; font-size: .9rem; line-height: 1; padding: 2px 6px; margin: -2px -6px -2px 0; border-radius: 6px; min-height: 0; }
.banner-close:hover { color: var(--text); background: rgba(255,255,255,.08); }
.banner.info { background: #1e2a3d; border-color: #35507a; } .banner.info .ic { color: #8fb8f0; }
.banner.warn { background: #352c1c; border-color: #6b5230; } .banner.warn .ic { color: var(--accent); }

/* ---------- táblázat (mobilon kártyákká alakul) ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text2); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--card-alt); }
.table .actions { text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
    table.table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table thead { display: none; }
    .table tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 8px 4px; background: var(--card); }
    .table td { border: 0; padding: 5px 12px; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: right; }
    .table td::before { content: attr(data-label); color: var(--text2); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: none; }
    .table td.actions { justify-content: flex-end; }
    .table td.actions::before, .table td.no-label::before { content: none; }
}

/* ---------- fülek, chipek ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab { background: none; border: 0; color: var(--text2); padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card-alt); color: var(--text2); cursor: pointer; font: inherit; font-size: .85rem; min-width: 40px; }
.chip.ro { cursor: default; padding: 3px 10px; font-size: .78rem; min-width: 0; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pick-list { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 4px 12px; background: var(--panel); }
.pick-list .check { border-bottom: 1px solid var(--border); }
.pick-list .check:last-child { border-bottom: 0; }

/* ---------- előugró ablak ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.modal-card.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; padding: 16px 18px 8px; }
.modal-head h3 { margin: 0; flex: 1; }
.modal-body { padding: 8px 18px 14px; overflow-y: auto; }
.modal-foot { padding: 12px 18px 16px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--border); }
@media (max-width: 560px) {
    .modal-backdrop { align-items: flex-end; padding: 0; }
    .modal-card { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; }
}

/* ---------- értesítések ---------- */
.toasts { position: fixed; right: 28px; bottom: 32px; z-index: 1500; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { cursor: pointer; animation: toastIn .28s cubic-bezier(.2,.8,.2,1); transition: opacity .25s ease, transform .25s ease; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); white-space: pre-line; }
.toast.leaving { opacity: 0; transform: translateX(40px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: #e57373; }

/* ---------- üres állapot, betöltés ---------- */
.empty { text-align: center; padding: 48px 16px; color: var(--text2); }
.empty-icon { font-size: 2.6rem; color: var(--accent); margin-bottom: 8px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- belépés ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 600; margin-bottom: 18px; }
.auth-brand .brand-mark { font-size: 1.8rem; }
.qr { background: #fff; border-radius: 10px; padding: 12px; width: 244px; height: 244px; margin: 0 auto 14px; box-sizing: border-box; }
.qr svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-family: Consolas, "Cascadia Mono", monospace; font-size: 1.05rem; margin-bottom: 12px; }

/* ---------- jelszó-szabály lista ---------- */
.rules { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.rules .rt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text2); margin-bottom: 6px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
@media (max-width: 420px) { .rules-grid { grid-template-columns: 1fr; } }
.rule { font-size: .85rem; color: var(--muted); display: flex; gap: 6px; }
.rule .ri { width: 14px; font-weight: 700; flex: none; }
.rule.good { color: #7fd1a2; }
.rule.bad { color: #e57373; }

/* ---------- időkorlát-szabályok ---------- */
.rule-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.rule-card .rc-head { display: flex; align-items: center; margin-bottom: 10px; font-weight: 600; }

/* ---------- szűrősáv, lapozó ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.filters .field { margin: 0; flex: 1 1 150px; min-width: 130px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

/* ---------- profil-menü (mint a kliensben) ---------- */
.profile { position: relative; }
.profile-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; background: transparent; border: 0; border-radius: 0; padding: 0 16px 0 14px; cursor: pointer; color: var(--text); font: inherit; }
.profile-btn:hover, .profile-btn.open { background: var(--card); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none; }
.profile-name { text-align: left; line-height: 1.2; flex: 1; min-width: 0; }
.profile-name .n, .profile-name .r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-name .n { font-weight: 600; font-size: .9rem; }
.profile-name .r { color: var(--text2); font-size: .75rem; }
.profile-caret { color: var(--text2); font-size: .7rem; }
.profile-pop {
    position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); min-width: 0; background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 6px; box-shadow: 0 16px 50px rgba(0, 0, 0, .55); z-index: 90; animation: bannerIn .15s ease-out;
}
.profile-pop .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.profile-pop .who .n { font-weight: 600; }
.profile-pop .who .r { color: var(--text2); font-size: .8rem; }
.pop-item { white-space: nowrap; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); font: inherit; font-size: .92rem; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.pop-item:hover { background: var(--card-alt); }
.pop-item .pi { width: 18px; text-align: center; color: var(--text2); }
.pop-item.danger { color: #e57373; }
.pop-item.danger .pi { color: #e57373; }
.pop-sep { height: 1px; background: var(--border); margin: 4px 0; }
.pop-backdrop { position: fixed; inset: 0; z-index: 80; }

/* ---------- karácsonyi dekoráció ---------- */
#xmas-lights { position: fixed; top: 0; left: 0; right: 0; height: var(--strip); z-index: 70; pointer-events: none; overflow: hidden; display: none; }
/* a fényfüzér mögötti sáv csak a főtartalom fölött kap hátteret (a menü saját háttere alatta fut), így a menüvel együtt jelenik meg */
.main::before { content: ""; position: fixed; top: 0; left: var(--sidebar); right: 0; height: var(--strip); background: #12131b; z-index: 65; }
@media (max-width: 860px) { .main::before { left: 0; } }
body.xmas #xmas-lights { display: block; }
#xmas-lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#xmas-lights .wire { fill: none; stroke: #3b3e4c; stroke-width: 1.6; }
#xmas-lights .cap { fill: #3b3e4c; }
#xmas-lights .bulb { animation: bulbTwinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes bulbTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }
#xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: none; }
body.xmas #xmas-snow { display: block; }
body.xmas .brand-mark, body.xmas .auth-brand .brand-mark { color: #e5484d; text-shadow: 0 0 14px rgba(229, 72, 77, .5); }
body.xmas .stat .num { text-shadow: 0 0 18px rgba(224, 164, 88, .25); }
@media (prefers-reduced-motion: reduce) { #xmas-lights .bulb { animation: none; } }

.pop-item .grow { flex: 1; }
.pop-toggle { width: 34px; height: 18px; border-radius: 999px; background: var(--card-alt); border: 1px solid #4a4e5e; position: relative; flex: none; transition: background .15s ease; }
.pop-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text2); transition: transform .15s ease, background .15s ease; }
.pop-toggle.on { background: var(--accent); border-color: var(--accent); }
.pop-toggle.on::after { transform: translateX(16px); background: var(--accent-ink); }
.client-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* ---------- ikonok (Lucide, lásd Shared/Icon.razor) ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.icon-btn .i, .banner-close .i, .badge .i, .profile-caret .i { margin: 0; }
.icon-btn .i { width: 1.25em; height: 1.25em; vertical-align: middle; }
.nav .ico { display: inline-flex; justify-content: center; }
.nav .ico .i { width: 19px; height: 19px; vertical-align: middle; }
.pop-item .pi { display: inline-flex; justify-content: center; }
.pop-item .pi .i { width: 17px; height: 17px; vertical-align: middle; }
.bi { display: inline-flex; align-items: center; }
.badge .i { width: 15px; height: 15px; vertical-align: middle; }
.badge.icon.sm .i { width: 13px; height: 13px; }
.badge .bi { line-height: 0; }
.empty-icon .i { width: 44px; height: 44px; stroke-width: 1.6; vertical-align: middle; }
.banner .ic { display: inline-flex; align-items: center; justify-content: center; }
.banner .ic .i { width: 16px; height: 16px; vertical-align: middle; }
.banner-close .i { width: 14px; height: 14px; vertical-align: middle; }
.rule .ri { display: inline-flex; align-items: center; justify-content: center; }
.rule .ri .i { width: 14px; height: 14px; vertical-align: middle; }
.profile-caret .i { width: 14px; height: 14px; vertical-align: middle; }
.client-cell .badge { margin-right: 8px; }
