/* =========================================================
   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); }
