/* ===========================================================================
   Epiczone.sk — PUBLIC BAN LIST (standalone neon-blue theme)
   Self-contained: does NOT depend on the admin panel's style.css.
   Everything is namespaced .bl-* so it can be as flashy as it likes.
   =========================================================================== */

:root {
    /* Ice / steel — a cool, desaturated blue-grey palette. Low-neon and clean:
       the accent is a soft ice-blue, not an electric cyan. */
    --bg:      #080d16;
    --bg-2:    #0e1622;
    --ink:     #eef3fa;
    --muted:   #93a7bd;
    --blue:    #5f93bf;
    --cyan:    #8fbcd6;
    --deep:    #3a6ea0;
    --line:    rgba(143,188,214,.14);
    --line-2:  rgba(143,188,214,.28);
    --glass:   rgba(13,20,33,.55);
    --glass-2: rgba(18,28,46,.72);
    /* EVIP+ gold — the one colour reserved for the paid perk, so it never reads
       as just another nav entry. (store.css repeats it for the admin theme.) */
    --evip:    #ffd24c;

    --f-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --f-ui:      'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --f-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* ---------- Custom scrollbar (cyan glow) ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(143,188,214,.45) #0e1622; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0e1622; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue), var(--cyan));
    border-radius: 10px; border: 3px solid #0e1622; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan); border: 3px solid #0e1622; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: #0e1622; }

.bl {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-ui);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

.bl a { color: var(--cyan); text-decoration: none; }
.bl-mono  { font-family: var(--f-mono); font-size: .85em; letter-spacing: -.2px; color: #c3d3e3; }
.bl-muted { color: var(--muted); }

/* ---------- Animated atmosphere ---------- */
.bl-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.bl-aurora {
    position: absolute; inset: -25%;
    background:
        radial-gradient(40% 50% at 20% 25%, rgba(95,147,191,.17), transparent 60%),
        radial-gradient(38% 45% at 82% 18%, rgba(143,188,214,.12), transparent 60%),
        radial-gradient(45% 55% at 65% 90%, rgba(58,110,160,.15), transparent 60%);
    filter: blur(26px);
    /* static: a large blurred layer is the costliest thing to composite every frame;
       the drifting smoke carries the motion instead */
}

/* Static grid (no drift) — fully cached, ~0% GPU, and no loop-seam pulse/flicker.
   Edge fade is a static vignette on ::after. */
.bl-grid {
    position: absolute; inset: 0; overflow: hidden;
}
.bl-grid::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(143,188,214,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143,188,214,.045) 1px, transparent 1px);
    background-size: 54px 54px;
}
.bl-grid::after {                      /* static edge fade */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 30%, transparent 38%, var(--bg) 88%);
}

/* ---------- Header ---------- */
.bl-top {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 26px;
    /* frosted glass — a calm blur of the static backdrop with a hairline underline;
       the heavy drop-shadow/highlight is gone for a quieter, minimal bar */
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 55%),
        linear-gradient(180deg, rgba(8,17,32,.55), rgba(5,11,22,.42));
    backdrop-filter: blur(11px) saturate(1.15);
    -webkit-backdrop-filter: blur(11px) saturate(1.15);
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 2px 14px rgba(0,0,0,.22);
}
.bl-topright { display: flex; align-items: center; gap: 14px; }
/* language switcher — click-to-open dropdown (native <details>) */
.langs { position: relative; display: inline-block; }
.lang-trigger {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
    padding: 5px 10px 5px 8px; border-radius: 10px;
    border: 1px solid var(--line-2); background: rgba(143,188,214,.05);
    transition: background .15s ease, border-color .15s ease;
}
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger:hover { background: rgba(143,188,214,.11); border-color: var(--cyan); }
.lang-trigger .fi {
    width: 26px; height: 18px; border-radius: 3px; overflow: hidden; flex: 0 0 auto;
    background-size: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.1);
}
.lang-caret { font-size: 9px; color: var(--muted); transition: transform .18s ease, color .18s ease; }
.langs[open] .lang-trigger { background: rgba(143,188,214,.13); border-color: var(--cyan); }
.langs[open] .lang-caret { transform: rotate(180deg); color: var(--cyan); }

.lang-menu {
    position: absolute; top: calc(100% + 7px); right: 0; z-index: 80;
    display: flex; flex-direction: column; gap: 2px; min-width: 178px; padding: 6px;
    border: 1px solid var(--line-2); border-radius: 13px;
    background: rgba(9,17,31,.98);
    box-shadow: 0 18px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
    animation: lang-pop .16s ease both;
}
@keyframes lang-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-opt {
    display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px;
    color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: background .13s ease, color .13s ease;
}
.lang-opt .fi {
    width: 27px; height: 19px; border-radius: 3px; overflow: hidden; flex: 0 0 auto;
    background-size: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.lang-name { flex: 1 1 auto; }
.lang-check { color: var(--cyan); font-size: 13px; font-weight: 700; }
.lang-opt:hover { background: rgba(143,188,214,.1); color: var(--ink); }
.lang-opt.is-active { background: rgba(143,188,214,.14); color: var(--ink); }
.lang-opt.is-active .fi { box-shadow: 0 0 0 2px var(--cyan); }
@media (prefers-reduced-motion: reduce) { .lang-menu { animation: none; } .lang-caret { transition: none; } }

/* ---------- Staff login (public "bl" skin) ---------- */
.bl-auth-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.bl-auth-card {
    position: relative; width: 400px; max-width: 100%;
    padding: 0 30px 26px; text-align: center; border-radius: 18px;
    animation: bl-rise .55s .05s cubic-bezier(.2,.7,.2,1) both;
}
.bl-auth-card::before {                 /* glowing cyan header bar */
    content: ""; display: block; height: 5px; margin: 0 -30px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 0 18px rgba(143,188,214,.45);
}
.bl-auth-top { display: flex; justify-content: flex-end; padding: 13px 0 0; }
.bl-auth-mark { display: block; padding: 8px 0 2px; }
.bl-auth-mark img {
    width: 100%; max-width: 208px; height: auto; display: block; margin: 0 auto;
    filter: drop-shadow(0 0 12px rgba(143,188,214,.4));
    transition: filter .2s ease, transform .2s ease;
}
.bl-auth-mark:hover img { filter: drop-shadow(0 0 17px rgba(143,188,214,.62)); transform: translateY(-1px); }
.bl-auth-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; margin: 6px 0 22px;
    font-family: var(--f-display); font-size: 11px; font-weight: 700;
    letter-spacing: 2.6px; text-transform: uppercase; color: var(--cyan);
}
.bl-auth-eyebrow .ico { opacity: .85; }
.bl-auth-actions { display: flex; flex-direction: column; gap: 11px; }
.bl-auth-actions .bl-btn {
    width: 100%; gap: 9px; text-transform: none; letter-spacing: .2px;
    font-size: 15px; padding: 13px 16px; border-radius: 11px;
}
.bl-auth-discord { color: #fff; background: #5865f2; box-shadow: 0 8px 22px rgba(88,101,242,.4); }
.bl-auth-discord:hover { background: #4a57e0; box-shadow: 0 11px 28px rgba(88,101,242,.55); }
.bl-auth-steam { color: #fff; background: #1b2838; border-color: #2a475e; }
.bl-auth-steam:hover { background: #223247; border-color: #34567a; }
.bl-auth-foot { margin-top: 20px; display: flex; justify-content: center; }
.bl-auth-banlink {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; color: var(--cyan);
    border: 1px solid var(--line); background: rgba(143,188,214,.05);
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .12s ease;
}
.bl-auth-banlink:hover { border-color: var(--cyan); background: rgba(143,188,214,.12); transform: translateY(-1px); }
.bl-auth-banlink .ico { filter: drop-shadow(0 0 6px rgba(143,188,214,.3)); }

/* flash messages on the login card */
.bl .flash {
    padding: 10px 13px; border-radius: 10px; margin: 0 0 12px;
    font-size: 13px; border: 1px solid transparent; text-align: left;
}
.bl .flash-success { background: rgba(125,220,78,.1);  border-color: rgba(125,220,78,.5);  color: #c4f0a8; }
.bl .flash-error   { background: rgba(226,59,59,.1);   border-color: rgba(226,59,59,.55);  color: #ffb9b9; }
.bl .flash-info    { background: rgba(95,147,191,.12); border-color: rgba(95,147,191,.5);   color: #bcd8ff; }

.bl-brand { display: flex; align-items: center; gap: 14px; }
.bl-logo {
    height: 34px; width: auto; display: block;
    filter: drop-shadow(0 0 6px rgba(143,188,214,.22));
}
.bl-brandtag {
    font-family: var(--f-ui); font-size: 12px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted);
    padding-left: 14px; border-left: 1px solid var(--line-2);
}
@keyframes bl-pulse { 50% { box-shadow: 0 0 28px rgba(143,188,214,.85); } }

/* ---------- Signature social icons (cursor-hover glow) ---------- */
.bl-social {
    display: inline-flex; align-items: center; color: var(--muted); opacity: .85;
    transition: color .18s ease, transform .18s ease, filter .18s ease, opacity .18s ease;
}
.bl-social:hover {
    color: var(--cyan); opacity: 1;
    transform: translateY(-1px) scale(1.06);
    filter: drop-shadow(0 0 5px rgba(143,188,214,.5));
}

/* ---------- Buttons ---------- */
.bl-btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--f-ui); font-weight: 600; font-size: 15px;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 10px 18px; border-radius: 8px; cursor: pointer;
    border: 1px solid transparent; transition: all .16s ease;
}
.bl-btn-primary {
    color: var(--bg);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 2px 10px rgba(95,147,191,.22);
}
.bl-btn-primary:hover { box-shadow: 0 4px 15px rgba(143,188,214,.35); transform: translateY(-1px); }
.bl-btn-ghost {
    color: var(--ink); background: rgba(143,188,214,.05);
    border-color: var(--line);
}
.bl-btn-ghost:hover { background: rgba(143,188,214,.11); border-color: var(--line-2); }
/* square icon-only button (admin panel / logout in the top bar) */
.bl-btn .ico { flex: 0 0 auto; }
.bl-btn-iconly { padding: 9px; }

/* logged-in staff chip in the top bar (avatar + name + role) */
.bl-user { display: flex; align-items: center; gap: 10px; }
.bl-user-av {
    width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
    border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.bl-user-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bl-user-name { font-size: 14px; font-weight: 700; color: var(--ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Steam logins: the name glows cyan and links to the Steam profile. */
.bl-user-name.is-steam { color: var(--cyan); text-shadow: 0 0 8px rgba(143,188,214,.55); transition: text-shadow .2s ease, color .2s ease; }
.bl-user-name.is-steam:hover { color: #dbe8f2; text-shadow: 0 0 14px rgba(143,188,214,.95); }
.bl-user-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

@media (max-width: 620px) {
    .bl-user-meta { display: none; }          /* keep just the avatar on narrow screens */
}

/* ---------- Layout ---------- */
.bl-wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }

/* ---------- Sidebar rail ---------- */
.bl-shell { position: relative; z-index: 1; display: flex; align-items: flex-start; min-height: 100vh; }

.bl-side {
    position: sticky; top: 0; align-self: flex-start;
    flex: 0 0 240px; width: 240px; height: 100vh;
    display: flex; flex-direction: column; gap: 4px;
    padding: 22px 16px;
    /* liquid glass rail — frosted blur of the static grid/aurora, top highlight, deep
       tint (cheap now the background is static) */
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 18%),
        linear-gradient(180deg, rgba(8,17,32,.55), rgba(5,11,22,.46));
    backdrop-filter: blur(11px) saturate(1.15);
    -webkit-backdrop-filter: blur(11px) saturate(1.15);
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: 2px 0 16px rgba(0,0,0,.2);
}
.bl-side-brand { display: flex; align-items: center; justify-content: center; padding: 6px 6px 20px; }
.bl-side-brand .bl-logo {
    width: 100%; max-width: 166px; height: auto;
    filter: drop-shadow(0 0 6px rgba(143,188,214,.2));
    transition: filter .18s ease, transform .18s ease;
}
.bl-side-brand:hover .bl-logo { filter: drop-shadow(0 0 10px rgba(143,188,214,.42)); transform: translateY(-1px); }

.bl-side-nav { display: flex; flex-direction: column; gap: 4px; }
.bl-side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 13px; border-radius: 9px;
    color: var(--muted); font-weight: 500; font-size: 15px;
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease;
}
.bl-side-link .ico { color: inherit; opacity: .85; transition: color .15s ease, opacity .15s ease; flex: 0 0 auto; }
.bl-side-link:hover { background: rgba(143,188,214,.06); color: var(--ink); }
.bl-side-link:hover .ico { color: var(--cyan); opacity: 1; }
.bl-side-link.is-active {
    background: rgba(143,188,214,.09);
    box-shadow: inset 2px 0 0 var(--cyan);
    color: #eef3fa; font-weight: 600;
}
.bl-side-link.is-active .ico { color: var(--cyan); opacity: 1; }

/* ---------- EVIP+ nav entry (gold, softly glowing) ----------
   The only link in the rail that sells something, so it is the only one that
   is gold and lit. The glow is a STATIC box-shadow plus one pseudo-element
   whose OPACITY breathes — opacity is composited on the GPU, so this costs
   nothing per frame. Deliberately not an animated box-shadow/filter: those
   repaint every frame and were the cause of the earlier idle-GPU problem. */
.bl-side-link.is-evip {
    position: relative;
    color: var(--evip);
    font-weight: 600;
    border-color: rgba(255,210,76,.28);
    background: linear-gradient(90deg, rgba(255,210,76,.10), rgba(255,210,76,.02));
    box-shadow: 0 0 10px rgba(255,210,76,.13);
    text-shadow: 0 0 10px rgba(255,210,76,.35);
}
.bl-side-link.is-evip .ico {
    color: var(--evip);
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255,210,76,.55));
}

/* The breathing halo. Sits behind the label (z-index/pointer-events) so it can
   never intercept the click. */
.bl-side-link.is-evip::after {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 16px 2px rgba(255,210,76,.30);
    opacity: .45;
    pointer-events: none;
    animation: evipBreathe 3.2s ease-in-out infinite;
}
@keyframes evipBreathe {
    0%, 100% { opacity: .28; }
    50%      { opacity: .75; }
}

.bl-side-link.is-evip:hover {
    color: #fff0bf;
    background: linear-gradient(90deg, rgba(255,210,76,.18), rgba(255,210,76,.05));
    border-color: rgba(255,210,76,.5);
}
.bl-side-link.is-evip:hover .ico { color: #fff0bf; }

/* Active (you are on the store page): keep the gold rather than the cyan rail. */
.bl-side-link.is-evip.is-active {
    background: rgba(255,210,76,.14);
    box-shadow: inset 2px 0 0 var(--evip), 0 0 12px rgba(255,210,76,.18);
    color: #fff3c9;
}
.bl-side-link.is-evip.is-active .ico { color: var(--evip); }

/* Respect a reduced-motion preference: keep the glow, drop the breathing. */
@media (prefers-reduced-motion: reduce) {
    .bl-side-link.is-evip::after { animation: none; opacity: .45; }
}

.bl-side-sep { height: 1px; margin: 12px 6px; background: var(--line-2); }
.bl-side-foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }

.bl-main { flex: 1 1 auto; min-width: 0; }
.bl-main .bl-top { justify-content: flex-end; }

@media (max-width: 860px) {
    .bl-shell { flex-direction: column; }
    .bl-side {
        position: static; flex-basis: auto; width: 100%; height: auto;
        flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
        padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--line);
    }
    .bl-side-brand { padding: 0 8px 0 0; }
    .bl-side-brand .bl-logo { max-width: 130px; height: auto; }
    .bl-side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .bl-side-sep { display: none; }
    .bl-side-foot { flex-direction: row; gap: 6px; margin-top: 0; margin-left: auto; }
    .bl-side-link { padding: 8px 11px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.bl-hero {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
    margin-bottom: 34px;
    animation: bl-rise .6s ease both;
}
.bl-hero-logo {
    width: 100%; max-width: 300px; height: auto; display: block;
    filter: drop-shadow(0 0 10px rgba(143,188,214,.2));
    transition: filter .18s ease;
}

/* ---------- Logo → epiczone.sk link (hero) ----------
   The wordmark links to epiczone.sk; it lifts and brightens slightly on hover. */
.bl-logolink {
    display: inline-flex; justify-content: center;
    text-decoration: none; width: 100%; max-width: 300px;
    transition: transform .18s ease;
}
.bl-logolink:hover { transform: translateY(-1px); }
.bl-logolink:hover .bl-hero-logo { filter: drop-shadow(0 0 13px rgba(143,188,214,.5)); }
.bl-appeals { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.bl-eyebrow {
    font-family: var(--f-ui); text-transform: uppercase; letter-spacing: 4px;
    font-size: 13px; font-weight: 600; color: var(--cyan);
}
.bl-title {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(40px, 8vw, 76px); line-height: 1; margin: 8px 0 12px;
    letter-spacing: -1px; position: relative; color: #eef3fa;
    text-shadow: 0 0 16px rgba(143,188,214,.18);
}
.bl-sub { color: #b7c6da; max-width: 50ch; margin: 0; font-size: 16px; }

.bl-counters { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.bl-counter {
    text-align: center; padding: 16px 24px;
    border: 1px solid var(--line); border-radius: 16px;
    background: rgba(11,22,40,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    display: flex; align-items: baseline; gap: 12px;
}
.bl-counter-soft { border-color: var(--line); box-shadow: 0 0 18px rgba(0,0,0,.25); }
.bl-counter-soft .bl-counter-num { color: #a9bcd2; text-shadow: none; }
.bl-counter-ico { align-self: center; display: inline-flex; color: var(--cyan); }
.bl-counter-ico .ico { filter: drop-shadow(0 0 8px rgba(143,188,214,.45)); }
.bl-counter-soft .bl-counter-ico { color: #a9bcd2; }
.bl-counter-soft .bl-counter-ico .ico { filter: none; }
/* all counters share one size + weight (active / total / mutes alike) */
.bl-counter-num {
    font-family: var(--f-display); font-weight: 800; font-size: 46px; line-height: 1;
    color: var(--cyan); text-shadow: 0 0 12px rgba(143,188,214,.28);
}
.bl-counter-label {
    font-family: var(--f-ui); text-transform: uppercase; letter-spacing: 1.5px;
    font-size: 14px; color: var(--muted); text-align: left; line-height: 1.05;
}

/* LIVE pill next to the eyebrow */
.bl-live {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: 8px; padding: 2px 9px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    color: #7dffb0; background: rgba(80,230,140,.12); border: 1px solid rgba(80,230,140,.4);
    vertical-align: middle;
}
.bl-live::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #4ee88c; box-shadow: 0 0 8px #4ee88c;
    animation: bl-livepulse 1.8s ease-in-out infinite;
}
@keyframes bl-livepulse { 50% { opacity: .3; } }

.bl-perm {
    display: inline-block; color: var(--cyan); font-weight: 700;
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
    padding: 3px 11px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(143,188,214,.1);
}
.bl-pill {
    display: inline-block; white-space: nowrap;
    font-family: var(--f-mono); font-size: 12px; color: #c3d3e3;
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--glass);
}
/* Soft type/kind pill (ban/mute "TYP" cell) — clean rounded chip with an icon. */
.bl-typepill {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 4px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; color: var(--ink);
    background: rgba(143,188,214,.06); border: 1px solid var(--line);
}
.bl-typepill .ico { color: var(--cyan); opacity: .9; flex: 0 0 auto; }

/* ---------- Toolbar ---------- */
.bl-toolbar {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 18px; flex-wrap: wrap;
    animation: bl-rise .6s .05s ease both;
}
.bl-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
/* Center the search bar wherever it is the toolbar's sole content (banlist
   bans/mutes, hltv). Toolbars that also carry a results count / tabs keep those
   pinned to the right via the toolbar's space-between. */
.bl-toolbar > .bl-filters:only-child { width: 100%; }
.bl-search { position: relative; }
.bl-search-ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%) rotate(0);
    color: var(--cyan); font-size: 15px; pointer-events: none; opacity: .8;
}
.bl-input {
    font-family: var(--f-ui); font-size: 15px; color: var(--ink);
    background: var(--glass-2); border: 1px solid var(--line);
    border-radius: 8px; padding: 11px 14px; outline: none; min-width: 240px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.bl-search .bl-input { padding-left: 38px; }
.bl-input::placeholder { color: #64788f; }
.bl-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(143,188,214,.14); }
.bl-select { min-width: 170px; cursor: pointer; }
.bl-count { font-family: var(--f-mono); font-size: 14px; color: var(--muted); white-space: nowrap; }

/* ---------- Expandable ban rows ---------- */
.bl-row .bl-caret {
    display: inline-block; margin-right: 8px; color: var(--cyan);
    font-size: 10px; opacity: .65; transition: transform .18s ease, opacity .18s ease;
}
.bl-row.is-open .bl-caret { transform: rotate(90deg); opacity: 1; }
.bl-row.is-open { background: rgba(143,188,214,.08); }
.bl-detail td { white-space: normal; }

/* ---------- Panel + table ---------- */
.bl-panel {
    border: 1px solid var(--line); border-radius: 16px;
    background: rgba(11,22,40,.85);
    box-shadow: 0 12px 34px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
    overflow: hidden; animation: bl-rise .6s .1s ease both;
}
.bl-tablewrap { overflow-x: auto; }
.bl-table { width: 100%; border-collapse: collapse; }
.bl-table th, .bl-table td { padding: 14px 16px; text-align: left; white-space: nowrap; }
.bl-table thead th {
    font-family: var(--f-ui); text-transform: uppercase; letter-spacing: 1.4px;
    font-size: 12px; font-weight: 600; color: var(--cyan);
    background: rgba(95,147,191,.07);
    border-bottom: 1px solid var(--line-2);
}
.bl-table tbody tr {
    border-bottom: 1px solid rgba(143,188,214,.08);
    animation: bl-row .5s ease both;
    /* cap the stagger at 12 rows: beyond that the delay (and the held opacity:0
       composited layers) just scale with row count for no visible benefit */
    animation-delay: calc(min(var(--i, 0), 12) * 45ms + .15s);
    position: relative;
}
.bl-table tbody tr:last-child { border-bottom: none; }
.bl-table tbody tr:hover { background: rgba(143,188,214,.07); box-shadow: inset 3px 0 0 var(--cyan); }
.bl-table td { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.bl-player { font-weight: 600; color: #f2f6fb; }
/* compact ban/mute lists — smaller row text (headers + .bl-date keep their own size) */
.bl-table.bl-compact { font-size: 13px; }
.bl-date { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .1px; }

/* weapon kill-icon (HLstatsX weapon tables) — real image, else synthesised SVG */
.bl-wicon { display: inline-flex; align-items: center; justify-content: center; cursor: help; }
.bl-wicon .wico { color: var(--cyan); filter: drop-shadow(0 0 5px rgba(143,188,214,.35)); }
.bl-table tbody tr:hover .bl-wicon .wico { color: #dbe8f2; }
.bl-wicon .wimg { height: 22px; width: auto; max-width: 130px; vertical-align: middle; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 0 4px rgba(143,188,214,.3)); }

/* player / admin avatar in name cells */
.namecell { display: inline-flex; align-items: center; gap: 9px; vertical-align: middle; }
.pfp {
    border-radius: 50%; object-fit: cover; flex: 0 0 auto;
    border: 1px solid var(--line-2); background: var(--glass-2);
    box-shadow: 0 0 8px rgba(143,188,214,.25);
}

@keyframes bl-row { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Steam-profile link (hlstats player rows) */
.bl-steamlink {
    display: inline-flex; align-items: center; margin-left: 7px; vertical-align: middle;
    color: var(--muted); opacity: .7;
    transition: color .15s ease, opacity .15s ease, transform .15s ease;
}
.bl-steamlink:hover { color: var(--cyan); opacity: 1; transform: translateY(-1px); }

.bl-empty {
    padding: 46px; text-align: center; color: var(--muted);
    font-family: var(--f-display); letter-spacing: 2px; text-transform: uppercase; font-size: 15px;
}

/* ---------- Badges ---------- */
.bl-badge {
    font-family: var(--f-ui); font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 1.2px;
    padding: 4px 12px; border-radius: 999px; display: inline-block;
    border: 1px solid currentColor;
}
.bl-badge-on {
    color: var(--cyan); background: rgba(143,188,214,.1);
    /* static glow — animating box-shadow repaints every online badge each frame */
    box-shadow: 0 0 8px rgba(143,188,214,.22);
}
.bl-badge-off { color: var(--muted); background: rgba(111,139,181,.1); }

/* ---------- Pagination ---------- */
.bl-pages { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; padding: 18px; }
.bl-page {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--f-mono); font-size: 14px; color: var(--ink);
    border: 1px solid var(--line); border-radius: 8px; background: rgba(143,188,214,.05);
    transition: all .15s ease;
}
.bl-page:hover { border-color: var(--line-2); background: rgba(143,188,214,.1); }
.bl-page.is-active {
    color: var(--bg); background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-color: transparent; box-shadow: 0 2px 10px rgba(143,188,214,.3);
}
.bl-page.is-off { opacity: .35; pointer-events: none; }
.bl-pgap { color: var(--muted); align-self: center; padding: 0 2px; }

/* ---------- Footer ---------- */
.bl-foot {
    text-align: center; color: var(--muted); margin-top: 30px;
    font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}

/* ---------- Entrances ---------- */
@keyframes bl-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Accessibility ---------- */
.bl :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .bl *, .bl *::before, .bl *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .bl-top { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .bl-wrap { padding: 26px 16px 60px; }
    .bl-hero { align-items: center; }
    .bl-hero-logo { max-width: 220px; }
    .bl-counter { align-self: stretch; justify-content: center; }
    .bl-toolbar { flex-direction: column; align-items: stretch; }
    .bl-filters { flex-direction: column; }
    .bl-input, .bl-select { min-width: 0; width: 100%; }
}
@media (max-width: 520px) {
    .bl-top { justify-content: center; }
    .bl-topright { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .bl-counters { flex-direction: column; }
    .bl-counter { flex-direction: row; align-items: baseline; gap: 8px; }
    .bl-table th, .bl-table td { padding: 10px 12px; }
}

/* ---------- Admin identity avatar + provider badge ---------- */
.idavatar { position: relative; display: inline-flex; flex: 0 0 auto; }
.idavatar img { border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(143,188,214,.25); }
.idbadge {
    position: absolute; right: -4px; bottom: -4px;
    width: 15px; height: 15px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 0 0 2px #0e1622;
}
.idbadge .ico { width: 10px; height: 10px; }
.idbadge.is-steam   { background: #1b2838; }
.idbadge.is-discord { background: #5865f2; }

/* Country flag after a player name */
.player-flag { margin-left: 6px; border-radius: 2px; vertical-align: middle; }

/* Ban-source badge before the player avatar */
.srcbadge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    margin-right: 7px; color: #fff; vertical-align: middle; flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.srcbadge .ico { width: 12px; height: 12px; }
.srcbadge.is-web    { background: #5f93bf; }
.srcbadge.is-server { background: #2bb673; }

/* =========================================================================
   Fluent skin — Segoe UI type, acrylic panels, rounder corners, smooth hover
   ========================================================================= */
.bl-panel {
    border-radius: 16px;
    /* opaque gradient, no backdrop-filter (it would re-blur over the moving grid each frame) */
    background: linear-gradient(160deg, rgba(16,30,54,.88), rgba(8,17,32,.82));
    border: 1px solid rgba(255,255,255,.07);
}
.bl-btn {
    border-radius: 9px;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.bl-btn:hover  { transform: translateY(-1px); }
.bl-btn:active { transform: translateY(0); }
.bl-input, .bl-select { border-radius: 9px; }
.bl-tablewrap { border-radius: 14px; overflow: hidden; }
.bl-counter { border-radius: 14px; }

/* HLstats Top Players rank */
.bl-rank {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2ch; font-family: var(--f-display); font-weight: 800;
    font-size: 18px; color: var(--muted);
}
.bl-rank.is-1 { color: #ffd54a; text-shadow: 0 0 12px rgba(255,213,74,.55); }
.bl-rank.is-2 { color: #cfe2ff; text-shadow: 0 0 12px rgba(207,226,255,.45); }
.bl-rank.is-3 { color: #ff9d5c; text-shadow: 0 0 12px rgba(255,157,92,.45); }

/* HLstats sections nav + tracking summary */
.hl-sections { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.hl-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: 14px;
    background: rgba(143,188,214,.06); border: 1px solid var(--line-2);
    transition: background .15s ease, box-shadow .15s ease, transform .1s ease, color .15s ease;
}
.hl-chip .ico { color: var(--cyan); }
.hl-chip:hover { background: rgba(143,188,214,.11); border-color: var(--line-2); transform: translateY(-1px); color: #eef3fa; }
.hl-summary {
    margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; text-align: center;
    color: #b7c6da; font-size: 15px; line-height: 1.6;
    background: linear-gradient(180deg, rgba(143,188,214,.08), rgba(143,188,214,.02));
    border: 1px solid var(--line-2);
}
.hl-summary strong { color: var(--cyan); font-weight: 800; }

/* ---------- Detail popup (click a ban / mute row) ---------- */
.bl-modal-backdrop {
    position: fixed; inset: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(3, 8, 16, .72); backdrop-filter: blur(7px);
    animation: bl-modal-fade .15s ease;
}
.bl-modal-backdrop[hidden] { display: none; }
.bl-modal {
    position: relative; width: 100%; max-width: 640px; max-height: 86vh; overflow: auto;
    background: linear-gradient(180deg, var(--glass-2), var(--glass));
    border: 1px solid var(--line-2); border-radius: 16px; padding: 24px 26px 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 40px rgba(143,188,214,.12);
    animation: bl-modal-pop .18s ease;
}
.bl-modal-close {
    position: absolute; top: 10px; right: 16px; background: none; border: none;
    color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; transition: color .15s ease;
}
.bl-modal-close:hover { color: var(--cyan); }
.bl-modal-title {
    margin: 0 0 18px; padding-right: 28px; font-family: var(--f-display);
    font-size: 19px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; gap: 10px;
}
.bl-modal-title .ico { color: var(--cyan); }
@keyframes bl-modal-fade { from { opacity: 0; } }
@keyframes bl-modal-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .bl-modal-backdrop, .bl-modal { animation: none; } }

/* Subtle icons in ban/mute table headers */
.bl-table thead th .ico { vertical-align: -2px; margin-right: 6px; opacity: .55; }
.bl-table thead th { white-space: nowrap; }

/* Click-to-sort column headers */
.bl-table th.sortable { cursor: pointer; user-select: none; }
.bl-table th.sortable:hover { color: var(--cyan); }
.bl-table .sort-arrow { margin-left: 5px; font-size: 10px; opacity: .4; }
.bl-table .sort-arrow::after { content: '\2195'; }
.bl-table th.is-sorted .sort-arrow { opacity: 1; color: var(--cyan); }
.bl-table th.is-sorted[data-dir="asc"]  .sort-arrow::after { content: '\2191'; }
.bl-table th.is-sorted[data-dir="desc"] .sort-arrow::after { content: '\2193'; }

/* ---------- Mobile: stacked "card" tables ----------
   HLstatsX tables run to 8–11 columns; on a phone they overflowed the screen and
   you had to scroll the table sideways, so a row never read "all in one" like on
   desktop. Below this breakpoint each row becomes a card and every cell shows its
   column label (set by sorttable.js → data-label), so the whole row fits the
   screen width and you only scroll down. */
@media (max-width: 700px) {
    .bl-tablewrap { overflow: visible; border-radius: 0; }
    .bl-table thead { display: none; }                /* labels carry the headers */
    .bl-table, .bl-table tbody, .bl-table tr, .bl-table td { display: block; width: 100%; }
    /* keep [hidden] rows hidden — the display:block above otherwise overrides the
       HTML hidden attribute and leaks the banlist's .bl-detail popup-source rows
       inline on phones (they only feed the click-to-open modal). */
    .bl-table tbody tr[hidden] { display: none; }

    .bl-table tbody tr {
        border: 1px solid var(--line); border-radius: 14px;
        background: rgba(143,188,214,.03); margin: 0 12px 12px; padding: 4px 2px;
    }
    .bl-table tbody tr:hover { background: rgba(143,188,214,.06); box-shadow: none; }
    .bl-table tbody tr:first-child { margin-top: 12px; }

    .bl-table td {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        padding: 10px 16px; text-align: right; white-space: normal; max-width: none;
        overflow: visible; text-overflow: clip;
        border-bottom: 1px solid rgba(143,188,214,.08);
    }
    .bl-table tbody tr td:last-child { border-bottom: 0; }
    .bl-table td::before {
        content: attr(data-label);
        flex: 0 0 38%; text-align: left;
        font-family: var(--f-ui); font-weight: 600; font-size: 11px;
        text-transform: uppercase; letter-spacing: 1px; color: var(--cyan);
    }
    .bl-table td[data-label=""]::before { content: ""; flex-basis: 0; }
    .bl-table .bl-player { justify-content: flex-end; text-align: right; }
}

/* Advanced search panel (collapsible) */
.bl-banform { width: 100%; }
.bl-adv { border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(180deg, var(--glass-2), var(--glass)); }
.bl-adv > summary {
    list-style: none; cursor: pointer; user-select: none;
    padding: 10px 14px; font-family: var(--f-ui); font-weight: 600; font-size: 13px;
    color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.bl-adv > summary::-webkit-details-marker { display: none; }
.bl-adv > summary::after { content: '▾'; margin-left: auto; transition: transform .18s ease; }
.bl-adv[open] > summary::after { transform: rotate(180deg); }
.bl-adv > summary:hover { color: var(--ink); }
.bl-adv > summary .ico { color: var(--cyan); }
.bl-adv[open] > summary { border-bottom: 1px solid var(--line); }
.bl-adv-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px 18px; padding: 4px 0 0;
}
.bl-adv-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bl-adv-f .bl-input { min-width: 0; width: 100%; font-size: 14px; padding: 9px 12px; }
.bl-adv-f > span { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; display: flex; align-items: center; gap: 5px; color: var(--muted); }
.bl-adv-f > span .ico { opacity: .7; }
.bl-adv-actions { display: flex; gap: 10px; padding: 18px 0 2px; }
