/* =========================================================
   HLA BACKSTAGE — managers' recruiting area (backstage/), loaded after style.css.
   Dark TikTok look: the shared components stay, the palette is remapped
   (--white = card surface, --paper = page, --ink = text; pink/cyan accents).
   ========================================================= */
body.bs {
  --tt-pink: #FE2C55;
  --tt-cyan: #25F4EE;
  --red: #FE2C55;
  --red-d: #FF5C7C;
  --red-t: rgba(254, 44, 85, .16);
  --green: #25F4EE;
  --green-d: #8DFBF7;
  --green-t: rgba(37, 244, 238, .12);
  --white: #15151D;
  --paper: #09090D;
  --ink: #F5F5F7;
  --muted: #9C9CAB;
  --line: #2A2A37;
  --raise: #1E1E29;
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
}
body.bs::before, body.bs::after { /* soft pink/cyan glow, like hlagency.hu */
  content: ''; position: fixed; z-index: -1; width: 55vmax; height: 55vmax; border-radius: 50%;
  filter: blur(110px); opacity: .13; pointer-events: none;
}
body.bs::before { background: var(--tt-cyan); top: -30vmax; left: -25vmax; }
body.bs::after { background: var(--tt-pink); bottom: -30vmax; right: -25vmax; }

.bs ::selection { background: var(--tt-pink); color: #fff; }
.bs a { color: var(--tt-cyan); }
.bs a:hover { color: #fff; }
.bs :focus-visible { outline-color: var(--tt-cyan); }

/* TikTok "offset" headline */
.bs h1 { text-shadow: -2px -2px 0 var(--tt-cyan), 2px 2px 0 var(--tt-pink); letter-spacing: -0.02em; }
.bs .pagehead h1 { font-size: clamp(34px, 4.6vw, 52px); }

/* header */
.bs .appbar { background: rgba(9, 9, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bs .tricolor { height: 2px; background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink)); }
.bs .tricolor i { display: none; }
.bs .brand { color: #fff; font-weight: 800; letter-spacing: .01em; }
.bs .brand:hover { color: #fff; }
.bs .mark { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; background: #000; position: relative; overflow: visible; }
.bs .mark i { display: none; }
.bs .mark::before { /* TikTok-style note glyph */
  content: '\266A'; position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 17px/1 var(--text); color: #fff; text-shadow: -1.5px -1.5px 0 var(--tt-cyan), 1.5px 1.5px 0 var(--tt-pink);
}
.bs .appnav a { color: var(--muted); font-weight: 600; }
.bs .appnav a:hover { background: var(--raise); color: #fff; }
.bs .appnav a[aria-current="page"] { background: var(--raise); color: #fff; box-shadow: inset 0 -2px 0 var(--tt-pink); }
.bs .logout button { color: var(--muted); }
.bs .logout button:hover { background: var(--raise); color: #fff; }
.bs .navtoggle { background: var(--raise); border-color: var(--line); color: #fff; }
.bs-who { font-size: 14px; color: var(--muted); padding: 0 8px; }

/* buttons */
.bs .btn-red { background: var(--tt-pink); color: #fff; box-shadow: 0 8px 24px -10px rgba(254, 44, 85, .8); }
.bs .btn-red:hover { background: #FF4A6E; color: #fff; }
.bs .btn-ghost { color: #fff; border-color: #3A3A4A; background: var(--raise); }
.bs .btn-ghost:hover { background: #fff; border-color: #fff; color: #000; }
.bs .btn-danger { color: var(--red-d); border-color: rgba(254, 44, 85, .45); }
.bs .btn-danger:hover { background: var(--tt-pink); border-color: var(--tt-pink); color: #fff; }
.bs .linkbtn:hover { color: var(--tt-pink); }

/* surfaces */
.bs .panel, .bs .rows, .bs .bonus, .bs .empty, .bs .quick-item, .bs-search { background: var(--white); border-color: var(--line); }
.bs .panel, .bs .bonus, .bs .rows { box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .9); }
.bs .flash { background: var(--green-t); color: var(--green-d); border-left-color: var(--tt-cyan); }
.bs .flash-err { background: var(--red-t); color: #FFB3C2; border-left-color: var(--tt-pink); }
.bs .flash-info { background: rgba(255, 196, 0, .1); color: #FFD966; border-left-color: #FFC400; }
.bs .filters a { background: var(--white); border-color: var(--line); color: var(--muted); }
.bs .filters a:hover { color: #fff; border-color: #44445A; }
.bs .filters a[aria-current="page"] { background: #fff; border-color: #fff; color: #000; }

/* forms */
.bs .fld input, .bs .fld textarea, .bs .fld select { background: var(--paper); border-color: var(--line); color: #fff; }
.bs .fld input::placeholder, .bs .fld textarea::placeholder { color: #5E5E6E; }
.bs .fld input:focus, .bs .fld textarea:focus, .bs .fld select:focus { border-color: var(--tt-cyan); box-shadow: 0 0 0 3px rgba(37, 244, 238, .2); }
.bs .chk input { accent-color: var(--tt-pink); }

/* login */
.bs.auth { background: var(--paper); }
.bs .authbox { background: var(--white); border-top: 0; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); position: relative; }
.bs .authbox::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink)); }
.bs .ferr-box { background: var(--red-t); color: #FFB3C2; }

/* tags */
.bs .tag { background: var(--raise); color: var(--muted); }
.bs .tag-red { background: var(--tt-pink); color: #fff; }
.bs .tag-green { background: var(--green-t); color: var(--tt-cyan); }
.tag-amber { background: rgba(255, 196, 0, .14); color: #FFD966; }
.tag-league { font-family: var(--display); font-size: 13px; letter-spacing: .02em; }
.lg-a { background: linear-gradient(135deg, var(--tt-cyan), var(--tt-pink)) !important; color: #000 !important; }
.lg-b { background: var(--tt-pink) !important; color: #fff !important; }
.lg-c { background: rgba(37, 244, 238, .16) !important; color: var(--tt-cyan) !important; }
.lg-d { background: var(--raise) !important; color: var(--muted) !important; }

/* "Élőben" pill gets the TikTok LIVE dot */
.bs .tag-live { background: var(--tt-pink); color: #fff; display: inline-flex; gap: 6px; align-items: center; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.bs .tag-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: bs-blink 1.2s ease-in-out infinite; }
@keyframes bs-blink { 50% { opacity: .25; } }

/* league picker */
.bs-leagues { gap: 6px; }
.bs-leagues a { padding: 7px 11px; font-variant-numeric: tabular-nums; font-weight: 700; }

/* filter bar */
.bs-search { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.bs-search .fld { flex: 1 1 240px; }
.bs-search .chk { font-size: 14px; align-items: center; padding-bottom: 10px; }

/* tables */
.bs .bonus-table thead th { background: var(--raise); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.bs .bonus-table th, .bs .bonus-table td { border-bottom-color: var(--line); }
.bs-table th, .bs-table td { padding: 12px 16px; vertical-align: middle; }
.bs-table td { font-size: 15px; font-variant-numeric: tabular-nums; }
.bs-table tbody th { font-weight: 600; }
.bs-table tbody tr { transition: background .15s; }
.bs-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.bs-table td:last-child { text-align: right; white-space: nowrap; }
.bs-table tr.is-masked th, .bs-table tr.is-masked td { color: var(--muted); }
.bs-add { margin: 0; }
.bs-tracked { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.bs-due { color: var(--tt-pink); font-weight: 700; }

/* KPI tiles */
.bs .quick-item { flex-direction: column; align-items: flex-start; gap: 6px; }
.bs .quick-item strong { color: #fff; }
.bs .quick-item:first-child strong { color: #fff; text-shadow: -2px -2px 0 var(--tt-cyan), 2px 2px 0 var(--tt-pink); }
.quick-item span { color: var(--muted); font-size: 14px; }

/* rows (candidate list) */
.bs .rowitem { border-top-color: var(--line); }
.bs .rowitem:hover { background: rgba(255, 255, 255, .02); }
.bs .rowmain strong a { color: #fff; text-decoration: none; }
.bs .rowmain strong a:hover { color: var(--tt-cyan); }

/* notes timeline */
.bs-timeline { list-style: none; margin: 22px 0 0; padding: 0; }
.bs-timeline li { padding: 14px 0 14px 16px; border-top: 1px solid var(--line); border-left: 3px solid var(--tt-cyan); }
.bs-timeline li.bs-status, .bs-timeline li.bs-assign, .bs-timeline li.bs-system { border-left-color: var(--line); padding-block: 8px; }
.bs-timeline .news-meta { margin-bottom: 4px; }
.bs-timeline form { margin-top: 6px; }
.bs .dl dd { color: #fff; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1100px) {
  .bs .appnav { background: var(--white); border-bottom-color: var(--line); }
}
@media (max-width: 640px) {
  .bs-search { padding: 14px 16px; }
  .bs .bonus-table tr { background: var(--white); border-color: var(--line); }
  .bs .bonus-table tbody th { border-bottom-color: var(--line) !important; }
  .bs-table td:last-child { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--line); }
  .bs-table td:last-child:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bs .tag-live::before { animation: none; }
}
.bs-count { margin: 0 0 12px; } .bs-count strong { color: #fff; }

@media (min-width: 641px) { .bs .bonus { overflow-x: auto; } }

/* ---------- collapsible filter box ---------- */
.bs-filterbox { margin-bottom: 20px; }
.bs-filterbox > summary { display: none; }
.bs-filterbox > .bs-search { margin-bottom: 0; }
.bs-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tt-pink); color: #fff; font-size: 12px; font-weight: 700; margin-left: 6px; }

/* ---------- bottom tab bar (phones only) ---------- */
.bs-tabbar { display: none; }

/* =========================================================
   PHONES
   ========================================================= */
@media (max-width: 640px) {
  /* page = header, main (grows), tab bar; the bar is sticky at the end of the flow (iOS-safe) */
  body.bs.app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .bs .appmain { flex: 1 0 auto; width: 100%; padding-top: 22px; padding-bottom: 28px; }
  .bs .pagehead { margin-bottom: 18px; }
  .bs .pagehead h1 { font-size: 34px; }
  .bs .pagehead p { font-size: 14px; }
  .bs .pagehead-row .btn { width: 100%; }

  /* the top menu keeps only name + logout; pages are in the tab bar */
  .bs .appnav .bs-topnav { display: none; }
  .bs .appnav-sep { display: none; }

  .bs-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: sticky; z-index: 6; bottom: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(9, 9, 13, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .bs-tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
    color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; border-radius: 10px;
  }
  .bs-tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bs-tabbar a[aria-current="page"] { color: #fff; }
  .bs-tabbar a[aria-current="page"] svg { filter: drop-shadow(-1.5px -1.5px 0 var(--tt-cyan)) drop-shadow(1.5px 1.5px 0 var(--tt-pink)); }

  /* pill rows scroll sideways instead of wrapping into many lines */
  .bs .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .bs .filters::-webkit-scrollbar { display: none; }
  .bs .filters a { flex: 0 0 auto; }

  /* filters fold behind one button */
  .bs-filterbox > summary {
    display: flex; align-items: center; justify-content: center; min-height: 46px; list-style: none; cursor: pointer;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; color: #fff;
  }
  .bs-filterbox > summary::-webkit-details-marker { display: none; }
  .bs-filterbox > summary::after { content: ''; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
  .bs-filterbox[open] > summary { border-radius: var(--r) var(--r) 0 0; border-bottom-color: transparent; }
  .bs-filterbox[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
  .bs-filterbox > .bs-search { border-radius: 0 0 var(--r) var(--r); border-top: 0; }
  .bs-search { padding: 14px 16px; gap: 12px; }
  .bs-search .fld { flex-basis: 100%; }
  .bs-search .chk { padding-bottom: 0; }
  .bs-search .btn { width: 100%; }

  /* compact creator cards: rank + name + action on top, data in three columns below */
  .bs .bs-table tr {
    position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px;
    padding: 14px 16px; margin-bottom: 10px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  }
  .bs .bs-table th, .bs .bs-table td { padding: 0 !important; border: 0 !important; font-size: 14px; min-width: 0; }
  .bs .bs-table td::before { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
  .bs .bs-table td[data-label="Helyezés"] { grid-column: 1 / -1; order: -2; font-size: 12px; color: var(--muted); }
  .bs .bs-table td[data-label="Helyezés"]::before { display: none; }
  .bs .bs-table tbody th { grid-column: 1 / -1; order: -1; font-size: 16px; padding-right: 118px !important; word-break: break-word; }
  .bs .bs-table td[data-label="Teendő"] { position: absolute; top: 14px; right: 16px; grid-column: auto; text-align: right; }
  .bs .bs-table td[data-label="Teendő"]::before { display: none; }
  .bs .bs-table td[data-label="Állapot"] { grid-column: auto; }
  .bs .bs-table td[data-label="Állapot"]:not(:has(.tag)) { display: none; }
  .bs .bs-table td[data-label="Adatok"] { grid-column: 1 / -1; }
  .bs .bs-table tr.is-masked th { padding-right: 0 !important; }
  .bs-tracked { flex-direction: column; align-items: flex-end; gap: 2px; }

  /* candidate list + detail */
  .bs .rowitem { padding: 14px 16px; }
  .bs .rowact .btn { width: 100%; }
  .bs .cols { gap: 14px; }
  .bs .panel { padding: 18px; }
  .bs .dl { grid-template-columns: auto 1fr; gap: 6px 14px; }
}

/* ---------- creator profile ---------- */
.bs .bs-name { color: #fff; text-decoration: none; font-weight: 700; }
.bs .bs-name:hover { color: var(--tt-cyan); text-decoration: underline; }
.bs-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.bs-profileact { margin-top: 14px; }
.bs-kpis { margin-bottom: 16px; }
.bs .quote { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.bs-plain td:last-child { text-align: left; }
.bs-gifters { list-style: none; counter-reset: g; margin: 0; padding: 0; }
.bs-gifters li { counter-increment: g; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.bs-gifters li:first-child { border-top: 0; }
.bs-gname::before { content: counter(g) '.'; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.bs-gnum { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 640px) {
  .bs .bs-plain tbody th { padding-right: 0 !important; }
  .bs .bs-plain td[data-label="Helyezés"] { grid-column: auto; order: 0; font-size: 14px; color: inherit; }
  .bs .bs-plain td[data-label="Helyezés"]::before { display: block; }
  .bs-kpis .quick-item strong { font-size: 24px; }
}

/* ---------- weekly diamonds (profile) ---------- */
.bs-subhead { font-size: 17px; margin: 22px 0 10px; }
.bs-weeks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.bs-weeks li { display: grid; grid-template-columns: 120px 1fr 110px; gap: 12px; align-items: center; font-size: 14px; }
.bs-wk { color: var(--muted); white-space: nowrap; }
.bs-wbar { height: 14px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.bs-wbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink)); transition: width .5s ease; }
.bs-wnum { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bs-weeks li.is-empty .bs-wnum { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) {
  .bs-weeks li { grid-template-columns: 96px 1fr 84px; gap: 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .bs-wbar i { transition: none; } }

/* ---------- admin log (naplo.php) ---------- */
.bs-quota { margin: -4px 0 18px; }
.bs-usage { margin-top: 4px; }
.bs .mini li { border-top-color: var(--line); }
.bs-teamrows { margin: 0; box-shadow: none !important; }
.bs-teamnums { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.bs-teamnums strong { color: #fff; font-variant-numeric: tabular-nums; }
.bs-log { list-style: none; margin: 0 0 10px; padding: 0; }
.bs-log li { display: grid; grid-template-columns: 92px 150px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.bs-log li:first-child { border-top: 0; }
.bs-logtime { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-logwho { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-log-act .bs-logwhat strong { color: var(--tt-cyan); }
.bs-log-auth .bs-logwhat strong { color: #FFD966; }
.bs-log-view .bs-logwhat strong { font-weight: 500; }
@media (max-width: 640px) {
  .bs-log li { grid-template-columns: auto 1fr; gap: 2px 10px; }
  .bs-logwhat { grid-column: 1 / -1; }
}

/* ---------- agency (ugynokseg.php) ---------- */
.bs-setup > summary { list-style: none; cursor: pointer; }
.bs-setup > summary::-webkit-details-marker { display: none; }
.bs-setup > summary h2 { display: inline; margin: 0; }
.bs-setup > summary::after { content: ' ▾'; color: var(--muted); }
.bs-setup[open] > summary { margin-bottom: 14px; }
.bs-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.bs code { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 13px; word-break: break-all; }
.bs-keybox { padding: 14px 16px; border-radius: var(--r); margin-bottom: 16px; }
.bs-total th, .bs-total td { font-weight: 800; border-top: 2px solid var(--line); }

/* ---------- agency events ---------- */
.bs-events { list-style: none; margin: 0; padding: 0; }
.bs-events li { padding: 12px 0 12px 14px; border-top: 1px solid var(--line); border-left: 3px solid var(--line); }
.bs-events li:first-child { border-top: 0; }
.bs-events li.is-important { border-left-color: var(--tt-pink); }
.bs-events .news-meta { margin-bottom: 4px; }
.bs-events strong { color: #fff; }
.bs-events p.muted { margin-top: 4px; }
.bs-deleted { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; } .bs-deleted form { margin: 0; } .bs .rowact .btn-danger { min-width: 0; }

/* Tagok page: the two "add" buttons above the tabs */
.bs .bs-headbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }

/* =========================================================
   LAYOUT 2026-11-08: left sidebar menu (desktop), search bar on top
   ========================================================= */
body.bs.app { --side: 248px; }
.bs-side {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--side);
  display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 14px;
  background: rgba(13, 13, 19, .96); border-right: 1px solid var(--line);
  overflow-y: auto;
}
.bs-side-brand { padding: 4px 8px 14px; font-size: 17px; }
.bs-nav { display: flex; flex-direction: column; gap: 2px; }
.bs-nav-h { margin: 14px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5E5E6E; }
.bs-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
}
.bs-nav a:hover { background: var(--raise); color: #fff; }
.bs-nav a[aria-current="page"] { background: var(--raise); color: #fff; box-shadow: inset 3px 0 0 var(--tt-pink); }
.bs-nav svg, .bs-side-foot svg, .bs-top svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bs-nav a[aria-current="page"] svg { color: var(--tt-cyan); }
.bs-nav .bs-badge { margin-left: auto; }
.bs-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.bs-side-foot .bs-who { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; font-weight: 600; }
.bs-side-foot .logout { margin: 0; }
.bs-side-foot .logout button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; background: none; border: 0; color: var(--muted); font: 600 15px var(--text); cursor: pointer; text-align: left; }
.bs-side-foot .logout button:hover { background: var(--raise); color: #fff; }

.bs-body { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.bs-top {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px;
  padding: 12px clamp(16px, 3vw, 40px); background: rgba(9, 9, 13, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.bs-top .navtoggle, .bs-top-brand { display: none; }
.bs .bs-top .navtoggle { width: 42px; height: 42px; padding: 0; justify-content: center; }
.bs-body .appmain { width: 100%; max-width: 1240px; margin-inline: 0; padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }

/* search */
.bs-gsearch { position: relative; flex: 1; max-width: 640px; margin: 0; }
.bs-gsearch > svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.bs-gsearch input {
  width: 100%; height: 44px; padding: 0 16px 0 44px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line); color: #fff; font: 500 15px var(--text);
}
.bs-gsearch input::placeholder { color: #6A6A7A; }
.bs-gsearch input:focus { outline: none; border-color: var(--tt-cyan); box-shadow: 0 0 0 3px rgba(37, 244, 238, .18); }
.bs-gsearch.is-busy > svg { color: var(--tt-cyan); animation: bs-blink .8s ease-in-out infinite; }
.bs-gresults {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(70vh, 560px); overflow-y: auto;
  background: #13131B; border: 1px solid #33334A; border-radius: 14px; padding: 6px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
}
.bs-ggroup { margin: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6A6A7A; }
.bs-gresults a { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 9px 12px; border-radius: 10px; color: #fff; text-decoration: none; }
.bs-gresults a strong { font-weight: 600; }
.bs-gresults a span { grid-column: 1; color: var(--muted); font-size: 13px; }
.bs-gresults a em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--raise); color: var(--muted); }
.bs-gresults a:hover, .bs-gresults a.is-active { background: var(--raise); }
.bs-gresults a.bs-gall { display: block; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--tt-cyan); font-weight: 600; text-align: center; }
.bs-gempty { margin: 10px 12px; color: var(--muted); }
.bs-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bs-hits a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 10px; color: #fff; text-decoration: none; }
.bs-hits a:hover { background: var(--raise); }

/* loading screen (backstage.js) */
.bs-loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(9, 9, 13, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.bs-loader.is-on { opacity: 1; pointer-events: auto; }
.bs-loader-box { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px 32px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.bs-loader-box strong { font: 800 20px var(--display); }
.bs-loader-box span:last-child { color: var(--muted); font-size: 14px; }
.bs-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .1); border-top-color: var(--tt-pink); border-right-color: var(--tt-cyan); animation: bs-spin .8s linear infinite; }
@keyframes bs-spin { to { transform: rotate(360deg); } }

/* panels with a header row */
.bs-panelhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.bs-panelhead h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.bs-panelhead .filters { margin: 0; }
.bs-panelhead form { margin: 0 0 0 auto; }

/* notifications */
.bs-events li { display: flex; gap: 14px; align-items: flex-start; }
.bs-ev-main { flex: 1; min-width: 0; }
.bs-events li form { margin: 0; flex: none; }
.bs-events li.is-read { opacity: .55; }
.bs-events li:not(.is-read) .bs-ev-main strong { color: #fff; }

/* post-it notes on the candidates list */
.postits { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 8px; }
.postit {
  position: relative; width: 150px; min-height: 60px; margin: 0; padding: 8px 9px 6px;
  background: #FFE873; color: #2A2410; border-radius: 2px 2px 10px 2px;
  box-shadow: 0 8px 14px -9px rgba(0, 0, 0, .8); rotate: -1deg;
}
.postit::before { content: ''; position: absolute; top: -5px; left: 50%; translate: -50% 0; width: 34px; height: 10px; background: rgba(255, 255, 255, .35); rotate: 2deg; }
.postit-1 { background: #FFC2D1; rotate: .8deg; }
.postit-2 { background: #B9F5F2; rotate: -.4deg; }
.postit blockquote { margin: 0; padding-right: 26px; font-size: 12.5px; line-height: 1.3; word-break: break-word; }
.postit figcaption { margin-top: 5px; font-size: 10.5px; opacity: .65; }
.postit-tools { position: absolute; top: 3px; right: 3px; display: flex; gap: 1px; }
.postit-tools form { margin: 0; }
.postit-tools button, .postit-edit > summary {
  display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: rgba(42, 36, 16, .55); font: 700 13px/1 var(--text); cursor: pointer; list-style: none;
}
.postit-edit > summary::-webkit-details-marker { display: none; }
.postit-tools button:hover, .postit-edit > summary:hover { background: rgba(0, 0, 0, .1); color: #2A2410; }
/* editing turns the post-it itself into the text box */
.postit:has(.postit-edit[open]) { width: 220px; rotate: 0deg; z-index: 2; }
.postit:has(.postit-edit[open]) > blockquote, .postit:has(.postit-edit[open]) > figcaption,
.postit:has(.postit-edit[open]) .postit-tools > form { display: none; }
.postit:has(.postit-edit[open]) .postit-tools { position: static; display: block; }
.postit-edit[open] > summary { position: absolute; top: 3px; right: 3px; }
.postit-edit[open] > summary::after { content: ''; }
.postit-edit[open] > form { display: grid; gap: 6px; padding-top: 14px; }
.postit-edit textarea, .postit-add textarea { width: 100%; border: 0; background: transparent; color: #2A2410; font: 13px/1.35 var(--text); resize: vertical; }
.postit-edit textarea:focus, .postit-add textarea:focus { outline: none; }
.postit-more { align-self: center; font-size: 12px; }
.postit-add { align-self: stretch; }
.postit-add > summary {
  list-style: none; cursor: pointer; display: grid; place-items: center; width: 60px; min-height: 60px; height: 100%;
  border: 2px dashed #3A3A4A; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 12px; text-align: center;
}
.postit-add > summary span { display: block; font-size: 20px; line-height: 1; }
.postit-add > summary::-webkit-details-marker { display: none; }
.postit-add > summary:hover { border-color: #FFE873; color: #FFE873; }
.postit-add[open] > summary { display: none; }
.postit-add form { width: 200px; padding: 8px; background: #FFE873; border-radius: 2px 2px 10px 2px; display: grid; gap: 6px; }
.postit-add textarea::placeholder { color: rgba(42, 36, 16, .5); }

/* profile: "Nálunk" overview */
.bs-us-chips { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bs-us-chips li { padding: 12px 14px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); display: grid; gap: 4px; }
.bs-us-chips li span { font-size: 12px; color: var(--muted); }
.bs-us-chips li strong { color: var(--muted); font-weight: 600; }
.bs-us-chips li.on { border-color: rgba(37, 244, 238, .45); background: rgba(37, 244, 238, .07); }
.bs-us-chips li.on strong { color: #fff; }
.bs-us .formrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.bs-us .formrow form { margin: 0; }

/* tablets and phones: the sidebar slides in from the left */
@media (max-width: 1023px) {
  .bs-side { translate: -100% 0; transition: translate .22s ease; box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .9); }
  .bs-side.is-open { translate: 0 0; }
  .bs-body { margin-left: 0; }
  .bs-top .navtoggle, .bs-top-brand { display: inline-flex; }
  .bs-top-brand span { display: none; }
  .bs-us-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bs-body { flex: 1 0 auto; min-height: 0; }
  .bs-top { padding: 10px 12px; gap: 8px; }
  .bs-gsearch input { height: 40px; font-size: 16px; }
  .bs-gresults { position: fixed; left: 8px; right: 8px; top: 62px; max-height: calc(100svh - 150px); }
  .bs-body .appmain { padding-left: 16px; padding-right: 16px; }
  .postit, .postit-add form { width: calc(50% - 4px); min-width: 130px; }
  .bs-events li { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .bs-spin, .bs-gsearch.is-busy > svg { animation: none; } .bs-side { transition: none; } }

/* ---------- Tagok / Figyeltek: cards ---------- */
.bs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bs-toolbar .filters { margin: 0; }
.bs-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.bs-seg a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 700; }
.bs-seg a b { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--raise); color: var(--muted); }
.bs-seg a[aria-current="page"] { background: #fff; color: #000; }
.bs-seg a[aria-current="page"] b { background: #000; color: #fff; }
.bs-headbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rcards { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .9); }
.rcard.is-live { border-color: rgba(254, 44, 85, .55); }
.rcard-head { display: flex; align-items: center; gap: 12px; }

.rcard-name { display: grid; min-width: 0; flex: 1; }
.rcard-name a { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard-name a:hover { color: var(--tt-cyan); }
.rcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rcard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.rcard-stats div { padding: 8px 6px; border-radius: 10px; background: var(--raise); text-align: center; }
.rcard-stats dt { font-size: 11px; color: var(--muted); }
.rcard-stats dd { margin: 2px 0 0; font: 800 18px var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.rcard-line { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: 14px; }
.rcard-line > span { color: var(--muted); }
.rcard-line strong { text-align: right; font-weight: 600; }
.rcard-act { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.rcard-act .btn { flex: 1; }
.bs-howto > summary, .bs-sumh { cursor: pointer; font-weight: 700; color: #fff; }
.bs-howto[open] > summary { margin-bottom: 8px; }
details.panel > summary.bs-sumh { font: 800 20px var(--display); margin-bottom: 4px; }
@media (max-width: 640px) {
  .rcards { grid-template-columns: 1fr; }
  .bs-toolbar { flex-direction: column; align-items: stretch; }
  .bs-seg a { flex: 1; justify-content: center; }
}

/* ---------- two-step sign-in ---------- */
.bs-side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.bs-side-link:hover, .bs-side-link[aria-current="page"] { background: var(--raise); color: #fff; }
.mfa-setup { max-width: 560px; }
.mfa-setup .panel { margin: 14px 0 0; padding: 18px; }
.mfa-pk { display: grid; gap: 10px; margin: 6px 0 14px; }
.mfa-list { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.mfa-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--raise); }
.mfa-list form { margin: 0; }
.mfa-steps { padding-left: 20px; display: grid; gap: 14px; }
.mfa-qr { width: 200px; max-width: 70vw; margin: 10px 0; padding: 6px; background: #fff; border-radius: 10px; }
.mfa-qr svg { display: block; width: 100%; height: auto; }
.mfa-alt { margin: 14px 0; }
.mfa-alt > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.mfa-alt[open] > summary { margin-bottom: 10px; }
.authbox .linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font: 14px var(--text); padding: 0; text-decoration: underline; }

/* ---------- TikTok profile pictures (app/avatars.php); initials show behind / instead ---------- */
.ava-img { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--tt-cyan), var(--tt-pink)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); vertical-align: middle; }
.ava-img::before { content: attr(data-initials); font: 800 15px var(--display); color: #fff; text-shadow: none; }
.ava-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ava-sm { width: 30px; height: 30px; }
.ava-sm::before { font-size: 11px; }
.ava-lg { width: 64px; height: 64px; }
.ava-lg::before { font-size: 22px; }
.bs-h1-ava { display: flex; align-items: center; gap: 16px; }
.cand-name { display: inline-flex; align-items: center; gap: 10px; }
.rcard.is-live .rcard-ava { box-shadow: 0 0 0 2px var(--tt-pink); }

/* ---------- PKTOK recruits on Jelöltek ---------- */
.tag-pktok { background: linear-gradient(90deg, #7B2FF7, #F107A3) !important; color: #fff !important; font-weight: 800; letter-spacing: .03em; }
.bs-pktok > summary { list-style: none; display: flex; align-items: center; gap: 10px; }
.bs-pktok > summary::-webkit-details-marker { display: none; }
.bs-pktok > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: rotate .2s; }
.bs-pktok[open] > summary::after { rotate: 180deg; }
.bs-pktok[open] > summary { margin-bottom: 8px; }
.pk-money { margin-top: 4px; } .pk-money strong { color: #fff; }
.pk-stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 8px 0 4px; }
.pk-stats div { padding: 6px 4px; border-radius: 8px; background: var(--raise); text-align: center; }
.pk-stats dt { font-size: 10.5px; color: var(--muted); }
.pk-stats dd { margin: 1px 0 0; font: 800 15px var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.pk-stats small { font: 600 11px var(--text); color: var(--muted); }
@media (max-width: 900px) { .pk-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pk-line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.pk-line strong { color: #fff; font-variant-numeric: tabular-nums; }
