/* ==========
   THEME VARS
========== */
[hidden] { display: none !important; }

:root {
  /* Shape */
  --r-card: 18px;
  --r-panel: 16px;
  --r-btn: 12px;
  --r-input: 12px;
  --r-chip: 999px;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --sidebar-w: 280px;
  --sidebar-w-compact: 108px;
  --rail-w: 64px;
  --sidebar-w-mobile: 108px;

  /* layout width */
  --content-max: 1680px;

  /* main padding (used for full-bleed footer) */
  --main-pad: 22px;

  /* radii (less "AI-uniform") */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  /* compatibility aliases (used by older snippets) */
  --card: var(--panel);
  --line: var(--border);
  --shadow-soft: 0 6px 18px rgba(0,0,0,.14);
  --shadow1: var(--shadow-soft);
  --accent: var(--accent1);

  /* dark defaults (orange+red) */
  --accent1: #ff6a1a;   /* orange */
  --accent2: #ff2b3a;   /* red */
  --accentGlow: 0 0 28px rgba(255, 43, 58, 0.22);

  /* Left menu icon sizes */
  --nav-ico-size: 21px;
  --nav-ico-size-play: 21px;
  --shadow2: 0 10px 30px rgba(0,0,0,.18);
}

:root[data-theme="dark"] {
  --bg0: #07080b;
  --bg1: #0b0d12;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.60);

  --panel: rgba(255,255,255,.045);
  --panel2: rgba(255,255,255,.06);

  --border: rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.12);

  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --shadow2: 0 10px 28px rgba(0,0,0,.50);
}


/* ==========
   BASE
========== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

:root[data-theme="dark"] body{
  background:
    radial-gradient(900px 380px at 18% -10%, rgba(255, 43, 58, .26), transparent 60%),
    radial-gradient(900px 380px at 75% 0%, rgba(255, 106, 26, .12), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-repeat: no-repeat;
  background-attachment: fixed;
}


a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

:focus-visible {
  outline: 2px solid rgba(255, 43, 58, .55);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ==========
   LAYOUT GRID
========== */
.app{
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--rail-w);
}

body.sidebar-compact .app{
  grid-template-columns: var(--sidebar-w-compact) 1fr var(--rail-w);
}

/* ==========
   SIDEBAR
========== */
.sidebar{
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  box-shadow: inset -1px 0 0 rgba(255,255,255,.02);

  /* socials pinned to the bottom */
  display: flex;
  flex-direction: column;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .sidebar{
    background: rgba(10,12,16,.42);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.sidebar__top{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px;
}

.brand{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.brand__mark{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    radial-gradient(90% 110% at 30% 20%, rgba(255, 43, 58, .35), transparent 60%),
    linear-gradient(180deg, rgba(255, 106, 26, .18), rgba(255, 43, 58, .12));
  border: 1px solid rgba(255, 43, 58, .28);
  box-shadow: var(--accentGlow);
  font-weight: 800;
  letter-spacing: .5px;
}

.brand__mark img{ width: 100%; height: 100%; object-fit: contain; display: block; border-radius: inherit; }

.brand__text{
  font-weight: 800;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* search (tylko gdy sidebar rozwinięty) */
.sidebar__search{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.sidebar__search svg{
  width: 18px;
  height: 18px;
}
.sidebar__search svg path{
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar__search input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.sidebar__search input::placeholder{ color: rgba(255,255,255,.40); }

body.sidebar-compact .sidebar__search{ display: none; }

/* nav */
.sidebar__nav{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;

  /* scrolling list (tooltips are rendered in <body> as fixed, so no clipping) */
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.nav-item{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}

.nav-item:hover{
  background: var(--panel);
  border-color: rgba(255,255,255,.08);
  transform: translateX(2px);
  color: var(--text);
}

.nav-ico{
  width: var(--nav-ico-size);
  height: var(--nav-ico-size);
  display: grid;
  place-items: center;
  color: currentColor;
}
.nav-ico svg{
  width: var(--nav-ico-size);
  height: var(--nav-ico-size);
}
/* Icons can be stroke- or fill-based – keep them crisp and inherit currentColor */
.nav-ico svg{ color: currentColor; }
.nav-ico svg *{ vector-effect: non-scaling-stroke; }

.nav-ico svg path,
.nav-ico svg circle,
.nav-ico svg rect,
.nav-ico svg line,
.nav-ico svg polyline,
.nav-ico svg polygon{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label{
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
}

/* tooltip (rendered in <body>, only in compact mode) */
.nav-tooltip{
  position: fixed;
  left: 0;
  top: 0;
  transform: translateY(-50%) scale(.98);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: color-mix(in srgb, var(--bg1) 88%, transparent);
  box-shadow: var(--shadow2);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .12s ease, transform .12s ease;
}
.nav-tooltip.is-visible{
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* multiline tooltip variant (used e.g. for VIP crown) */
.nav-tooltip.rail-tooltip{
  /* Right rail tooltip style: fit to content, consistent spacing */
  white-space: nowrap;
  width: max-content;
  max-width: 260px;
  line-height: 1.25;
  font-weight: 800;
  background: rgba(8,8,12,.92);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.95);
}

.nav-tooltip.rail-tooltip.is-multiline{
  white-space: pre-line;
  max-width: 280px;
}

.nav-item.is-active{
  color: var(--text);
}

/* ikona aktywna: czerwony/niebieski akcent */
.nav-item.is-active .nav-ico{
  color: var(--accent2);
}

/* czerwona/niebieska linia po LEWEJ stronie (jak FACEIT) */
.nav-item.is-active::before{
  content: "";
  position: absolute;
  left: -14px; /* do krawędzi sidebaru (przy padding 14px) */
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--accent2), var(--accent1));
  box-shadow: var(--accentGlow);
}

/* pionowa linia po PRAWEJ stronie aktywnej zakładki (jak w początkowej wersji) */
.nav-item.is-active::after{
  content: "";
  position: absolute;
  right: -14px; /* do krawędzi sidebaru (przy padding 14px) */
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 43, 58, .95), rgba(255, 106, 26, .75));
  box-shadow: 0 0 18px rgba(255, 43, 58, .18);
}

/* COMPACT SIDEBAR (ukrywa tekst i zwęża) */
body.sidebar-compact .brand__text{ display: none; }
body.sidebar-compact .nav-label{ display: none; }
body.sidebar-compact .nav-ext{ display: none; }

body.sidebar-compact .sidebar{
  /* w trybie compact: sidebar zostaje na miejscu, tylko robi się węższy */
  width: 100%;
  margin-left: 0;
  border-right: 1px solid var(--border);
  transition: border-color .18s ease;
}


body.sidebar-compact .nav-item:hover{ transform: none; }

/* w compact: ikonki na środku, bez "ciągnięcia" do lewej */
body.sidebar-compact .nav-item{
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
  gap: 0;
}

/* Active indicator stays visible in compact slice */
body.sidebar-compact .nav-item.is-active::before{
  left: -14px;
  top: 10px;
  bottom: 10px;
}

body.sidebar-compact .nav-item.is-active::after{
  right: -14px;
  top: 10px;
  bottom: 10px;
}


/* separatory / odstępy w menu */
.nav-sep{
  padding: 10px 12px;
  opacity: 1;
}
.nav-sep hr{
  border: 0;
  border-top: 1px solid var(--border2);
  margin: 0;
}
.nav-gap{ height: 10px; }

/* lekko większa ikonka "Graj" */
.nav-ico--play svg{
  width: var(--nav-ico-size-play);
  height: var(--nav-ico-size-play);
}

/* VIP: złota ikonka */
.nav-item--vip .nav-ico{ color: #f6c945; }
.nav-item--vip.is-active .nav-ico{ color: #f6c945; }
.nav-item--vip:hover{ color: var(--text); }

/* bottom social */
.sidebar__spacer{ display: none; }

/* domyślnie (menu rozwinięte): jedna linia */
.sidebar__social{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
  flex-wrap: nowrap;
}

/* hide sidebar scrollbar on webkit while keeping scroll ability */
.sidebar__nav::-webkit-scrollbar{ width: 8px; }
.sidebar__nav::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.08); border-radius: inherit; }

/* menu zwinięte: 2 wiersze (2x2) */
body.sidebar-compact .sidebar__social{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  justify-items: center;
}

@media (max-width: 860px){  .modes.servers-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sidebar__social{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    justify-items: center;
  }
}


.social{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.social:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent2) 26%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent2) 12%, transparent), var(--accentGlow);
}
.social svg{ width: 18px; height: 18px; }
.social svg path{
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

/* ==========
   MAIN / PAGES
========== */

.main{
  padding: var(--main-pad) var(--main-pad) 0;
  /* footer should stick to the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}



.page{
  display: none;
  width: 80%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: 40px;
  /* allow the footer to push to the bottom */
  flex: 1 0 auto;
}

/* Index (lista serwerów) ma być na 100% szerokości */
body[data-page="play"] .page{
  width: 100%;
  max-width: none;
}
body[data-page="play"] .home{
  max-width: none;
  margin: 0;
}

@media (max-width: 980px){
  .page{ width: 100%; }
}

@media (max-width: 980px){
  body[data-page="play"] .page{ width: 100%; }
}


.page.is-active{ display: block; }

.page-head{
  margin: 6px 2px 14px;
}

/* Sklep: wyrównaj nagłówek do układu kategorii (bez tych 2px przesunięcia) */
body[data-page="kup"] .page-head{
  margin-left: 0;
  margin-right: 0;
}
.page-head--center{
  text-align: center;
}
.page-head--center p{
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-head h1{
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: .2px;
}
.page-head p{
  margin: 0;
  color: var(--muted);
}

body[data-page="ranking"] .page-head .ranking-subdesc{ text-align:left; margin:10px 0 18px; }

/* ==========
   HOME
========== */
.home{
  max-width: var(--content-max);
  margin: 0 auto;
}

.banners{
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 16px;
}

.banner{
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 250px;
  box-shadow: var(--shadow-soft);
  background: var(--panel);
}

.banner__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 90% at 20% 30%, color-mix(in srgb, var(--accent2) 26%, transparent), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.20));
}

.banner__overlay--soft{
  background:
    radial-gradient(80% 90% at 20% 30%, color-mix(in srgb, var(--accent1) 18%, transparent), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.26));
}

.banner__content{
  position: relative;
  z-index: 2;
  padding: 24px;
  max-width: 80%;
}
.banner--side .banner__content{ max-width: 92%; }

/* Home side banner: przycisk na dole po lewej */
.banner--side .banner__content{
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: none;
  width: 100%;
}
.banner--side .banner__content .btn{
  margin-top: auto;
  align-self: flex-start;
}


/* Home main banner: tekst u góry, przyciski na dole po lewej, kropki na dole po prawej */
.banner--main .banner__content--main{
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: none;
  width: 100%;
}
.banner--main .banner__text{ max-width: 80%; }
.banner--main .banner__footer{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.banner--main .banner__footer .banner-dots{ margin-top: 0; justify-content: flex-end; }


.banner h1{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: .2px;
}
.banner h2{
  margin: 0 0 6px;
  font-size: 20px;
}
.banner p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.35;
}

.banner__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Home banner carousel dots (Admin-edytowane bannery) --- */
.banner-dots{
  margin-top: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.banner-dot{
  width: 8px;
  height: 8px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.banner-dot:hover{ transform: scale(1.08); }
.banner-dot.is-active{
  background: color-mix(in srgb, var(--accent2) 55%, rgba(255,255,255,.14));
  border-color: color-mix(in srgb, var(--accent2) 60%, rgba(255,255,255,.24));
}

/* ==========
   SECTION
========== */
.section{
  margin-top: 18px;
}
.section__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 12px;
}
.section__head h2{
  margin: 0;
  font-size: 18px;
}
.section__meta{
  color: var(--muted);
  font-size: 13px;
}

/* Serwery: wyróżnij liczbę online */
#serversStatusMeta{ font-size: 15px; }
#serversOnlineCount{
  font-weight: 800;
  color: rgba(76, 217, 100, .95);
}


/* ==========
   MODES GRID — 5 w rzędzie (desktop)
========== */
.modes{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}


/* Serwery: 4 kolumny */
.modes.servers-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mode-card{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow2);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.mode-card:hover{
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent2) 28%, transparent);
  box-shadow: var(--shadow2), 0 0 0 1px color-mix(in srgb, var(--accent2) 12%, transparent), var(--accentGlow);
}

.mode-card__thumb{
  height: 118px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mode-card__body{
  display: flex;
  gap: 12px;
  padding: 14px 14px 10px;
  align-items: flex-start;
}

.mode-ico{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent2) 22%, transparent);
  background:
    radial-gradient(90% 120% at 30% 20%, color-mix(in srgb, var(--accent2) 24%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent1) 12%, transparent), color-mix(in srgb, var(--accent2) 10%, transparent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent2) 16%, transparent);
}
.mode-ico svg{ width: 18px; height: 18px; }
.mode-ico svg path{
  fill: none;
  stroke: rgba(255,255,255,.88);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-card__text h3{
  margin: 0;
  font-size: 14px;
}
.mode-card__text p{
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}

.mode-card__foot{
  margin-top: auto;
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ==========
   SERVERS (PLAY) — nowy kafelek + modal
========== */
.server-card{
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 260px;
  box-shadow: var(--shadow2);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.server-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  box-shadow: var(--shadow2), 0 0 0 1px rgba(255,255,255,.08), var(--accentGlow);
}
.server-card__bg{
  position: absolute;
  inset: 0;
  /* user requested 100% x 100% */
  background-size: 100% 100%;
  background-position: center;
  filter: saturate(1.1) contrast(1.04);
  opacity: .88;
}
.server-card__shade{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(255, 77, 99, .22), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.78));
}
.server-card__content{
  position: relative;
  z-index: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.server-status{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}
.server-status__dot{
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: rgba(255, 60, 75, .95);
  box-shadow: 0 0 0 2px rgba(255,60,75,.18), 0 0 18px rgba(255,60,75,.28);
}
.server-status__bars{
  width: 14px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.server-status__bars span{
  display: block;
  width: 4px;
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 60, 75, .92);
  box-shadow: 0 0 16px rgba(255,60,75,.24);
}
.server-status__text{ font-size: 12px; font-weight: 800; letter-spacing: .3px; }


.server-status--online .server-status__dot{
  background: rgba(76, 217, 100, .95);
  box-shadow: 0 0 0 2px rgba(76,217,100,.18), 0 0 18px rgba(76,217,100,.28);
}
.server-status--online .server-status__text{ color: rgba(185,255,208,.95); }
.server-status--offline{
  border-color: rgba(255,60,75,.30);
  background: rgba(0,0,0,.42);
}
.server-status--offline .server-status__text{ color: rgba(255,60,75,.98); }

/* Serwer: status w trakcie sprawdzania (szybkie kafelki zanim dojdzie status) */
@keyframes statusPulse{
  0%{ transform: scale(1); opacity: .85; }
  50%{ transform: scale(1.15); opacity: 1; }
  100%{ transform: scale(1); opacity: .85; }
}
.server-status--checking{
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.32);
}
.server-status--checking .server-status__dot{
  background: rgba(255,255,255,.60);
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 18px rgba(255,255,255,.18);
  animation: statusPulse 1.2s ease-in-out infinite;
}
.server-status--checking .server-status__text{ color: rgba(255,255,255,.85); }



.server-title{
  margin-top: 24px; /* miejsce pod status */
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.server-map{ color: var(--muted); font-size: 12.5px; }

.server-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.server-row strong{ font-size: 12px; }

.server-bar{
  height: 10px;
  border-radius: inherit;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.server-bar__fill{
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width .2s ease;
}
.fill--green{ background: rgba(76, 217, 100, .95); }
.fill--orange{ background: rgba(255, 159, 10, .95); }
.fill--red{ background: rgba(255, 60, 75, .95); }

.server-ip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.50);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
}
.server-ip:hover{ border-color: rgba(255,255,255,.22); }
.server-ip .muted{ font-size: 11px; }


.server-ip{
  justify-content: space-between;
  width: 100%;
}
.server-ip__copy{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  opacity: .92;
}
.server-ip:hover .server-ip__copy{
  border-color: rgba(255,255,255,.18);
  opacity: 1;
}



.btn__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  opacity: .92;
}
.btn__icon svg{ display:block; }

.server-actions{
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}



/* --- Toast (kopiowanie IP) --- */
.ui-toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(10px);
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.62);
  color: var(--text);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  backdrop-filter: blur(8px);
  max-width: min(520px, calc(100% - 24px));
}
.ui-toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ui-toast__icon{
  width: 22px;
  height: 22px;
  border-radius: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(76,217,100,.16);
  border: 1px solid rgba(76,217,100,.35);
  color: rgba(185,255,208,.95);
}
.ui-toast__text{ font-weight: 800; font-size: 13px; }

/* --- Modal --- */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(10px);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 9998;
}
.modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 24px));
  max-height: min(78vh, 760px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 40px 140px rgba(0,0,0,.65);
  z-index: 9999;
}
.modal__head{
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.modal__title{ font-weight: 900; letter-spacing: .2px; }
.consent-link{
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-link:hover{
  filter: brightness(1.08);
}

.modal__body{
  padding: 16px;
  overflow: hidden;
  max-height: calc(78vh - 58px);
}
.modal-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
.modal-hero{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  min-height: 220px;
  position: relative;
}
.modal-hero__bg{ position:absolute; inset:0; background-size:cover; background-position:center; filter:saturate(1.1) contrast(1.04); }
.modal-hero__shade{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.78)); }
.modal-hero__content{ position:relative; z-index:1; padding: 14px; display:flex; flex-direction:column; gap:10px; height:100%; }

.player-list-wrap{
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}
.player-list-wrap::-webkit-scrollbar{ width: 10px; }
.player-list-wrap::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.10); border-radius: inherit; }
.player-list-wrap::-webkit-scrollbar-track{ background: transparent; }


.player-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.player-pill{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

@media (max-width: 880px){
  .modal-grid{ grid-template-columns: 1fr; }
}

/* ==========
   RIGHT RAIL + DRAWERS
========== */
.right-rail{
  position: sticky;
  top: 0;
  height: 100vh;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .right-rail{
    background: rgba(10,12,16,.40);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

/* zakładka (book tab) */
.rail__tab{
  position: absolute;
  left: -18px;
  top: 110px;
  width: 34px;
  height: 64px;
  display: grid;
  place-items: center;
  cursor: pointer;

  border: 1px solid color-mix(in srgb, var(--accent2) 28%, transparent);
  border-right: 0;
  border-radius: 14px 0 0 14px;

  background:
    radial-gradient(80% 120% at 60% 20%, color-mix(in srgb, var(--accent2) 22%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow2);
}

.rail__tab::before{
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255,255,255,.10);
  opacity: .7;
}

.rail__tab .chev{ width: 18px; height: 18px; }
.rail__tab .chev path{
  fill: none;
  stroke: var(--text);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.rail__icons{
  height: 100%;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.rail-btn{
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.rail-btn:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent2) 26%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent2) 10%, transparent), var(--accentGlow);
}
.rail-btn svg{ width: 18px; height: 18px; }
.rail-btn .rail-coin{ width: 18px; height: 18px; display:block; object-fit: contain; }
.rail-btn svg path{
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}


#openNotifDrawer.has-unread{
  border-color: color-mix(in srgb, var(--accent1) 40%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent1) 18%, transparent), var(--accentGlow);
}
#openNotifDrawer.has-unread svg path{
  stroke: var(--accent1);
}

.rail-btn--steam{
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(80% 120% at 40% 20%, rgba(55,120,240,.25), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.rail-btn--accent{
  border-color: color-mix(in srgb, var(--accent2) 30%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent2) 16%, transparent), rgba(255,255,255,.02));
}

.badge{
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: inherit;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--accentGlow);
}


.badge--br{
  top: auto;
  bottom: -6px;
  right: -4px;
}

.rail__spacer{ flex: 1; }

/* rail search popover (click to expand) */
.rail-search-panel{
  position: fixed;
  left: 0;
  top: 0;
  transform: translateY(-50%) scale(.98);
  width: 260px;
  border-radius: 16px;
  border: 1px solid var(--border2);
  background: color-mix(in srgb, var(--bg1) 88%, transparent);
  box-shadow: var(--shadow2);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .12s ease, transform .12s ease;
}
.rail-search-panel.is-open{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.rail-search-panel__inner{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.rail-search-panel svg{ width: 18px; height: 18px; }
.rail-search-panel svg path{
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}
.rail-search-panel input{
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
}
.rail-search-panel input::placeholder{ color: var(--muted); }


/* drawers */
.drawer-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 50;
}

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 360px;
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index: 60;

  border-left: 1px solid var(--border);
  background: rgba(10,12,16,.55);

  display: flex;
  flex-direction: column;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .drawer{
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.drawer.is-open{ transform: translateX(0); }

.drawer__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.drawer__title .title{ font-weight: 900; }
.drawer__title .subtitle{ color: var(--muted); font-size: 12px; margin-top: 2px; }

.user{
  display: flex;
  align-items: center;
  gap: 12px;
}
.user__avatar-wrap{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent2) 22%, transparent);
  background:
    radial-gradient(90% 120% at 30% 20%, color-mix(in srgb, var(--accent2) 22%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent1) 10%, transparent), color-mix(in srgb, var(--accent2) 8%, transparent));
  overflow: hidden;
}
.user__avatar{ width: 100%; height: 100%; object-fit: cover; display: block; }
.user__name{ font-weight: 900; }
.user__sub{ color: var(--muted); font-size: 12px; }

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn svg{ width: 18px; height: 18px; }
.icon-btn svg path{
  fill: none;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.drawer__content{
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}

/* cards */
.card{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 14px;
  box-shadow: var(--shadow2);
}

.card--table{ padding: 0; overflow: hidden; }
.table-head{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.table-title{ font-weight: 900; }
.table-meta{ color: var(--muted); font-size: 12px; }

.table{
  display: grid;
}
.t-row{
  display: grid;
  grid-template-columns: 60px 1fr 120px 80px 80px;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--text);
}

.t-row--head{
  font-weight: 900;
  color: var(--muted);
  background: var(--panel2);
}

/* ==========
   DEMKA
========== */
.demo-toolbar{ padding: 14px; }
.demo-controls{
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 16px;
  align-items: end;
}
.demo-controls .label{
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}
.demo-controls .input{
  padding: 12px 14px;
  font-size: 14px;
}
.demo-page-meta{ text-align: right; white-space: nowrap; }
.demo-controls__actions{ display: flex; gap: 10px; justify-content: flex-end; }

.demo-table{ display: grid; }
.demo-row{
  display: grid;
  grid-template-columns: 1fr 160px 160px 120px 120px;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: center;
}
.demo-row--head{
  font-weight: 900;
  color: var(--muted);
  background: var(--panel2);
}
.demo-cell-muted{ color: var(--muted); font-size: 13px; }
.demo-empty{ padding: 14px 16px; }

.pager{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pager-btn{
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.pager-btn:disabled{ opacity: .5; cursor: not-allowed; }
.pager-btn.is-active{
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent2) 20%, transparent), color-mix(in srgb, var(--accent1) 12%, transparent));
  border-color: color-mix(in srgb, var(--accent2) 22%, transparent);
}
.pager-dots{ color: var(--muted); padding: 0 4px; }

@media (max-width: 980px){
  .demo-controls{ grid-template-columns: 1fr; align-items: stretch; }
  .demo-controls__actions{ justify-content: flex-start; }
  .demo-row{ grid-template-columns: 1fr 140px 140px 100px 100px; }
}

@media (max-width: 700px){
  .demo-row{ grid-template-columns: 1fr; }
  .demo-row--head{ display: none; }
  .demo-row > div:nth-child(1){ margin-bottom: 4px; }
  .demo-row > div:nth-child(5){ text-align: left !important; }
}

/* =====================
   BANS & MUTES
===================== */
body[data-page="bany"] .page-head h1{ letter-spacing: -.02em; }

.stat-grid--bans{
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.stat-tile--kpi{
  position: relative;
  padding: 14px 14px 12px 14px;
  overflow: hidden;
}
.stat-tile--kpi::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 1200px at 20% 0%, color-mix(in srgb, var(--accent1) 14%, transparent), transparent 55%);
  opacity: .85;
  pointer-events: none;
}
.stat-tile--kpi > *{ position: relative; z-index: 1; }

.stat-tile--action{
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.stat-tile--action:hover{ filter: brightness(1.06); }
.kpi-ico{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.05);
  display: grid;
  place-items: center;
}
.kpi-ico svg{ width: 20px; height: 20px; }
.kpi-ico svg path{ stroke: rgba(255,255,255,.90); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.kpi-chev{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  opacity: .7;
}
.kpi-chev svg{ width: 24px; height: 24px; }
.kpi-chev svg path{ stroke: rgba(255,255,255,.80); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.bans-card{ padding: 0; }
.bans-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
}
.bans-tabs{ display:flex; gap: 6px; align-items:center; flex-wrap: wrap; }
.bans-tab{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap: 10px;
}
.bans-tab__count{
  padding: 4px 8px;
  border-radius: inherit;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}
.bans-tab.is-active{
  border-color: color-mix(in srgb, var(--accent1) 25%, var(--border));
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent2) 16%, transparent), color-mix(in srgb, var(--accent1) 10%, transparent));
}

.bans-search{ position:relative; min-width: 320px; }
.bans-search svg{ position:absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: .75; pointer-events:none; }
.bans-search svg path{ stroke: rgba(255,255,255,.80); stroke-width:2; fill:none; stroke-linecap: round; stroke-linejoin: round; }
.bans-search input{ width: 100%; padding-left: 38px; }

.bans-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.bans-page-meta{ white-space: nowrap; }

.ban-list{ padding: 4px 8px 10px 8px; }
.ban-row{
  display:grid;
  grid-template-columns: 54px 1.5fr 110px 160px 170px 60px;
  align-items:center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  border-radius: 14px;
}
.ban-row:hover{ background: rgba(255,255,255,.03); }
.ban-row--head{
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}
.ban-row--head:hover{ background: rgba(255,255,255,.03); }

.ban-no{ color: var(--muted); font-weight: 900; }
.ban-player{ display:flex; align-items:center; gap: 12px; min-width: 0; }
.ban-avatar{ width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border2); object-fit: cover; background: rgba(255,255,255,.04); }
.ban-nick{ font-weight: 900; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;  min-width:0; }
.ban-nick-row{ display:flex; align-items:center; gap: 8px; min-width: 0; }
.ban-sub{ margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ban-who{ font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ban-kind{ display:flex; align-items:center; justify-content:center; }
.kind-icons{ display:inline-flex; align-items:center; gap: 12px; }
.kind-icons--inline{ gap: 10px; }
.kind-ico{ width: 22px; height: 22px; }
.kind-icons--inline .kind-ico{ width: 18px; height: 18px; }
.kind-ico path{ stroke: rgba(255,255,255,.88); stroke-width: 2.2; fill:none; stroke-linecap: round; stroke-linejoin: round; }
.kind-ico-tip{ display:inline-flex; align-items:center; }

.comm-icons{ display:inline-flex; align-items:center; gap: 6px; flex-shrink: 0; }
.comm-ico-wrap{ width: 22px; height: 22px; border-radius: 10px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.18); display:grid; place-items:center; }
.comm-ico{ width: 14px; height: 14px; }
.comm-ico path{ stroke: rgba(255,255,255,.86); stroke-width: 2; fill:none; stroke-linecap: round; stroke-linejoin: round; }

.ban-duration b{ font-weight: 900; }
.ban-pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: inherit;
  border: 1px solid var(--border2);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(0,0,0,.18);
}
.ban-pill__dot{ width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.38); }
.ban-pill--active{ border-color: color-mix(in srgb, var(--accent1) 26%, var(--border2)); }
.ban-pill--active .ban-pill__dot{ background: color-mix(in srgb, var(--accent1) 70%, #7CFFB2); }
.ban-pill--expired{ opacity: .75; }
.ban-pill--expired .ban-pill__dot{ background: rgba(255,255,255,.28); }

.ban-pill--duration{ border-color: rgba(255,255,255,.14); }
.ban-pill--duration .ban-pill__dot{ background: rgba(255,255,255,.28); }

.icon-btn--sm{ width: 38px; height: 38px; border-radius: 14px; }
.icon-btn--sm svg{ width: 18px; height: 18px; }

.ban-empty{ padding: 14px 12px; }

/* Ban details modal */
.ban-modal{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ban-profile{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.ban-profile__avatar{ width: 56px; height: 56px; border-radius: 18px; border: 1px solid var(--border2); object-fit: cover; background: rgba(255,255,255,.04); }
.ban-profile__nick{ font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.ban-profile__sid{ margin-top: 3px; font-size: 12px; color: var(--muted); }
.ban-profile__link{ margin-top: 8px; display:inline-flex; gap: 6px; align-items:center; font-weight: 800; font-size: 12px; color: color-mix(in srgb, var(--accent1) 70%, #7dd3fc); text-decoration: none; }
.ban-profile__link svg{ width: 14px; height: 14px; }
.ban-profile__link svg path{ stroke: currentColor; stroke-width: 2; fill:none; stroke-linecap: round; stroke-linejoin: round; }

.ban-info-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ban-info{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  min-height: 78px;
}
.ban-info__label{ font-size: 12px; font-weight: 900; letter-spacing: .10em; text-transform: uppercase; color: var(--muted); }
.ban-info__value{ margin-top: 8px; font-weight: 900; color: rgba(255,255,255,.92); }

.ban-reason{ grid-column: 1 / -1; }
.ban-reason .ban-info__value{ font-weight: 700; white-space: pre-wrap; }

.ban-modal__footer{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

/* Admin ranking modal */
.rank-tabs{ display:flex; gap: 6px; padding: 0 2px 12px 2px; flex-wrap: wrap; }
.rank-tab{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.rank-tab.is-active{
  border-color: color-mix(in srgb, var(--accent1) 25%, var(--border));
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent2) 16%, transparent), color-mix(in srgb, var(--accent1) 10%, transparent));
}
.admin-rank-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

/* scroll inside admin ranking popup */
#adminRankModal .modal__body{
  max-height: min(70vh, calc(100vh - 170px));
  overflow-y: auto;
  padding-right: 8px;
}
#adminRankModal .modal__body::-webkit-scrollbar{ width: 10px; }
#adminRankModal .modal__body::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.12); border-radius: inherit; }
#adminRankModal .modal__body::-webkit-scrollbar-track{ background: transparent; }
.admin-card{
  position: relative;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}

/* admin rank number + top3 highlight */
.admin-rank-no{
  position:absolute;
  right: 14px;
  top: 10px;
  font-weight: 950;
  font-size: 14px;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.70);
  pointer-events: none;
}
.admin-card--top1{ border-color: rgba(255,210,92,.38); box-shadow: 0 0 22px rgba(255,210,92,.10); }
.admin-card--top2{ border-color: rgba(210,226,255,.34); box-shadow: 0 0 22px rgba(210,226,255,.08); }
.admin-card--top3{ border-color: rgba(255,159,109,.32); box-shadow: 0 0 22px rgba(255,159,109,.08); }
.admin-card--top1 .admin-rank-no{ font-size: 42px; color: rgba(255,210,92,.92); top: 4px; }
.admin-card--top2 .admin-rank-no{ font-size: 42px; color: rgba(210,226,255,.92); top: 4px; }
.admin-card--top3 .admin-rank-no{ font-size: 42px; color: rgba(255,159,109,.92); top: 4px; }
.admin-card__top{ display:flex; align-items:flex-start; justify-content:space-between; gap: 10px; }
.admin-card__who{ display:flex; align-items:center; gap: 12px; min-width: 0; }
.admin-card__avatar{ width: 44px; height: 44px; border-radius: 16px; border: 1px solid var(--border2); object-fit: cover; background: rgba(255,255,255,.04); flex-shrink: 0; }
.admin-card__name{ font-weight: 900; letter-spacing: -.01em; }
.admin-card__sid{ margin-top: 3px; font-size: 12px; color: var(--muted); }
.admin-card__link{ margin-top: 10px; display:inline-flex; gap: 6px; align-items:center; font-weight: 800; font-size: 12px; color: color-mix(in srgb, var(--accent1) 70%, #7dd3fc); text-decoration: none; }
.admin-card__link svg{ width: 14px; height: 14px; }
.admin-card__link svg path{ stroke: currentColor; stroke-width: 2; fill:none; stroke-linecap: round; stroke-linejoin: round; }
.admin-card__stats{ margin-top: 12px; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.admin-stat{ padding: 10px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); }
.admin-stat__label{ font-size: 12px; color: var(--muted); font-weight: 800; }
.admin-stat__value{ margin-top: 6px; font-weight: 900; }

.admin-medal{
  position:absolute;
  right: 12px;
  top: 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
}
.medal-ico{ width: 26px; height: 26px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); display:grid; place-items:center; background: rgba(0,0,0,.18); }
.medal-ico svg{ width: 16px; height: 16px; }
.medal-ico svg path{ fill: rgba(255,255,255,.88); }
.medal--gold .medal-ico{ border-color: rgba(255,210,92,.35); box-shadow: 0 0 22px rgba(255,210,92,.12); }
.medal--silver .medal-ico{ border-color: rgba(210,226,255,.32); box-shadow: 0 0 22px rgba(210,226,255,.10); }
.medal--bronze .medal-ico{ border-color: rgba(255,159,109,.30); box-shadow: 0 0 22px rgba(255,159,109,.10); }

@media (max-width: 980px){
  .stat-grid--bans{ grid-template-columns: repeat(4, minmax(0,1fr)); }
  .bans-search{ min-width: 240px; }
  .ban-row{ grid-template-columns: 44px 1fr 90px 150px 150px 56px; }
}

@media (max-width: 720px){
  .stat-grid--bans{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bans-toolbar{ flex-direction: column; align-items: stretch; }
  .bans-search{ min-width: 0; }
  .ban-row{ grid-template-columns: 1fr; gap: 6px; }
  .ban-row--head{ display:none; }
  .ban-no{ display:none; }
  .ban-kind, .ban-duration, .ban-status, .ban-actions{ padding-left: 54px; }
  .ban-actions{ padding-left: 0; }
  .ban-info-grid{ grid-template-columns: 1fr; }
  .admin-rank-grid{ grid-template-columns: 1fr; }
}

.row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.muted{ color: var(--muted); }

.coins{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}
.coin-dot{
  width: 10px;
  height: 10px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  box-shadow: var(--accentGlow);
}

/* lists */
.drawer-section h3{
  margin: 16px 0 8px;
  font-size: 13px;
  letter-spacing: .2px;
}
.list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.dot{ width: 8px; height: 8px; border-radius: inherit; display: inline-block; margin-right: 8px; }
.dot--red{ background: var(--accent2); box-shadow: var(--accentGlow); }
.dot--orange{ background: var(--accent1); }
.dot--green{ background: #22c55e; box-shadow: 0 0 0 1px rgba(34,197,94,.20), 0 0 18px rgba(34,197,94,.55); }
.dot--gray{ background: rgba(255,255,255,.25); }

.friends{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.friends li{
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar-mini{
  width: 26px; height: 26px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent2) 18%, transparent);
  background:
    radial-gradient(80% 120% at 20% 20%, color-mix(in srgb, var(--accent2) 18%, transparent), transparent 60%),
    rgba(255,255,255,.04);
}

.pill{
  padding: 6px 10px;
  border-radius: inherit;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.pill--online{
  border-color: color-mix(in srgb, var(--accent2) 22%, transparent);
  color: rgba(255,255,255,.86);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent2) 16%, transparent), color-mix(in srgb, var(--accent1) 8%, transparent));
}

/* ==========
   BUTTONS
========== */
.btn{
    display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r-btn);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .2px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent2) 24%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent2) 10%, transparent);
}

.btn--primary{
  border-color: color-mix(in srgb, var(--accent2) 28%, transparent);
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  color: white;
  box-shadow: var(--accentGlow);
}

.btn--secondary{
  border-color: color-mix(in srgb, var(--accent1) 28%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent1) 18%, transparent), color-mix(in srgb, var(--accent2) 12%, transparent));
}

.btn--ghost{
  background: transparent;
  border-color: rgba(255,255,255,.12);
}

.btn--tiny{
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.btn--full{ width: 100%; }

.quick{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ==========
   MEDIA SLOT (skeleton)
========== */
.media-slot{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 20%, color-mix(in srgb, var(--accent2) 22%, transparent), transparent 58%),
    radial-gradient(120% 120% at 80% 30%, color-mix(in srgb, var(--accent1) 14%, transparent), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.media-slot::after{
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.10) 0px,
      rgba(255,255,255,.10) 8px,
      rgba(255,255,255,.02) 8px,
      rgba(255,255,255,.02) 16px
    );
  mix-blend-mode: overlay;
  pointer-events: none;
}

.media-slot img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  opacity: .92;
}

.media-slot.is-missing img{ display: none; }
.media-slot--cover{ position: absolute; inset: 0; }

/* ==========
   MOBILE BAR + OFFCANVAS PANELS
========== */
.mobile-bar{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  padding: 10px 12px;
  z-index: 47;

  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-bottom: 1px solid var(--border);
  background: rgba(10,12,16,.55);
/* iOS safe-area support (keeps the bar usable under notches) */
padding-top: 10px;
padding-top: calc(10px + env(safe-area-inset-top));
height: 58px;
height: calc(58px + env(safe-area-inset-top));
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .mobile-bar{
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.mobile-btn{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mobile-btn svg{ width: 20px; height: 20px; }
.mobile-btn svg path{
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-brand{
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
}
.mobile-brand .brand__mark{ width: 36px; height: 36px; }

.mobile-backdrop{
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0,0,0,.55);
}

/* ==========
   RESPONSIVE
========== */
@media (max-width: 1200px){
  .modes{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modes.servers-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banners{ grid-template-columns: 1fr; }
  .banner__content{ max-width: 92%; }
}

@media (max-width: 980px){
  /* Mobile / small-tablet: left + right panels are off-canvas, pages are fully responsive */
  .mobile-bar{ display: flex; }

  body.mobile-sidebar-open,
  body.mobile-rail-open{ overflow: hidden; }

  .app{ grid-template-columns: 1fr; }

  .main{
    padding: 78px 14px 34px;
    padding-top: calc(78px + env(safe-area-inset-top));
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
  }

  /* off-canvas left sidebar (full drawer on phones) */
  .sidebar{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 340px);
    transform: translateX(-110%);
    transition: transform .22s ease;
    z-index: 46;
    padding-top: calc(18px + 58px);
    padding-top: calc(18px + 58px + env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow2);
  }
  body.mobile-sidebar-open .sidebar{ transform: translateX(0); }

  /* off-canvas right rail (icons) */
  .right-rail{
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--rail-w);
    transform: translateX(110%);
    transition: transform .22s ease;
    z-index: 46;
    box-shadow: var(--shadow2);
  }
  body.mobile-rail-open .right-rail{ transform: translateX(0); }

  /* keep rail buttons below the mobile bar */
  .rail__icons{
    padding-top: calc(16px + 58px);
    padding-top: calc(16px + 58px + env(safe-area-inset-top));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  /* Mobile wants readable menu even if desktop is compact */
  .brand__text{ display: inline-block; }
  body.sidebar-compact .brand__text{ display: inline-block; }

  .nav-label{ display: inline-block; }
  body.sidebar-compact .nav-label{ display: inline-block; }

  .nav-ext{ display: inline-block; }
  body.sidebar-compact .nav-ext{ display: inline-block; }

  body.sidebar-compact .nav-item{
    justify-content: flex-start;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* responsive grids */
  .modes{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes.servers-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .modes{ grid-template-columns: 1fr; }
  .modes.servers-grid{ grid-template-columns: 1fr; }
  .drawer{ width: 92vw; }
}


/* --- Steam avatar in profile rail button --- */
.rail-avatar{
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* profile rail button: let avatar fill edge-to-edge */
.rail-btn#openProfileDrawer{
  /* allow crown to sit outside the button */
  padding: 0;
}

/* VIP marker: gold glowing frame (crowns removed) */
.rail-vip-crown{ display:none !important; }

.rail-btn.vip-frame{
  /* VIP marker: gold glow (no pseudo-element => no size mismatch / clipping) */
  box-shadow:
    0 0 0 2px rgba(245,197,66,.95),
    0 0 18px rgba(245,197,66,.25),
    0 0 36px rgba(245,197,66,.18);
  border-color: rgba(245,197,66,.65);
}

/* Player profile VIP marker */
.pm-avatar-wrap{ position: relative; width: 112px; height: 112px; border-radius: 18px; }
.pm-vip-crown{ display:none !important; }
.pm-avatar-wrap.vip-frame{
  box-shadow:
    0 0 0 2px rgba(245,197,66,.95),
    0 0 18px rgba(245,197,66,.25),
    0 0 36px rgba(245,197,66,.18);
}

/* --- Profile form inside drawer --- */
.profile-kv{ display: grid; gap: 10px; margin-bottom: 10px; }
.kv-row{ display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.kv-row code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-label{ display:block; margin-top: 12px; color: var(--muted); font-size: 12px; }
.form-input{
  margin-top: 6px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  outline: none;
}
.form-input:focus{
  border-color: color-mix(in srgb, var(--accent2) 40%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 18%, transparent);
}
.save-status{ min-height: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.admin-link{ margin-top: 8px; }


/* ---------- Admin helpers ---------- */
.admin-h2{
  margin: 18px 0 10px;
  font-size: 15px;
  letter-spacing: .2px;
}

.admin-hr{
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.admin-form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

@media (max-width: 700px){
  .admin-form-grid{
    grid-template-columns: 1fr;
  }
}

.admin-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.admin-card-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.badge--ok{ background: rgba(60, 200, 120, .12); border-color: rgba(60, 200, 120, .35); color: rgba(170, 255, 210, .95); }
.badge--bad{ background: rgba(255, 90, 90, .10); border-color: rgba(255, 90, 90, .30); color: rgba(255, 190, 190, .95); }

.drop-list{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:grid;
  gap:6px;
}
.drop-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.02);
}

.players-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:8px;
}
@media (max-width: 700px){
  .players-grid{ grid-template-columns: 1fr; }
}
.player-pill{
  border:1px solid var(--line);
  border-radius: inherit;
  padding: 8px 10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  background: rgba(255,255,255,.02);
}
.player-pill span:first-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }


.mode-card.is-selected{ outline: 2px solid rgba(255,255,255,.12); box-shadow: 0 0 0 2px rgba(0,0,0,.2) inset; }

/* ---------- Admin UI (tabs/sections/forms) ---------- */
.admin-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.admin-tab{
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;
}
.admin-tab.is-active{
  border-color: color-mix(in srgb, var(--accent2) 40%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 18%, transparent);
}

.admin-section{ display:none; }
.admin-section.is-active{ display:block; }

.admin-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

/* Generic 2-column grid helper (used in admin + pages) */
.grid-2{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.admin-form .grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items:end;
}

.grid-3{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* 4-column grid (used e.g. on Zadania) */
.grid-4{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 1200px){
  .grid-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .admin-form .grid-2{ grid-template-columns: 1fr; }
}

.label{ display:block; margin-top: 12px; color: var(--muted); font-size: 12px; }

.input, select.input, .textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  outline: none;
}

.textarea{ resize: vertical; min-height: 80px; }

.input:focus, .textarea:focus, select.input:focus{
  border-color: color-mix(in srgb, var(--accent2) 40%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 18%, transparent);
}

.admin-actions{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }

.card--inset{ background: rgba(255,255,255,.02); border: 1px solid var(--line); }

.admin-mini-list{ display:grid; gap:6px; margin-top:10px; }
.mini-row{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:10px;
  align-items:center;
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:12px;
  background: rgba(255,255,255,.02);
}
@media (max-width: 700px){
  .mini-row{ grid-template-columns: 1fr; }
}

.admin-user{ border:1px solid var(--border); border-radius:18px; background: var(--panel); box-shadow: var(--shadow1); padding:12px; }
.admin-user + .admin-user{ margin-top:12px; }
.admin-user__head{ display:flex; align-items:center; gap:12px; }
.admin-avatar{ width:46px; height:46px; border-radius:16px; object-fit:cover; border:1px solid var(--line); background: rgba(255,255,255,.02); }
.admin-avatar--ph{ display:grid; place-items:center; font-weight:900; color: var(--muted); }
.admin-user__meta{ flex:1; min-width:0; }
.admin-user__name{ font-weight:900; }
.admin-user__coins{ font-weight:900; white-space:nowrap; }
.admin-user__grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px; margin-top:10px; }
@media (max-width: 900px){ .admin-user__grid{ grid-template-columns: 1fr; } }
.admin-user__actions{ margin-top:10px; }
.admin-user__details{ margin-top:12px; }

.code-block{ background: rgba(0,0,0,.35); border:1px solid var(--line); border-radius:16px; padding:12px; font-size:12px; overflow:auto; }
hr.sep{ border:0; height:1px; background: var(--line); margin:14px 0; }

/* =========================
   SHOP (Sklep) + CASES
   ========================= */

.shop-layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:10px;
  align-items:start;
}


@media (max-width: 980px){
  .shop-layout{ grid-template-columns: 1fr; }
  .shop-filters{ position:static; }
}

.shop-filters{ position:sticky; top:18px; }


.shop-cats{
  display:flex;
  flex-direction:column;
  gap:6px; /* odstępy między blokami */
}

/* Pojedynczy blok (Wszystko) i blok grupy (Skiny CS2 / INNE) */
.shop-cat-box{
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:14px;
  overflow:hidden;
}

/* wiersz kategorii */
.shop-cat{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
  border:0;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  text-align:left;
}
.shop-cat + .shop-cat{
  border-top:1px solid var(--border);
}

/* główna grupa */
.shop-cat--group{
  font-weight:800;
  letter-spacing:.2px;
}

/* podkategorie */
.shop-cat--child{
  padding-left:28px;
  font-weight:600;
  opacity:.95;
}
.shop-cat--child::before{
  content:"";
  width:8px;
  height:1px;
  background:rgba(255,255,255,.26);
  position:absolute;
  left:16px;
  top:50%;
}
.shop-cat--child{ position:relative; }

.shop-cat.is-active{
  background:rgba(255,255,255,.15);
}

/* Toggle (+) */
.shop-cat__toggle{
  width:26px;
  height:26px;
  border-radius:10px;
  display:grid;
  place-items:center;
  border:1px solid var(--border2);
  background:rgba(255,255,255,.03);
  flex:0 0 auto;
}
body[data-page="kup"] .shop-cat__toggle svg{
  width:14px;
  height:14px;
  stroke: currentColor;
  stroke-width: 2;
  fill:none;
  opacity:.9;
}
body[data-page="kup"] .shop-cat--expanded .shop-cat__toggle .v{ opacity:0; }


.shop-toolbar{
  margin-bottom:10px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.shop-toolbar__left{ flex:1; }
.shop-toolbar__right{ display:flex; gap:10px; align-items:center; justify-content:flex-end; }
.shop-toolbar__right .input{ width:240px; }
.shop-toolbar__left .shop-search{ width:100%; }
@media (max-width: 560px){
  .shop-toolbar{ flex-direction:column; align-items:stretch; }
  .shop-toolbar__right{ justify-content:stretch; }
  .shop-toolbar__right .input{ width:100%; }
}

.shop-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 1600px){ .shop-grid{ grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 1300px){ .shop-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 980px){ .shop-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 560px){ .shop-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }

.shop-item{
  padding:10px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.shop-item__img{
  position:relative;
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border2);
  background:rgba(255,255,255,.04);
}
.shop-item__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.shop-item__badge{
  position:absolute;
  top:10px;
  left:10px;
  padding:6px 8px;
  border-radius: inherit;
  background:rgba(0,0,0,.55);
  border:1px solid var(--border2);
  font-size:11px;
  font-weight:800;
  color:var(--text);
  z-index:2;
}
.shop-item__cart{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.0);
  opacity:0;
  transition:opacity .18s ease, background .18s ease, transform .18s ease;
  transform:scale(0.98);
}
.shop-item__cart svg{ width:54px; height:54px; opacity:.85; }
.shop-item:hover .shop-item__cart,
.shop-item:focus-visible .shop-item__cart{
  opacity:1;
  background:rgba(0,0,0,.35);
  transform:scale(1);
}
.shop-item__title{ font-weight:800; font-size:13px; line-height:1.2; }
.shop-item__meta{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.shop-item__price{ font-weight:800; }
.shop-item__name{ font-size:12px; color:var(--muted); }

/* Modal (shared with skrzynki) */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:1200;
}
.modal-backdrop--solid{ background:#0b0f14; }
.modal{
  width:min(680px, 100%);
  background:var(--card);
  border:1px solid var(--border2);
  border-radius:22px;
  box-shadow:0 20px 70px rgba(0,0,0,.45);
  overflow:hidden;
}
.modal__head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px; border-bottom:1px solid var(--border2); }
.modal__body{ padding:16px; }
.modal .icon-btn{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid var(--border2);
  background:transparent;
  color:var(--text);
  cursor:pointer;
  display:grid; place-items:center;
  font-size:18px;
  line-height:1;
}
.modal .icon-btn:hover{ filter:brightness(1.08); }

.modal-product{ display:grid; grid-template-columns: 180px 1fr; gap:14px; align-items:start; }
@media (max-width: 640px){ .modal-product{ grid-template-columns: 1fr; } }
.modal-product__img{ width:100%; aspect-ratio:1/1; border-radius:18px; overflow:hidden; border:1px solid var(--border2); background:rgba(255,255,255,.04); }
.modal-product__img img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Shop modal */
.shop-modal{ display:grid; grid-template-columns: 280px 1fr; gap:16px; align-items:start; }
@media (max-width: 720px){ .shop-modal{ grid-template-columns:1fr; } }
.shop-modal__img{ width:100%; aspect-ratio:1/1; border-radius:20px; overflow:hidden; border:1px solid var(--border2); background:rgba(255,255,255,.04); }
.shop-modal__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.shop-modal__title{ font-size:18px; font-weight:900; letter-spacing:-0.02em; }
.shop-modal__quality{ margin-top:6px; font-size:12px; color:var(--muted); }

/* CASE OPEN */
.case-open-grid{ display:grid; grid-template-columns: 360px 1fr; gap:12px; }
@media (max-width: 980px){ .case-open-grid{ grid-template-columns:1fr; } }

.roulette{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--border2);
  background:rgba(255,255,255,.03);
  min-height: 176px;
}
.roulette-marker{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background:rgba(255,255,255,.25);
  transform:translateX(-1px);
}
.roulette-track{
  display:flex;
  gap:10px;
  padding:16px;
  will-change: transform;
  transform: translateX(0);
}
.roulette-item{
  width:140px;
  flex:0 0 140px;
  border-radius:16px;
  border:1px solid var(--border2);
  background:var(--card);
  overflow:hidden;
}
.roulette-item img{ width:100%; height:90px; object-fit:cover; display:block; }
.roulette-item .ri-body{ padding:8px; }
.roulette-item .ri-name{ font-weight:800; font-size:12px; line-height:1.2; }
.roulette-item .ri-chance{ color:var(--muted); font-size:11px; margin-top:4px; }

.case-items{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px; }
@media (max-width: 980px){ .case-items{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .case-items{ grid-template-columns: 1fr; } }

.case-item{
  display:flex;
  gap:10px;
  border:1px solid var(--border2);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:10px;
  align-items:center;
}
.case-item img{ width:48px; height:48px; border-radius:14px; border:1px solid var(--border2); object-fit:cover; }
.case-item .ci-name{ font-weight:800; }
.case-item .ci-meta{ color:var(--muted); font-size:12px; }

/* ---- Shop tiles like competitor ---- */
body[data-page="kup"] .skins-item{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
  transition:transform .12s ease, border-color .12s ease;
}
body[data-page="kup"] .skins-item:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.16); }

body[data-page="kup"] .skins-item__img{position:relative;aspect-ratio: 1 / 1;display:flex;align-items:center;justify-content:center;}
body[data-page="kup"] .skins-item__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

body[data-page="kup"] .skins-item__info{
  padding:12px 12px 14px;
  margin-top:-14px;
  background:var(--bg1);
  border-top:0;
  border-radius:16px 16px 0 0;
  position:relative;
}
body[data-page="kup"] .skins-item__q{
  font-size:12px;
  font-weight:700;
  opacity:.92;
  margin-bottom:4px;
}
body[data-page="kup"] .skins-item__weapon{ font-size:11px; font-weight:600; opacity:.90; margin-bottom:4px; }
body[data-page="kup"] .skins-item__skin{ font-size:14px; font-weight:800; opacity:.96; margin-bottom:8px; }
.limited-length{ display:inline-block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

body[data-page="kup"] .skins-item__price{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:900;
}

body[data-page="kup"] .skins-item__price::before{ font-size:11px; font-weight:700; opacity:.7; }
.coin-ico{ width:18px; height:18px; display:inline-block; }
.coin-ico--btn{ width:18px; height:18px; vertical-align:-2px; margin-left:6px; }

/* ---- Cart overlay: cover the whole item (not a small icon) ---- */
body[data-page="kup"] .skins-item{ position:relative; }

body[data-page="kup"] .skins-item__cart{
  position:absolute;
  inset:0;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  backdrop-filter: blur(6px);
  background:rgba(0,0,0,.42);
  opacity:0;
  transform: scale(1.01);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events:none; /* click goes to the card */
  z-index:3;
  color: rgba(255,255,255,.96);
}

body[data-page="kup"] .skins-item:hover .skins-item__cart .cart-ico{
  width:44px;
  height:44px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* ===== SHOP FIX v3 (rarity gradient + cleaner cats + select dropdown) ===== */

/* Layout: nie full width, ale szerzej + sensowny padding */
#page-kup .shop-layout{
  max-width: 1680px;
  margin: 0 auto;
}
@media (max-width: 1200px){
  #page-kup .shop-layout{ padding: 0 14px; }
}

/* Grid: jedna kolumna mniej (większy min), ciaśniejsze odstępy */
#page-kup #shopGrid{
  display:grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 12px !important;
}

/* Kafel: overlay koszyka na CAŁY kafel */
#page-kup .skins-item{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
#page-kup .skins-item__cart{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,.42);
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  z-index: 10;
  color: rgba(255,255,255,.96);
}
* Sortowanie: usuń biały "kafelek" pod strzałką (custom strzałka + stałe tło na hover) */
#page-kup select.input{
  -webkit-appearance: none;
  appearance: none;
  -moz-appearance: none;
  padding-right: 44px; /* miejsce na strzałkę */
  background-color: var(--panel2) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%23d6dae5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}
#page-kup select.input:hover,
#page-kup select.input:focus{
  background-color: var(--panel2) !important;
}
#page-kup select.input::-ms-expand{ display:none; }

/* 1) Checkbox + nazwa kategorii w jednej linii */
body[data-page="kup"] .shop-cat,
#page-kup .shop-cat{
  justify-content: flex-start !important;
}

body[data-page="kup"] .shop-cat__label,
#page-kup .shop-cat__label{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0;
  flex:1 1 auto;
}

body[data-page="kup"] .shop-cat__toggle,
#page-kup .shop-cat__toggle{
  margin-left:auto !important; /* toggle zostaje po prawej */
}

/* 2) Select sortowania: własna strzałka + bez białego tła na hover */
body[data-page="kup"] select.input,
#page-kup select.input{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;

  padding-right:44px !important;
  background-clip: padding-box;

  /* kolor + strzałka w jednym background, żeby nic jej nie wyczyściło */
  background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%23d6dae5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px !important;

  color: var(--text) !important;
  border:1px solid var(--border) !important;
}

body[data-page="kup"] select.input:hover,
body[data-page="kup"] select.input:focus,
#page-kup select.input:hover,
#page-kup select.input:focus{
  background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%23d6dae5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px !important;
}

body[data-page="kup"] select.input::-ms-expand,
#page-kup select.input::-ms-expand{ display:none; }

/* dropdown */
body[data-page="kup"] select.input option,
#page-kup select.input option{
  background: var(--bg1) !important;
  color: var(--text) !important;
}


#page-kup .skins-item:hover .skins-item__cart{
  opacity: 1;
  transform: scale(1);
}
#page-kup .skins-item__cart .cart-ico{
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Obraz 90% */
#page-kup .skins-item__img img{
  width: 90% !important;
  height: 90% !important;
  object-fit: contain !important;
}

/* Info nachodzi na obrazek bez “podwójnego” rozjaśniania */
#page-kup .skins-item__info{
  background: transparent !important; /* kluczowe: brak podwójnej przezroczystości */
  margin-top: -14px;
  padding: 12px 12px 14px;
  position: relative;
  z-index: 2;
}

/* Typografia kafelka: FN 12, broń 11, nazwa 14 bold, cena 14 bold */
#page-kup .skins-item__q{ font-size: 12px; font-weight: 800; opacity: .92; margin-bottom: 4px; }
#page-kup .skins-item__weapon{ font-size: 11px; font-weight: 700; opacity: .92; margin-bottom: 4px; }
#page-kup .skins-item__skin{ font-size: 14px; font-weight: 900; opacity: .96; margin-bottom: 8px; }
#page-kup .skins-item__price{
  font-size: 20px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* coin svg 16px żółty */
#page-kup .coin-svg{ width:16px; height:16px; fill:#E4AE39; flex:0 0 auto; }

/* Rarity / klasa skina: delikatny gradient od dołu kafelka */
#page-kup .skins-item::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  background: linear-gradient(180deg, transparent 62%, rgba(255,255,255,0) 78%);
}
#page-kup .skins-item[data-class="consumer"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(176,195,217,.22) 100%); }
#page-kup .skins-item[data-class="industrial"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(94,152,217,.22) 100%); }
#page-kup .skins-item[data-class="milspec"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(75,105,255,.22) 100%); }
#page-kup .skins-item[data-class="restricted"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(136,71,255,.22) 100%); }
#page-kup .skins-item[data-class="classified"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(211,44,230,.22) 100%); }
#page-kup .skins-item[data-class="covert"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(235,75,75,.22) 100%); }
#page-kup .skins-item[data-class="rare"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(228,174,57,.24) 100%); }
#page-kup .skins-item[data-class="contraband"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(136,71,255,.20) 100%); }
#page-kup .skins-item[data-class="other"]::after{ background: linear-gradient(180deg, transparent 58%, rgba(46,160,67,.22) 100%); }

/* Kategorie: fonty 14px dla: Wszystko + grupy (Skiny CS2/INNE), podkategorie bez białych checkboxów */
#page-kup .shop-filters strong{ font-size:16px; }
#page-kup .shop-cat__text{ font-size:14px; font-weight:800; }
#page-kup .shop-cat--child .shop-cat__text{ font-size:13px; font-weight:700; }

/* checkbox bez białego tła */
#page-kup .shop-cat__cb{
  -webkit-appearance:none;
  appearance:none;
  width:16px;
  height:16px;
  border-radius:5px;
  border:1px solid var(--border2);
  background: transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
}
#page-kup .shop-cat__cb::after{
  content:"";
  width:8px;
  height:4px;
  border-left:2px solid transparent;
  border-bottom:2px solid transparent;
  transform: rotate(-45deg) translateY(-1px);
}
#page-kup .shop-cat__cb:checked{
  background: var(--accent1);
  border-color: transparent;
}
#page-kup .shop-cat__cb:checked::after{
  border-left-color: rgba(255,255,255,.98);
  border-bottom-color: rgba(255,255,255,.98);
}

/* usuń kreseczkę/”minusik” przed podkategorią (jeśli był pseudo-element) */
#page-kup .shop-cat--child::before{ display: none; }

/* separatory poziome + odstępy jak w opisie */
#page-kup .shop-cat-sep{ opacity: .10; }
#page-kup .shop-cat-box + .shop-cat-box{ border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }

/* Sortowanie: tło listy i selecta w dark (żeby nie było białe) */
#page-kup select.input{
  background-color: var(--panel2) !important; /* NIE background: */
}
#page-kup select.input option{
  background: var(--bg1) !important;
  color: var(--text) !important;
}
/* =========================
   AIRDROPS (Zrzuty broni)
   ========================= */
.airdrop-overlay{
  position:fixed; inset:0;
  z-index:9999;
  /* Darker overlay (less see-through) */
  background:
    radial-gradient(1200px 700px at 50% 18%, rgba(255,255,255,.05), rgba(0,0,0,.97));
  backdrop-filter: blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

/* In the popup we don't want skeleton overlays or any accidental frames */
.airdrop-overlay .media-skeleton{ display:none !important; }
.airdrop-overlay img{ box-shadow:none !important; filter:none !important; outline:0 !important; border:0 !important; }

.airdrop-overlay[hidden]{ display:none; }

.airdrop-overlay__inner{
  width:min(980px, 100%);
  /* Bigger popup (especially height) */
  min-height: min(780px, 94vh);
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  /* Darker popup panel */
  background: linear-gradient(180deg, rgba(10,12,18,.94), rgba(6,8,12,.90));
  box-shadow: 0 30px 140px rgba(0,0,0,.78);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
}

.airdrop-drop{
  position:relative;
  flex:1 1 auto;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:24px 24px 0;
  /* Allow the falling image to go a bit lower without being clipped (prevents a visible "edge"/shadow). */
  overflow: visible;
}

.airdrop-ground{
  position:absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  height: 14px;
  background: radial-gradient(560px 26px at 50% 50%, rgba(255,255,255,.12), rgba(255,255,255,0));
  opacity: .9;
  pointer-events:none;
}

.airdrop-parachute{
  display:none;
  position:absolute;
  width:min(620px, 92vw);
  height:260px;
  border-radius: 260px 260px 60px 60px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  top:-220px;
  animation: airdrop-parachute 2.2s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
  pointer-events:none;
}

.airdrop-parachute:before{
  content:"";
  position:absolute;
  inset:18px 34px auto 34px;
  height:8px;
  border-radius:99px;
  background: rgba(255,255,255,.18);
  opacity:.85;
}

.airdrop-crate{
  position:relative;
  /* Transparent PNG friendly: no frame/shadow/borders */
  border-radius:0;
  overflow:visible;
  border:0;
  outline:0;
  /* Container for the falling image (the image itself is an <img> to avoid any container artifacts). */
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  outline: none !important;
  background-color: transparent !important;
  margin-bottom: 38px;
  transform: translateY(-980px) rotate(-6deg) scale(.98);
  /* Slower fall */
  animation: airdrop-crate-drop 4.6s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

.airdrop-crate__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill; /* 100% x 100% */
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  background: transparent !important;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Jeśli spada obrazek, nie dodawaj "desek" na wierzchu */
.airdrop-crate.airdrop-crate--img:before,
.airdrop-crate.airdrop-crate--img:after{ display:none; }

/* Never render any overlay bars/shadows on the falling image container */
.airdrop-crate:before, .airdrop-crate:after{ display:none !important; content:none !important; }

@keyframes airdrop-parachute{
  0%{ transform: translateY(-980px); opacity:0; }
  12%{ opacity:1; }
  72%{ transform: translateY(360px); opacity:1; }
  100%{ transform: translateY(360px); opacity:0; }
}

@keyframes airdrop-crate-drop{
  0%{ transform: translateY(-980px) rotate(-6deg) scale(.98); }
  /* Land ~2cm lower */
  78%{ transform: translateY(76px) rotate(0deg) scale(1); }
  90%{ transform: translateY(92px) rotate(2deg) scale(1.02, .92); }
  100%{ transform: translateY(76px) rotate(0deg) scale(1); }
}

.airdrop-overlay__actions{
  display:flex;
  gap:12px;
  justify-content:center;
  padding:18px 18px 22px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.42);
  position: relative;
  z-index: 10;
}

#airdropOverlayStatus:empty{ display:none; }


.airdrop-result{
  padding: 0 18px 18px;
}

/* Impact + reveal sequence */
.airdrop-overlay.is-impact .airdrop-overlay__inner{
  animation: airdrop-shake .38s ease;
}

@keyframes airdrop-shake{
  0%{ transform: translate3d(0,0,0); }
  20%{ transform: translate3d(-2px, 1px, 0); }
  40%{ transform: translate3d(3px, -1px, 0); }
  60%{ transform: translate3d(-2px, -1px, 0); }
  80%{ transform: translate3d(2px, 1px, 0); }
  100%{ transform: translate3d(0,0,0); }
}

.airdrop-overlay.is-impact .airdrop-crate{
  animation: airdrop-smash .55s cubic-bezier(.2,.9,.25,1) forwards;
}

@keyframes airdrop-smash{
  0%{ opacity:1; transform: translateY(76px) rotate(0deg) scale(1); }
  45%{ opacity:1; transform: translateY(90px) rotate(6deg) scale(1.06, .86); }
  100%{ opacity:0; transform: translateY(96px) rotate(10deg) scale(.88); }
}

.airdrop-shards{
  position:absolute;
  left:50%;
  bottom: 6px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events:none;
}

.airdrop-overlay.is-impact .airdrop-shards{ opacity: 1; }

.airdrop-shards .shard{
  position:absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.40), rgba(255,255,255,.06));
  box-shadow: 0 18px 30px rgba(0,0,0,.30);
  transform: translate3d(0,0,0) rotate(0deg);
  opacity: 0;
}

.airdrop-overlay.is-impact .airdrop-shards .shard{ opacity: 1; }

.airdrop-overlay.is-impact .airdrop-shards .shard:nth-child(1){ animation: shard1 .6s ease-out forwards; }
.airdrop-overlay.is-impact .airdrop-shards .shard:nth-child(2){ animation: shard2 .65s ease-out forwards; }
.airdrop-overlay.is-impact .airdrop-shards .shard:nth-child(3){ animation: shard3 .7s ease-out forwards; }
.airdrop-overlay.is-impact .airdrop-shards .shard:nth-child(4){ animation: shard4 .62s ease-out forwards; }
.airdrop-overlay.is-impact .airdrop-shards .shard:nth-child(5){ animation: shard5 .66s ease-out forwards; }
.airdrop-overlay.is-impact .airdrop-shards .shard:nth-child(6){ animation: shard6 .7s ease-out forwards; }
.airdrop-overlay.is-impact .airdrop-shards .shard:nth-child(7){ animation: shard7 .64s ease-out forwards; }
.airdrop-overlay.is-impact .airdrop-shards .shard:nth-child(8){ animation: shard8 .68s ease-out forwards; }

@keyframes shard1{ to{ transform: translate(-140px,-120px) rotate(220deg); opacity:0; } }
@keyframes shard2{ to{ transform: translate(-70px,-150px) rotate(260deg); opacity:0; } }
@keyframes shard3{ to{ transform: translate(20px,-165px) rotate(300deg); opacity:0; } }
@keyframes shard4{ to{ transform: translate(110px,-130px) rotate(190deg); opacity:0; } }
@keyframes shard5{ to{ transform: translate(-120px,-60px) rotate(180deg); opacity:0; } }
@keyframes shard6{ to{ transform: translate(-20px,-90px) rotate(250deg); opacity:0; } }
@keyframes shard7{ to{ transform: translate(70px,-110px) rotate(210deg); opacity:0; } }
@keyframes shard8{ to{ transform: translate(140px,-70px) rotate(140deg); opacity:0; } }

.airdrop-reveal{
  position:absolute;
  left:50%;
  bottom: 78px;
  width: auto; max-width: 92%;
  transform: translate(-50%, 18px) scale(.98);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
  pointer-events:none;
  text-align:center;
}

.airdrop-overlay.is-reveal .airdrop-reveal{
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.airdrop-reveal__media{
  position: relative;
  width: 140px;
  height: 96px;
  margin: 0 auto;
  border-radius: 16px;
  overflow:hidden;
  border: 0;
  background: transparent;
  /* No frame/shadow around the reward image */
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}

.airdrop-reveal__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.airdrop-reveal__name{
  margin-top: 12px;
  font-weight: 1000;
  font-size: 22px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.96);
  text-shadow: 0 12px 28px rgba(0,0,0,.55);
}

@media (max-width: 560px){
  .airdrop-crate{ width:min(420px, 92vw); height:min(420px, 92vw); }
  .airdrop-parachute{ height:220px; }
  .airdrop-reveal__name{ font-size: 18px; }
}
/* Serwery: większa ikonka play */

/* =====================
   Ranking + profil gracza (esport)
   ===================== */

.ranking-summary__head{
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:14px;
}

.ranking-summary__tools{
  min-width: 240px;
}

.ranking-metrics{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:10px;
}

.metric-card{
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
}

.metric-label{
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

.metric-value{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.metric-value--code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  opacity: .95;
  word-break: break-all;
}

.ranking-search{
  margin-top: 12px;
  display:flex;
  justify-content:center;
}

.ranking-search__inner{
  display:flex;
  align-items:center;
  gap:10px;
  width: 100%;
  max-width: 640px;
  padding: 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.ranking-search__inner .input{
  background: transparent;
  border: 0;
  padding: 8px 8px;
  height: auto;
  box-shadow: none;
}

.ranking-search__inner:focus-within{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 0 0 3px rgba(255, 43, 58, .18);
}



.podium-open{ color: rgba(255,255,255,.92); }
.podium-open svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rank-open{ color: rgba(255,255,255,.92); }
.rank-open svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ranking-podium{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.podium-card{
  position: relative;
  padding: 18px 14px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.09);
  display:flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 290px;
  overflow: hidden;
}

.podium-card::before{
  content:"";
  position:absolute;
  inset:0;
  opacity: .65;
  pointer-events:none;
  background: radial-gradient(800px 220px at 50% 0%, rgba(255,255,255,.06), transparent 60%);
}

.podium-card--gold{ border-color: rgba(255, 215, 64, .26); }
.podium-card--silver{ border-color: rgba(210, 220, 235, .22); }
.podium-card--bronze{ border-color: rgba(223, 153, 90, .22); }

.podium-card--gold::before{
  background:
    radial-gradient(800px 220px at 50% 0%, rgba(255, 215, 64, .18), transparent 60%),
    radial-gradient(700px 260px at 0% 30%, rgba(255, 215, 64, .10), transparent 60%);
}
.podium-card--silver::before{
  background:
    radial-gradient(800px 220px at 50% 0%, rgba(210, 220, 235, .16), transparent 60%),
    radial-gradient(700px 260px at 0% 30%, rgba(210, 220, 235, .08), transparent 60%);
}
.podium-card--bronze::before{
  background:
    radial-gradient(800px 220px at 50% 0%, rgba(223, 153, 90, .16), transparent 60%),
    radial-gradient(700px 260px at 0% 30%, rgba(223, 153, 90, .08), transparent 60%);
}

.podium-place{
  position:absolute;
  top: 10px;
  left: 12px;
  font-size: 50px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  opacity: .92;
  z-index: 1;
}

.podium-card--gold .podium-place{ color: rgba(255, 215, 64, .95); }
.podium-card--silver .podium-place{ color: rgba(210, 220, 235, .95); }
.podium-card--bronze .podium-place{ color: rgba(223, 153, 90, .95); }

.podium-open{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  z-index: 1;
}

.podium-open:hover{
  background: rgba(0,0,0,.42);
  border-color: rgba(255,255,255,.18);
}

.podium-open svg{ width: 18px; height: 18px; }

.podium-avatar-lg{
  width: 78px;
  height: 78px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.42);
  margin-top: 46px;
  position: relative;
  z-index: 1;
}

.podium-name{
  margin-top: 10px;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  max-width: 92%;
  word-break: break-word;
}

.podium-metrics{
  margin-top: 12px;
  width: 100%;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  position: relative;
  z-index: 1;
}

.podium-metric{
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

.podium-metric .metric-label{ font-size: 11px; }
.podium-metric .metric-value{ font-size: 15px; margin-top: 4px; }

.podium-badge{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  font-weight: 900;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.podium-avatar{
  width:46px;
  height:46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.2);
}

.podium-name{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.podium-stats{
  display:flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.podium-pill{
  padding: 4px 8px;
  border-radius: inherit;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.ranking-list-card{ margin-top: 12px; }

.ranking-list-head{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom: 10px;
}

.ranking-list{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.rank-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  cursor:pointer;
}

.rank-row:hover{
  background: rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.13);
}

.rank-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 240px;
}

.rank-no{
  width: 44px;
  font-weight: 900;
  color: rgba(255,255,255,.9);
}

.rank-avatar{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
}

.rank-profile{ display:inline-flex; }
.rank-profile:hover .rank-avatar{ border-color: rgba(255,255,255,.22); }

.rank-name{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}

.rank-name:hover{ text-decoration: underline; }

.rank-points{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.rank-right{
  display:flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content:flex-end;
  color: var(--muted);
  font-size: 12px;
}

.rank-statcol{
  display:flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 72px;
}

.rank-statlabel{ font-size: 11px; color: var(--muted); }
.rank-statval{ font-weight: 800; color: rgba(255,255,255,.92); margin-top: 4px; }

.rank-vsep{
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,.10);
}

.rank-open{
  margin-left: 8px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
  flex: 0 0 auto;
}
.rank-open:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
}

.rank-stat b{ color: rgba(255,255,255,.92); }

.ranking-sentinel{ height: 1px; }

/* Profil gracza */
.player-hero{
  display:flex;
  justify-content:space-between;
  gap: 18px;
  align-items:stretch;
}

.player-hero__left{
  display:flex;
  align-items:center;
  gap: 14px;
}

.player-avatar{
  width: 74px;
  height: 74px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
}

.player-name{
  font-size: 20px;
  font-weight: 900;
  line-height:1.1;
}

.player-sub{ margin-top:6px; color: var(--muted); font-size: 12px; }

.player-actions{ margin-top: 10px; display:flex; flex-wrap:wrap; gap: 10px; }

.player-kpis{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
}

.kpi{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  text-align:center;
}

.kpi-label{ color: var(--muted); font-size: 12px; }
.kpi-value{ margin-top: 6px; font-weight: 900; font-size: 16px; }

.player-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}

.weapons-list{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.weapon-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

.weapon-name{ font-weight: 800; }
.weapon-kills{ font-weight: 900; font-size: 16px; text-align:right; }

@media (max-width: 980px){
  .ranking-metrics{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ranking-podium{ grid-template-columns: 1fr; }
  .player-hero{ flex-direction:column; }
  .player-kpis{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .player-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .ranking-metrics{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rank-left{ min-width: 0; }
  .rank-no{ width: 34px; }
}


/* === Player profile revamp === */
.player-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.player-page-head .page-head__title{
  text-align:left;
  flex:1;
  width:auto;
}
.player-page-head .page-title{
  font-weight:800;
  letter-spacing:.2px;
}
.player-page-sub{
  text-align:left;
  max-width:760px;
  margin:8px 0 18px;
}

.player-main{
  padding:18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
}
.player-main__grid{
  display:grid;
  grid-template-columns: 140px 1.2fr 1.2fr 1.1fr;
  gap:18px;
  align-items:center;
}
.pm-avatar{
  width:112px;
  height:112px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  object-fit:cover;
}
.pm-name{
  font-size:26px;
  font-weight:800;
  line-height:1.1;
}
.pm-seen{
  margin-top:6px;
  font-weight:600;
  color: rgba(255,255,255,.65);
}
.pm-rankimg{
  width:100px;
  height:auto;
  margin-top:10px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.pm-line{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  background: rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:8px;
}
.pm-label{
  font-weight:700;
  color: rgba(255,255,255,.70);
  min-width:88px;
}
.pm-value{
  font-weight:700;
  color: rgba(255,255,255,.92);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.icon-btn{
  margin-left:auto;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  background: transparent;
  color: rgba(255,255,255,.85);
  cursor:pointer;
  border-radius:10px;
}
.icon-btn:hover{ background: rgba(255,255,255,.06); }
.icon-btn svg{ width:18px; height:18px; fill:none; stroke: currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }

.pm-steamlink{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 10px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.pm-steamlink:hover{ background: rgba(255,255,255,.07); }
.open-in-new svg{
  width:16px; height:16px;
  fill:none; stroke: rgba(255,255,255,.65);
  stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
}
.pm-kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  justify-items:stretch;
  align-items:stretch;
}
.kpi-tile{
  padding:10px 10px;
  border-radius:14px;
  background: rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.08);
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.kpi-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(255,255,255,.62);
}
.kpi-value{
  margin-top:6px;
  font-size:18px;
  font-weight:900;
  color: rgba(255,255,255,.95);
}



/* Playtime KPI: allow wrapping between units (min/sek, godz/min) */
.kpi-value.kpi-value--split{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:0 6px;
  line-height:1.15;
}
.kpi-value--split .time-part{ white-space:nowrap; }
/* KPI tile modifiers */
.kpi-tile--play{ grid-column: span 2; }

/* Player page header should be left-aligned */
.player-page-head .page-head__title{
  text-align:left;
}
.player-page-head .player-page-sub{
  text-align:left;
  margin-bottom:14px;
}

.player-blocks{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:14px;
}

.player-split{
  grid-column: 1 / -1;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.player-split .player-block{ height:100%; }
.player-split .player-block--weapons,
.player-split .player-block--body{ grid-column:auto; }

.body-grid.body-grid--single{ grid-template-columns: 1fr; }
.body-stats{
  margin-top:10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.body-stat{
  padding:10px 10px;
  border-radius:12px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.body-stat-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: rgba(255,255,255,.62);
}
.body-stat-val{
  font-weight:900;
  color: rgba(255,255,255,.95);
}
.player-block{
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.player-block--weapons,
.player-block--body{
  grid-column: 1 / -1;
}
.block-head{
  margin-bottom:12px;
}
.block-head--row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.block-head h3{
  margin:0;
  font-weight:900;
  letter-spacing:.2px;
}
.stat-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}
.stat-grid--compact{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-tile{
  padding:12px;
  border-radius:14px;
  background: rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.08);
}
.stat-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(255,255,255,.60);
}
.stat-value{
  margin-top:6px;
  font-size:18px;
  font-weight:900;
  color: rgba(255,255,255,.96);
}

.weapons-table-wrap{
  margin-top:10px;
  border-radius:14px;
  overflow:auto;
  border:1px solid rgba(255,255,255,.08);
  max-height: 360px;
}

.weapons-table-wrap.is-expanded{
  max-height: 360px;
}

.weapons-table{
  width:100%;
  border-collapse:collapse;
  background: rgba(0,0,0,.18);
}
.weapons-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12,12,12,.92);
  backdrop-filter: blur(8px);
  font-size:12px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  color: rgba(255,255,255,.70);
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.weapons-table td{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
}
.weapons-table td.num, .weapons-table th.num{ text-align:right; }
.weapons-table tr:hover td{ background: rgba(255,255,255,.03); }
.weapons-table .weapon-name{ font-weight:800; }

.body-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.body-card{
  padding:14px;
  border-radius:16px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
}
.body-title{
  font-weight:900;
  letter-spacing:.2px;
  margin-bottom:8px;
}
.body-figure{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  gap:10px;
  min-height:320px;
}
.body-svg{
  width:50%;
  max-width:none;
  height:auto;
  display:block;
  margin: 0 auto;
}

.body-legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color: rgba(255,255,255,.70);
}
.legend-dot{
  width:10px; height:10px;
  border-radius: inherit;
  display:inline-block;
  margin-right:6px;
  border:1px solid rgba(0,0,0,.25);
}

/* toast */
.toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform: translateX(-50%) translateY(20px);
  opacity:0;
  pointer-events:none;
  background: rgba(0,0,0,.72);
  border:1px solid rgba(255,255,255,.10);
  padding:10px 14px;
  border-radius:14px;
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(255,255,255,.92);
  font-weight:800;
  backdrop-filter: blur(10px);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: opacity .18s ease, transform .18s ease;
  z-index:9999;
}
.toast.is-show{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}
.toast-check{
  width:20px;height:20px;
  display:grid;place-items:center;
  border-radius: inherit;
  background: rgba(34,197,94,.20);
  border:1px solid rgba(34,197,94,.45);
  color: rgba(34,197,94,.95);
}

/* ranking subtitle centered */
.ranking-subdesc{
  text-align:center;
  max-width:760px;
  margin:10px auto 24px;
}

/* responsive */
@media (max-width: 1100px){
  .player-main__grid{ grid-template-columns: 140px 1fr; }
  .pm-col--kpis{ grid-column: 1 / -1; }
  .pm-kpis{ grid-template-columns: repeat(5, minmax(0,1fr)); }
  .player-blocks{ grid-template-columns: 1fr; }
  .stat-grid, .stat-grid--compact{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  /* keep Bans & Mutes KPIs in one row on mid screens */
  .stat-grid.stat-grid--bans{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
/* keep body/weapons side-by-side until smaller screens */
@media (max-width: 900px){
  .player-split{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){

  .pm-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid, .stat-grid--compact{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .body-grid{ grid-template-columns: 1fr; }
}

/* keep Bans & Mutes KPIs in one row on desktop (prevents .stat-grid override later in file) */
body[data-page="bany"] .stat-grid.stat-grid--bans{ grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 720px){
  body[data-page="bany"] .stat-grid.stat-grid--bans{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px){
  body[data-page="bany"] .stat-grid.stat-grid--bans{ grid-template-columns: 1fr; }
}

/* Player KPI split time */
.kpi-split{ display:grid; grid-template-columns:1fr 1fr; gap:10px; justify-items:center; align-items:center; }
.kpi-split-item{ display:flex; flex-direction:column; align-items:center; line-height:1.05; }
.kpi-split-num{ font-weight:900; font-size:18px; }
.kpi-split-unit{ font-size:11px; opacity:.75; letter-spacing:.2px; margin-top:2px; }


/* Admin polish */
body[data-page="admin"] .card{
  padding:18px 18px;
}
body[data-page="admin"] .admin-row{
  margin-bottom:10px;
}
body[data-page="admin"] .admin-section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
body[data-page="admin"] .admin-section__head h2,
body[data-page="admin"] .admin-section__head h3{
  font-weight:900;
  letter-spacing:.2px;
}
body[data-page="admin"] .admin-form{
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px 14px;
}
body[data-page="admin"] .admin-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
}
body[data-page="admin"] .admin-field > span,
body[data-page="admin"] .admin-field label{
  font-size:12px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  color: rgba(255,255,255,.65);
}
body[data-page="admin"] .input, 
body[data-page="admin"] select.input,
body[data-page="admin"] .textarea{
  padding: 12px 14px;
  font-weight:700;
  font-size:14px;
}
body[data-page="admin"] .admin-actions{
  justify-content:flex-end;
}
body[data-page="admin"] .admin-grid{
  gap:14px;
}
body[data-page="admin"] .admin-list > *{
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px 12px;
  margin-bottom: 10px;
}


/* =========================================================
   Pomoc / FAQ
   ========================================================= */

body[data-page="pomoc"] .help-hero{
  text-align:center;
  padding: 8px 0 18px;
}
body[data-page="pomoc"] .help-hero__kicker{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  color: rgba(255,255,255,.62);
}
body[data-page="pomoc"] .help-hero__title{
  margin: 10px 0 0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: .02em;
}

body[data-page="pomoc"] .help-search{
  margin: 18px auto 0;
  max-width: 560px;
  position: relative;
}
body[data-page="pomoc"] .help-search__ico{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .85;
}
body[data-page="pomoc"] .help-search__ico svg{ width: 18px; height: 18px; }
body[data-page="pomoc"] .help-search__ico svg path{ stroke: rgba(255,255,255,.75); stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
body[data-page="pomoc"] .help-search__input{
  width: 100%;
  padding: 14px 14px 14px 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--txt);
  font-weight: 700;
  outline: none;
}
body[data-page="pomoc"] .help-search__input::placeholder{ color: rgba(255,255,255,.45); }
body[data-page="pomoc"] .help-search__input:hover,
body[data-page="pomoc"] .help-search__input:focus{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
}

body[data-page="pomoc"] .help-search__results{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  background: rgba(10,12,16,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}
body[data-page="pomoc"] .help-sres{
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--txt);
}
body[data-page="pomoc"] .help-sres:hover{ background: rgba(255,255,255,.06); }
body[data-page="pomoc"] .help-sres__cat{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
body[data-page="pomoc"] .help-sres__title{ margin-top: 4px; font-weight: 900; }
body[data-page="pomoc"] .help-sres__snip{ margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.35; }
body[data-page="pomoc"] .help-sres__empty{ padding: 14px; color: rgba(255,255,255,.70); }

body[data-page="pomoc"] .help-shell{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
}
body[data-page="pomoc"] .help-nav{
  padding: 18px 14px;
  min-height: 520px;
}
body[data-page="pomoc"] .help-nav__title{
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 12px;
}
body[data-page="pomoc"] .help-cats{ display: flex; flex-direction: column; gap: 10px; }

body[data-page="pomoc"] .help-cat{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
body[data-page="pomoc"] .help-cat__btn{
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--txt);
}
body[data-page="pomoc"] .help-cat__btn:hover{ background: rgba(255,255,255,.04); }
body[data-page="pomoc"] .help-cat__ico{ width: 22px; text-align: center; }
body[data-page="pomoc"] .help-cat__name{ font-weight: 900; }
body[data-page="pomoc"] .help-cat__chev{ margin-left: auto; opacity: .80; transform: rotate(0deg); transition: transform .18s ease; }
body[data-page="pomoc"] .help-cat__chev svg{ width: 16px; height: 16px; }
body[data-page="pomoc"] .help-cat__chev svg path{ stroke: rgba(255,255,255,.75); stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
body[data-page="pomoc"] .help-cat.is-open .help-cat__chev{ transform: rotate(90deg); }

body[data-page="pomoc"] .help-cat__body{ display: none; padding: 0 8px 10px; }
body[data-page="pomoc"] .help-cat.is-open .help-cat__body{ display: block; }

body[data-page="pomoc"] .help-link{
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(255,255,255,.76);
  font-weight: 700;
  line-height: 1.25;
}
body[data-page="pomoc"] .help-link:hover{ background: rgba(255,255,255,.04); color: rgba(255,255,255,.92); }
body[data-page="pomoc"] .help-link.is-active{ background: rgba(59,130,246,.16); border: 1px solid rgba(59,130,246,.28); color: rgba(255,255,255,.96); }

body[data-page="pomoc"] .help-content{
  padding: 18px 18px;
  min-height: 520px;
}
body[data-page="pomoc"] .help-content__meta{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
body[data-page="pomoc"] .help-content__title{
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.2;
}
body[data-page="pomoc"] .help-article{
  margin-top: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}
body[data-page="pomoc"] .help-article h2{ font-size: 20px; margin: 14px 0 10px; }
body[data-page="pomoc"] .help-article h3{ font-size: 17px; margin: 14px 0 10px; }
body[data-page="pomoc"] .help-article p{ margin: 0 0 10px; color: rgba(255,255,255,.82); }
body[data-page="pomoc"] .help-article ul,
body[data-page="pomoc"] .help-article ol{ margin: 8px 0 12px 18px; color: rgba(255,255,255,.78); }
body[data-page="pomoc"] .help-article li{ margin: 6px 0; }
body[data-page="pomoc"] .help-article a{ color: #9bc5ff; font-weight: 800; }
body[data-page="pomoc"] .help-article img{ max-width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.10); }

body[data-page="pomoc"] .help-callout{
  margin: 12px 0;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(245,158,11,.26);
  background: rgba(245,158,11,.08);
  color: rgba(255,255,255,.88);
}

@media (max-width: 980px){
  body[data-page="pomoc"] .help-shell{ grid-template-columns: 1fr; }
  body[data-page="pomoc"] .help-nav{ min-height: unset; }
  body[data-page="pomoc"] .help-content{ min-height: unset; }
}
@media (max-width: 520px){
  body[data-page="pomoc"] .help-hero__title{ font-size: 34px; }
}


/* =========================================================
   Admin: FAQ editor
   ========================================================= */
body[data-page="admin"] .rte{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
body[data-page="admin"] .rte__toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
body[data-page="admin"] .rte__btn{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.86);
  font-weight: 900;
  cursor: pointer;
}
body[data-page="admin"] .rte__btn:hover{ background: rgba(255,255,255,.05); }
body[data-page="admin"] .rte__editor{
  min-height: 220px;
  padding: 12px 12px;
  outline: none;
  line-height: 1.55;
}
body[data-page="admin"] .rte__editor:empty:before{
  content: attr(data-placeholder);
  color: rgba(255,255,255,.42);
  font-weight: 700;
}


/* Bans status colors */
.ban-pill--active-red{ border-color: rgba(255,90,110,.32); color: rgba(255,230,234,.95); }
.ban-pill--active-red .ban-pill__dot{ background: rgba(255,90,110,.85); }

.ban-pill--served{ border-color: rgba(255,170,75,.28); color: rgba(255,242,228,.95); }
.ban-pill--served .ban-pill__dot{ background: rgba(255,170,75,.85); }

.ban-pill--unbanned{ border-color: rgba(80,230,150,.26); color: rgba(230,255,244,.95); }
.ban-pill--unbanned .ban-pill__dot{ background: rgba(80,230,150,.85); }


body[data-page="bany"] .stat-grid--bans .kpi-ico{ display:none !important; }
body[data-page="bany"] .stat-grid--bans .kpi-chev{ display:none !important; }
.stat-value--icon{ display:flex; align-items:center; justify-content:flex-start; }
.kpi-eye{ width: 22px; height: 22px; }
.kpi-eye path{ stroke: rgba(255,255,255,.9); stroke-width:2; fill:none; stroke-linecap: round; stroke-linejoin: round; }

/* ensure 4 KPI tiles stay in one row on desktop */
body[data-page="bany"] .stat-grid.stat-grid--bans{ grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 720px){
  body[data-page="bany"] .stat-grid.stat-grid--bans{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

#banModal .modal__head, #adminRankModal .modal__head{ border-bottom: 0 !important; }
#banModalFooter{ border-top: 0 !important; }

@media (max-width: 480px){
  body[data-page="bany"] .stat-grid.stat-grid--bans{ grid-template-columns: 1fr; }
}


/* ---------- UX polish (less "AI-uniform" rounding) ---------- */
.card{
  box-shadow: var(--shadow1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}

/* nav external-link mini icon (Discord / Sklep / Skiny) */
.nav-ext{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .55;
}
.nav-ext svg{
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.nav-item:hover .nav-ext{ opacity: .9; }
body.sidebar-compact .nav-ext{ display:none; }

/* Sidebar compact: ukrywa tekst i zwęża (bez przesuwania) */
body.sidebar-compact .app{
  grid-template-columns: var(--sidebar-w-compact) 1fr var(--rail-w);
}
body.sidebar-compact .sidebar{
  /* w trybie compact: sidebar zostaje na miejscu, tylko robi się węższy */
  width: 100%;
  margin-left: 0;
  border-right: 1px solid var(--border);
  transition: border-color .18s ease;
}

body.sidebar-compact .brand__text{ display:none; }
body.sidebar-compact .nav-label{ display:none; }
body.sidebar-compact .nav{ padding: 12px 14px; }
body.sidebar-compact .nav-item{
  padding: 10px 0;
  justify-content: center;
}
body.sidebar-compact .nav-item.is-active::before{
  left: -14px;
}


/* Drawer tabs */
.drawer-tabs{
  display:flex;
  gap:8px;
  padding: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  flex-wrap: wrap;
  overflow: hidden;
}
.drawer-tabs::-webkit-scrollbar{ display:none; }

.drawer-tabs--equal{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
}
.drawer-tabs--equal .drawer-tab{
  width: 100%;
  justify-content: center;
}

.drawer-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  cursor:pointer;
  white-space:nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.drawer-tab:hover{
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.drawer-tab.is-active{
  background: color-mix(in srgb, var(--accent1) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent1) 32%, var(--border2));
  color: var(--text);
}
.drawer-tab__count{
  display:inline-flex;
  min-width: 22px;
  justify-content:center;
  padding: 2px 7px;
  border-radius: inherit;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-weight: 900;
}

/* Notifications */
.drawer-block__title{
  font-weight: 900;
  margin: 2px 2px 10px;
}
.notif-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.notif-card{
  display:flex;
  gap:12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.notif-card.is-unread{
  border-color: color-mix(in srgb, var(--accent1) 55%, var(--border));
  background: color-mix(in srgb, var(--accent1) 12%, rgba(255,255,255,.02));
  border-left: 3px solid var(--accent1);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent1) 16%, transparent);
}
.notif-ico{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border2);
  flex: 0 0 auto;
}
.notif-ico svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.notif-top{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
}
.notif-time{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}
.notif-badges{ display:flex; align-items:center; gap:8px; }
.notif-pill{
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent1) 35%, transparent);
  background: color-mix(in srgb, var(--accent1) 18%, transparent);
  color: var(--accent1);
  letter-spacing: .35px;
  text-transform: uppercase;
}
.notif-card.is-unread .notif-msg{ font-weight: 900; }
.notif-msg{
  font-weight: 800;
  line-height: 1.25;
  margin-top: 4px;
}

/* Rewards */
.reward-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
}
.reward-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.reward-img{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  object-fit: cover;
  flex: 0 0 auto;
}
.reward-name{
  font-weight: 900;
}
.reward-meta{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}
.reward-pill{
  margin-left: auto;
  padding: 6px 10px;
  border-radius: inherit;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.02);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.reward-pill__coin{
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: inline-block;
}
/* Micro-interactions */
.card.is-hoverable{ transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card.is-hoverable:hover{ transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent2) 20%, var(--border)); box-shadow: 0 10px 30px rgba(0,0,0,.35); }


/* =========================================================
   Zadania (tiles)
   ========================================================= */
body[data-page="zadania"] .task-card{
  position: relative;
  overflow: hidden;
  padding: 14px;
  min-height: 220px;
  display:flex;
  flex-direction:column;
  cursor:pointer;
  /* Used to keep the VIP bar rounding perfectly aligned with the card,
     even when VIP border is thicker (3px). */
  --task-radius: 16px;
  --task-borderw: 1px;
}

@media (min-width: 901px){
  body[data-page="zadania"] .task-card{ aspect-ratio: 2 / 3; }
}

body[data-page="zadania"] .task-card__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  opacity: .92;
}

body[data-page="zadania"] .task-card__shade{
  position:absolute;
  inset:0;
  border-radius: inherit;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(148,163,184,.20), transparent 60%),
    linear-gradient(180deg, rgba(5,8,14,.25), rgba(5,8,14,.85));
  pointer-events:none;
}

body[data-page="zadania"] .task-card.is-vip .task-card__shade{
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(250,204,21,.24), transparent 60%),
    linear-gradient(180deg, rgba(5,8,14,.25), rgba(5,8,14,.85));
}


/* VIP_BORDER_V7 */
body[data-page="zadania"] .task-card.is-vip{
  border: 3px solid rgba(250,204,21,.65);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(250,204,21,.22), 0 0 24px rgba(250,204,21,.22);
  --task-borderw: 3px;
}

body[data-page="zadania"] .task-card.is-vip:hover{
  border-color: rgba(250,204,21,.85);
  box-shadow: 0 12px 34px rgba(0,0,0,.38), 0 0 0 1px rgba(250,204,21,.24), 0 0 28px rgba(250,204,21,.28);
}

body[data-page="zadania"] .task-card.is-vip:focus-visible{
  border-color: rgba(250,204,21,.85);
  box-shadow: 0 12px 34px rgba(0,0,0,.38), 0 0 0 1px rgba(250,204,21,.24), 0 0 28px rgba(250,204,21,.28);
}



body[data-page="zadania"] .task-card__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display:flex;
  flex-direction:column;
  padding-top: 26px;
}

body[data-page="zadania"] .task-card__peek{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  opacity:0;
  background: rgba(0,0,0,0);
  transition: opacity .18s ease, background .18s ease;
  pointer-events:none;
  z-index: 10;
}

body[data-page="zadania"] .task-card__peek svg{
  width: 64px;
  height: 64px;
  color: rgba(255,255,255,.92);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.30));
}

body[data-page="zadania"] .task-card:hover .task-card__peek{
  opacity: 1;
  background: rgba(0,0,0,.72);
}

body[data-page="zadania"] .task-card:focus-visible .task-card__peek{
  opacity: 1;
  background: rgba(0,0,0,.72);
}

/* Modal: summary tile (right side) */
body[data-page="zadania"] .task-summary{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  min-height: 220px;
  --task-radius: 18px;
  --task-borderw: 1px;
}


/* VIP_SUMMARY_BORDER_V7 */
body[data-page="zadania"] .task-summary.is-vip{
  border: 3px solid rgba(250,204,21,.65);
  box-shadow: 0 0 0 1px rgba(250,204,21,.22), 0 0 28px rgba(250,204,21,.20);
  --task-borderw: 3px;
}


body[data-page="zadania"] .task-summary__shade{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(148,163,184,.20), transparent 60%),
    linear-gradient(180deg, rgba(5,8,14,.20), rgba(5,8,14,.78));
  pointer-events: none;
}

body[data-page="zadania"] .task-summary.is-vip .task-summary__shade{
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(250,204,21,.24), transparent 60%),
    linear-gradient(180deg, rgba(5,8,14,.20), rgba(5,8,14,.78));
}

body[data-page="zadania"] .task-summary__content{
  position: relative;
  z-index: 2;
  padding: 14px;
  padding-top: 46px; /* keeps content aligned even with VIP bar */
  display: flex;
  flex-direction: column;
  height: 100%;
}


body[data-page="zadania"] .task-summary__rewardline{
  font-weight: 950;
  color: rgba(255,255,255,.92);
  letter-spacing: .2px;
}

body[data-page="zadania"] .task-summary__rewardval{
  font-weight: 1000;
  color: rgba(255,255,255,.92);
}

body[data-page="zadania"] .task-summary .task-progress--modal{
  padding-top: 0;
}
body[data-page="zadania"] .task-vipbar.task-vipbar--compact{
  padding: 6px 10px;
  justify-content: flex-start;
  gap: 6px;
}

body[data-page="zadania"] .task-progress__login{
  color: rgba(255,255,255,.86);
  font-weight: 950;
}

body[data-page="zadania"] .task-times{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.68);
  font-weight: 850;
}


body[data-page="zadania"] .task-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

body[data-page="zadania"] .task-card__title{
  font-weight: 1000;
  letter-spacing: .2px;
  line-height: 1.1;
  font-size: 15px;
}

body[data-page="zadania"] .task-card__reward{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 215, 140, .28);
  background: linear-gradient(180deg, rgba(255, 208, 76, .28), rgba(255, 208, 76, .16));
  color: rgba(255,255,255,.92);
  font-weight: 950;
  font-size: 12px;
  white-space:nowrap;
}

body[data-page="zadania"] .task-card__reward .task-coin{
  width: 18px;
  height: 18px;
  display:block;
}

body[data-page="zadania"] .task-card__desc{
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-page="zadania"] .task-card__meta{
  margin-top: 10px;
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-page="zadania"] .task-meta-pill{
  padding: 6px 10px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 850;
}

body[data-page="zadania"] .task-progress{
  margin-top: auto;
  padding-top: 12px;
}

body[data-page="zadania"] .task-progress__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  font-weight: 850;
}

body[data-page="zadania"] .task-progress__top strong{ color: rgba(255,255,255,.92); }

body[data-page="zadania"] .task-progress__track{
  margin-top: 8px;
  height: 10px;
  border-radius: inherit;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) inset;
}

body[data-page="zadania"] .task-progress__fill{
  height: 100%;
  width: 0%;
  border-radius: inherit;
  /* Kolor ustawia JS (5 stopni: pomarańcz -> zielony) przez --task-progress-h */
  background: linear-gradient(
    90deg,
    hsl(var(--task-progress-h, 120) 78% 42%),
    hsl(var(--task-progress-h, 120) 88% 56%)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 0 18px hsl(var(--task-progress-h, 120) 85% 50% / .28);
  transition: width .35s ease, background .25s ease, box-shadow .25s ease;
}

/* VIP bar (ONLY VIP) */
body[data-page="zadania"] .task-vipbar{
  position:absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  pointer-events:none;
  padding: 6px 12px;
  gap: 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(90deg, rgba(255, 208, 76, .34), rgba(250, 204, 21, .22));
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  /* IMPORTANT: the VIP bar sits *inside* the border. When VIP border becomes
     thicker (3px), using the full parent radius (16/18px) makes the bar round
     "too much" and exposes the image at the corners. We therefore match the
     *inner* radius (radius - border width). */
  border-top-left-radius: calc(var(--task-radius) - var(--task-borderw));
  border-top-right-radius: calc(var(--task-radius) - var(--task-borderw));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body[data-page="zadania"] .task-vipbar span{
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .16em;
  color: rgba(255, 231, 110, .98);
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
}


body[data-page="zadania"] .task-vipbar__crown{
  width: 14px;
  height: 14px;
  display:block;
  color: rgba(255, 231, 110, .98);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

/* Search inputs (like on /bany) */
.input.input--search{
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z' fill='none' stroke='%23cfd6e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16.3 16.3 21 21' fill='none' stroke='%23cfd6e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px 50%;
  background-size: 18px 18px;
}


/* =========================
   SITE FOOTER (admin-managed)
   ========================= */
.site-footer{
  margin-top: 46px;
  position: relative;
  background: rgba(8, 12, 20, .92);
  /* full-bleed inside .main padding */
  margin-left: calc(var(--main-pad) * -1);
  margin-right: calc(var(--main-pad) * -1);
}

.site-footer::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: rgba(255,255,255,.07);
}
.site-footer__inner{
  width: 80%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 34px 22px 18px;
}

@media (max-width: 980px){
  .site-footer__inner{ width: 100%; }
}

.site-footer__grid{
  display:grid;
  grid-template-columns: 1.2fr .85fr .85fr 1fr;
  gap: 28px;
  align-items:start;
}

.site-footer svg path,
.site-footer svg circle,
.site-footer svg rect,
.site-footer svg line,
.site-footer svg polyline,
.site-footer svg polygon{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Footer columns layout (3 vs 4) */
.site-footer--cols3 .site-footer__grid{
  grid-template-columns: 1.2fr 1fr 1fr;
}
.site-footer--cols4 .site-footer__grid{
  grid-template-columns: 1.2fr .85fr .85fr 1fr;
}
.f-title{
  font-weight: 1000;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 80%, var(--muted));
  margin-bottom: 14px;
  position: relative;
}
.f-title::after{
  content:'';
  display:block;
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background: rgba(255,255,255,.10);
  opacity: .9;
}
.f-brand{
  display:flex;
  gap: 14px;
  align-items:flex-start;
}
.f-logo{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border2);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  overflow:hidden;
}
.f-logo img{ width: 100%; height: 100%; object-fit: cover; display:block; }
.f-brand-name{ font-weight: 1000; font-size: 14px; }
.f-brand-sub{ margin-top: 4px; color: var(--muted); font-weight: 800; font-size: 12px; line-height: 1.35; }
.f-lines{ margin-top: 10px; color: var(--muted); font-weight: 800; font-size: 12px; line-height: 1.35; }
.f-links{ display:flex; flex-direction:column; gap:10px; }
.f-link{
  color: var(--muted);
  text-decoration:none;
  font-weight: 850;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  transition: color .16s ease, transform .16s ease;
}
.f-link:hover{ color: var(--text); transform: translateX(2px); }
.site-footer .nav-ext{ margin-left: 6px; opacity: .6; }
.site-footer a:hover .nav-ext{ opacity: .9; }
.f-actions{ display:flex; flex-direction:column; gap:10px; }
.f-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: var(--r-chip);
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.02);
  color: var(--text);
  text-decoration:none;
  font-weight: 900;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.f-pill:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent2) 30%, var(--border2));
  box-shadow: var(--accentGlow);
}
.f-pill svg{ width: 18px; height: 18px; }
.site-footer__bottom{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.site-footer__bottom a{ color: color-mix(in srgb, var(--accent2) 70%, var(--text)); text-decoration:none; font-weight: 900; }
.site-footer__bottom a:hover{ color: var(--text); }
@media (max-width: 980px){
  .site-footer__grid{ grid-template-columns: 1fr; gap: 18px; }
}

/* =========================================================
   Zrzuty — kafelki (styl jak Zadania)
   ========================================================= */
body[data-page="zrzuty"] .drop-card.task-card{
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(80, 94, 132, .35);
  background: rgba(20, 24, 35, .55);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
body[data-page="zrzuty"] .drop-card.task-card.is-vip{
  border: 3px solid rgba(247, 196, 84, .95);
  box-shadow: 0 0 0 1px rgba(247, 196, 84, .35), 0 22px 55px rgba(0,0,0,.55);
}
body[data-page="zrzuty"] .drop-card .task-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}
body[data-page="zrzuty"] .drop-card .task-card__shade{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events:none;
  background:
    radial-gradient(1200px 420px at -8% -20%, rgba(180, 186, 205, .18), transparent 55%),
    radial-gradient(900px 400px at 110% 0%, rgba(180, 186, 205, .12), transparent 55%),
    linear-gradient(180deg, rgba(10, 12, 18, .25) 0%, rgba(10, 12, 18, .88) 100%);
}

/* Hover: przyciemnij kafelek, ale CTA pozostaje jasne (CTA ma wyższy z-index) */
body[data-page="zrzuty"] .drop-card .task-card__shade::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .18s ease;
}
body[data-page="zrzuty"] .drop-card:hover .task-card__shade::after,
body[data-page="zrzuty"] .drop-card:focus-visible .task-card__shade::after{
  opacity: 1;
}
body[data-page="zrzuty"] .drop-card.is-vip .task-card__shade{
  background:
    radial-gradient(800px 380px at 0% 0%, rgba(255, 215, 120, .26), transparent 60%),
    radial-gradient(700px 380px at 110% -10%, rgba(255, 215, 120, .18), transparent 60%),
    linear-gradient(180deg, rgba(10, 12, 18, .25) 0%, rgba(10, 12, 18, .88) 100%);
}

body[data-page="zrzuty"] .drop-namebar{
  position:absolute;
  left: 10px;
  top: 10px;
  z-index: 6;
  max-width: calc(100% - 20px);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(80, 94, 132, .45);
  background: rgba(16, 20, 30, .55);
  backdrop-filter: blur(10px);
  font-weight: 1000;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-page="zrzuty"] .drop-card.is-vip .drop-namebar{
  border-color: rgba(255, 215, 120, .65);
  background: rgba(35, 27, 12, .55);
}

/* VIP badge (prawy górny róg, ścięcie 45°) */
body[data-page="zrzuty"] .drop-vip-badge{
  position:absolute;
  top: 10px;
  right: 10px;
  z-index: 7;
  pointer-events:none;
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 8px 10px 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 120, .78);
  background: rgba(35, 27, 12, .72);
  color: rgba(255, 215, 120, .98);
  font-weight: 1000;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
  /* bez "ścięcia" — poprzedni clip-path potrafił wyglądać jak uszkodzony róg */
}
body[data-page="zrzuty"] .drop-vip-badge__crown{
  width: 14px;
  height: 14px;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

body[data-page="zrzuty"] .drop-card .task-card__content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Status nad CTA */
body[data-page="zrzuty"] .drop-status{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  font-weight: 950;
  font-size: 12px;
  color: rgba(235, 245, 255, .86);
  text-shadow: 0 10px 22px rgba(0,0,0,.55);
}
body[data-page="zrzuty"] .drop-status .dot{ margin-right: 0; }
body[data-page="zrzuty"] .drop-status.is-ready,
body[data-page="zrzuty"] .drop-status.is-waiting{ box-shadow: none; }

body[data-page="zrzuty"] .drop-subtitle{
  font-weight: 850;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.2;
  min-height: 16px;
  text-shadow: 0 8px 22px rgba(0,0,0,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page="zrzuty"] .drop-timer{
  font-weight: 900;
  font-size: 12px;
  color: rgba(225, 235, 255, .82);
  letter-spacing: .25px;
  text-shadow: 0 10px 22px rgba(0,0,0,.55);
}

body[data-page="zrzuty"] .drop-cta{
  display:flex;
  align-items:center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(80, 94, 132, .55);
  background: rgba(16, 20, 30, .55);
  backdrop-filter: blur(10px);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .5px;
  cursor: pointer;
  user-select: none;
}
/* Kafelka przyciemnia się na hover, ale CTA ma nadal działać jak przycisk */
body[data-page="zrzuty"] .drop-card:hover .drop-cta:not(:hover){
  border-color: rgba(80, 94, 132, .55);
  box-shadow: none;
}
body[data-page="zrzuty"] .drop-cta:hover{
  border-color: rgba(180, 186, 205, .55);
  background: rgba(16, 20, 30, .70);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 10px 26px rgba(0,0,0,.28);
}

/* Ikonka skrzynki na hover (bez przyciemniania CTA) */
body[data-page="zrzuty"] .drop-card .task-card__peek{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top: 92px;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events:none;
  z-index: 5;
  background: transparent;
}
body[data-page="zrzuty"] .drop-card .task-card__peek svg{
  width: 84px;
  height: 84px;
  color: rgba(255,255,255,.92);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.30));
}
body[data-page="zrzuty"] .drop-card:hover .task-card__peek,
body[data-page="zrzuty"] .drop-card:focus-visible .task-card__peek{
  opacity: 1;
}

/* =========================================================
   Zrzut — detal
   ========================================================= */
body[data-page="zrzut"] .airdrop-detail-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 14px;
}
body[data-page="zrzut"] .airdrop-hero{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(80, 94, 132, .35);
  background: rgba(16, 20, 30, .45);
  height: 320px;
}
body[data-page="zrzut"] .airdrop-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body[data-page="zrzut"] .airdrop-left__body{
  /* a bit of air after the artwork, minimal air after the hint */
  padding: 12px 16px 1px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body[data-page="zrzut"] .airdrop-order-btn{
  width: 100%;
  margin-top: 0;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .6px;
}
body[data-page="zrzut"] .airdrop-order-sub{
  margin-top: 8px;
  min-height: 16px;
}

body[data-page="zrzut"] .airdrop-hint{
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 980px){
  body[data-page="zrzut"] .airdrop-detail-grid{ grid-template-columns: 1fr; }
  body[data-page="zrzut"] .airdrop-hero{ height: 260px; }
}


/* =========================================================
   Grid helper: 5 columns
   ========================================================= */
.grid-5{ display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 1400px){
  .grid-5{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  .grid-5{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px){
  .grid-5{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .grid-5{ grid-template-columns: 1fr; }
}

/* =========================================================
   Zrzut — detal (update)
   ========================================================= */
body[data-page="zrzut"] .airdrop-left{ overflow:hidden; }

body[data-page="zrzut"] .airdrop-hero{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body[data-page="zrzut"] .airdrop-hero__veil{
  position:absolute;
  inset: 0;
  background:
    radial-gradient(1000px 420px at 30% 15%, rgba(0,0,0,.28), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.34));
  pointer-events:none;
  z-index: 1;
}

body[data-page="zrzut"] .airdrop-hero__top{
  position:absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

body[data-page="zrzut"] .airdrop-ready{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: inherit;
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
}

body[data-page="zrzut"] .airdrop-ready__ico svg{
  width: 16px;
  height: 16px;
  display:block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="zrzut"] .airdrop-ready.is-ready{
  border-color: rgba(80, 255, 160, .22);
  color: rgba(120, 255, 185, .95);
  background: rgba(14, 70, 40, .20);
}

body[data-page="zrzut"] .airdrop-ready.is-locked{
  border-color: rgba(255, 85, 85, .18);
  color: rgba(255, 125, 125, .92);
  background: rgba(70, 20, 20, .18);
}

body[data-page="zrzut"] .airdrop-ready.is-guest{
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.18);
}

body[data-page="zrzut"] .airdrop-hero__center{
  position:absolute;
  inset: 0;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:flex-end;
  gap: 6px;
  padding: 14px 18px 12px;
  z-index: 3;
}

body[data-page="zrzut"] .airdrop-order-btn--hero{
  width: min(520px, 100%);
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .9px;
  text-transform: uppercase;
  box-shadow: 0 18px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08), var(--accentGlow);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
}

body[data-page="zrzut"] .airdrop-order-btn--hero:disabled,
body[data-page="zrzut"] .airdrop-order-btn--hero[aria-disabled="true"]{
  opacity: .72;
  transform: none;
  cursor: not-allowed;
}

body[data-page="zrzut"] .airdrop-order-btn--hero:disabled:hover,
body[data-page="zrzut"] .airdrop-order-btn--hero[aria-disabled="true"]:hover{
  transform: none;
  box-shadow: 0 22px 60px rgba(0,0,0,.38);
}

body[data-page="zrzut"] #airdropHint{
  width: min(520px, 100%);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.35;
  margin-top: -2px !important;
  color: rgba(255,255,255,.96);
  font-weight: 650;
}

/* Wymogi: czas gry na zielono */
body[data-page="zrzut"] .req-bar.req-bar--time{
  border-color: rgba(60, 200, 120, .30);
  background: rgba(60, 200, 120, .08);
}

body[data-page="zrzut"] .req-bar.req-bar--time .req-bar__fill{
  background: linear-gradient(90deg, rgba(60, 200, 120, .92), rgba(120, 255, 210, .78));
  box-shadow: 0 18px 40px rgba(60, 200, 120, .20);
}

body[data-page="zrzut"] .req-bar.req-bar--time .req-bar__label,
body[data-page="zrzut"] .req-bar.req-bar--time .req-bar__label span:last-child{
  color: rgba(215, 255, 235, .95);
}

body[data-page="zrzut"] .airdrop-order-btn--hero .btn__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right: 8px;
  vertical-align: middle;
}

body[data-page="zrzut"] .airdrop-order-btn--hero .btn__icon svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="zrzut"] .airdrop-right{
  display:flex;
  flex-direction: column;
}

body[data-page="zrzut"] .airdrop-reqs{
  margin-top: auto;
  padding-top: 12px;
}

body[data-page="zrzut"] .airdrop-req-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

body[data-page="zrzut"] .req-bar{
  position: relative;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.14) inset;
}

body[data-page="zrzut"] .req-bar__fill{
  position:absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  box-shadow: var(--accentGlow);
}

body[data-page="zrzut"] .req-bar__label{
  position: relative;
  z-index: 2;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  font-weight: 1000;
  font-size: 12.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

body[data-page="zrzut"] .req-bar__label span:last-child{
  font-weight: 900;
  text-transform: none;
  color: rgba(255,255,255,.80);
  white-space: nowrap;
}

body[data-page="zrzut"] .req-sub{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.58);
}

/* VIP requirement as a bar (green when active) */
body[data-page="zrzut"] .req-bar.req-bar--vip{
  height: 40px;
}

body[data-page="zrzut"] .req-bar.req-bar--vip.is-ok{
  border-color: rgba(60, 200, 120, .30);
  background: rgba(60, 200, 120, .08);
}

body[data-page="zrzut"] .req-bar.req-bar--vip.is-ok .req-bar__fill{
  background: linear-gradient(90deg, rgba(60, 200, 120, .92), rgba(120, 255, 210, .78));
  box-shadow: 0 18px 40px rgba(60, 200, 120, .20);
}

body[data-page="zrzut"] .req-bar.req-bar--vip.is-ok .req-bar__label,
body[data-page="zrzut"] .req-bar.req-bar--vip.is-ok .req-bar__label span:last-child{
  color: rgba(215, 255, 235, .95);
}

body[data-page="zrzut"] .req-bar.req-bar--vip.is-bad{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

body[data-page="zrzut"] .req-bar.req-bar--vip.is-bad .req-bar__fill{
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

body[data-page="zrzut"] .req-bar.req-bar--vip.is-bad .req-bar__label,
body[data-page="zrzut"] .req-bar.req-bar--vip.is-bad .req-bar__label span:last-child{
  color: rgba(255,255,255,.72);
}

body[data-page="zrzut"] .req-vip-row{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 950;
  font-size: 13px;
}

body[data-page="zrzut"] .req-box{
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.18) inset;
  flex: 0 0 auto;
}

body[data-page="zrzut"] .req-vip-row.is-ok{
  color: rgba(250, 204, 21, .95);
}
body[data-page="zrzut"] .req-vip-row.is-ok .req-box{
  border-color: rgba(250, 204, 21, .35);
  background: rgba(250, 204, 21, .16);
}

body[data-page="zrzut"] .req-vip-row.is-bad{
  color: rgba(255, 110, 110, .95);
}
body[data-page="zrzut"] .req-vip-row.is-bad .req-box{
  border-color: rgba(255, 110, 110, .32);
  background: rgba(255, 110, 110, .14);
}

/* Reward tiles in 5-col grid */
body[data-page="zrzut"] .reward-tile{ padding: 10px; }

body[data-page="zrzut"] .reward-tile__media{
  position: relative;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

body[data-page="zrzut"] .reward-tile__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

body[data-page="zrzut"] .reward-tile__label{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 10px 9px;
  font-weight: 1000;
  font-size: 12.5px;
  color: rgba(255,255,255,.95);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.58));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Hero order button: extra frame + shine */
body[data-page="zrzut"] .airdrop-order-btn--hero::after{
  content:"";
  position:absolute;
  inset: 1px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.16);
  pointer-events:none;
  opacity: .9;
}

body[data-page="zrzut"] .airdrop-order-btn--hero::before{
  content:"";
  position:absolute;
  inset:-60% -30% auto -30%;
  height: 140%;
  background: radial-gradient(400px 120px at 50% 40%, rgba(255,255,255,.22), rgba(255,255,255,0));
  transform: rotate(-10deg);
  opacity: .65;
  pointer-events:none;
}

body[data-page="zrzut"] .airdrop-order-btn--hero:hover::before{
  opacity: .8;
}

@media (max-width: 560px){
   .airdrop-reveal__media{ width: 200px; height: 140px; }
}

/* Ranking: VIP glow on avatars */
.rank-profile.vip-frame .rank-avatar{
  border-color: rgba(245,197,66,.65);
  box-shadow:
    0 0 0 2px rgba(245,197,66,.95),
    0 0 14px rgba(245,197,66,.22);
}
.podium-profile.vip-frame .podium-avatar-lg{
  border-color: rgba(245,197,66,.65);
  box-shadow:
    0 0 0 2px rgba(245,197,66,.95),
    0 0 18px rgba(245,197,66,.22);
}

/* Profile drawer: VIP glow */
.user__avatar-wrap.vip-frame{
  box-shadow:
    0 0 0 2px rgba(245,197,66,.95),
    0 0 18px rgba(245,197,66,.22);
  border-color: rgba(245,197,66,.65);
}


/* VIP frame animation */
@keyframes vipGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(245,197,66,.95),
      0 0 18px rgba(245,197,66,.22),
      0 0 36px rgba(245,197,66,.14);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(245,197,66,1),
      0 0 24px rgba(245,197,66,.34),
      0 0 48px rgba(245,197,66,.22);
  }
}

.rail-btn.vip-frame,
.pm-avatar-wrap.vip-frame,
.user__avatar-wrap.vip-frame{
  animation: vipGlowPulse 4.5s ease-in-out infinite;
}

.rank-profile.vip-frame .rank-avatar,
.podium-profile.vip-frame .podium-avatar-lg{
  animation: vipGlowPulse 4.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce){
  .rail-btn.vip-frame,
  .pm-avatar-wrap.vip-frame,
  .user__avatar-wrap.vip-frame,
  .rank-profile.vip-frame .rank-avatar,
  .podium-profile.vip-frame .podium-avatar-lg{
    animation: none !important;
  }
}


/* === PATCHES: Feb 2026 (user tweaks) === */
/* Ranking subtitle: align left */
body[data-page="ranking"] .page-head .ranking-subdesc{ text-align:left; }

/* Logos: remove frame/border so PNG isn't clipped */
.brand__mark{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.brand__mark img{ border-radius: 0 !important; }

.f-logo{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* Footer stick to bottom even on short pages */
.site-footer{ margin-top: auto; }

/* Rewards drawer: scroll only the rewards list (not the whole drawer) */
#drawerRewards .drawer__content{ overflow: hidden; }
#drawerRewards .drawer-block{
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
#drawerRewards .reward-stack{
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.10) transparent;
}
#drawerRewards .reward-stack::-webkit-scrollbar{ width: 10px; }
#drawerRewards .reward-stack::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.10); border-radius: 999px; }
#drawerRewards .reward-stack::-webkit-scrollbar-track{ background: transparent; }

/* Notifications drawer: scrollbar style same as rewards */
#drawerNotif .drawer__content{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.10) transparent;
}
#drawerNotif .drawer__content::-webkit-scrollbar{ width: 10px; }
#drawerNotif .drawer__content::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.10); border-radius: 999px; }
#drawerNotif .drawer__content::-webkit-scrollbar-track{ background: transparent; }

/* Zrzuty: show whole 408x612 artwork (no crop) */
body[data-page="zrzuty"] .drop-card .task-card__img{
  object-fit: contain;
  padding: 45px;
  box-sizing: border-box;
}

/* Zrzut: hero image is a background-image; keep it fully visible */
body[data-page="zrzut"] .airdrop-hero{
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Zrzut: reward images fully visible */
body[data-page="zrzut"] .reward-tile__media img{
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

/* Profile: trade url hint smaller + underlined (class added via JS) */
.trade-url-help{
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--accent1);
  font-weight: 400;
}
.trade-url-help:hover{ color: color-mix(in srgb, var(--accent1) 75%, var(--text)); }

/* Zrzut: header row with back button on the right */
body[data-page="zrzut"] .airdrop-head-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body[data-page="zrzut"] .airdrop-back-btn{ margin-left:auto; }

/* =====================
   MOBILE SAFETY OVERRIDES
   =====================
   Most sub-pages force `body.sidebar-compact` via JS (desktop convenience).
   On small screens that class MUST NOT change the grid columns; otherwise the main content
   gets squeezed to ~200px and the rest of the screen is empty.
*/
@media (max-width: 980px){
  body.sidebar-compact .app{ grid-template-columns: 1fr !important; }

  /* Keep mobile drawers readable even if compact mode is set */
  body.sidebar-compact .brand__text,
  body.sidebar-compact .nav-label,
  body.sidebar-compact .nav-ext{ display: inline-block !important; }

  body.sidebar-compact .nav-item{
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Allow the sidebar search on mobile (otherwise compact hides it) */
  body.sidebar-compact .sidebar__search{ display: flex !important; }
}


/* ==========
   SIDEBAR BANNERS
========== */


/* =========================================================
   V4 FIXES — consent links + mobile cleanup
   ========================================================= */
#loginConsentModal .consent-link,
#loginConsentModal .consent-link:visited{
  color: #ffb14a !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
#loginConsentModal .consent-link:hover,
#loginConsentModal .consent-link:focus-visible,
#loginConsentModal .consent-link:active{
  color: #ffc46d !important;
  text-decoration-thickness: 2px;
}
#loginConsentModal .card{
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
}

@media (max-width: 700px){
  .main{
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-head{
    margin: 0 0 12px;
  }
  .page-head h1{
    font-size: 22px;
    line-height: 1.08;
  }
  .page-head p{
    font-size: 14px;
    line-height: 1.45;
  }

  .banner{
    min-height: 220px;
  }
  .banner__content,
  .banner--side .banner__content,
  .banner--main .banner__content--main{
    padding: 18px;
  }
  .banner--main .banner__text,
  .banner__content{
    max-width: 100%;
  }
  .banner h1{
    font-size: 23px;
    line-height: 1.05;
  }
  .banner h2{
    font-size: 18px;
  }
  .banner p{
    font-size: 14px;
    line-height: 1.45;
  }
  .banner__actions,
  .banner--main .banner__footer{
    flex-direction: column;
    align-items: stretch;
  }
  .banner__actions .btn,
  .banner--main .banner__footer .btn{
    width: 100%;
    justify-content: center;
  }
  .banner-dots{
    justify-content: flex-start;
  }

  .server-card{
    min-height: 236px;
  }
  .server-card__content{
    padding: 14px;
  }

  body[data-page="zadania"] .task-card{
    min-height: 210px;
    padding: 12px;
  }
  body[data-page="zadania"] .task-card__title{
    font-size: 14px;
  }
  body[data-page="zadania"] .task-card__reward{
    padding: 6px 8px;
    font-size: 11px;
  }

  .modal{
    width: calc(100% - 16px);
    max-height: min(86vh, 900px);
  }
  .modal__head{
    padding: 12px 14px;
  }
  .modal__body{
    padding: 14px;
    max-height: calc(86vh - 54px);
    overflow: auto;
  }

  .player-page-head{
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }
  .player-main{
    padding: 14px;
  }
  .player-main__grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pm-col--avatar,
  .pm-col--identity{
    text-align: center;
  }
  .pm-avatar{
    width: 88px;
    height: 88px;
    margin: 0 auto;
  }
  .pm-name{
    font-size: 22px;
  }
  .pm-rankimg{
    margin-left: auto;
    margin-right: auto;
  }
  .pm-line{
    flex-wrap: wrap;
    gap: 8px;
  }
  .pm-label{
    min-width: 0;
    width: 100%;
  }
  .pm-value{
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pm-steamlink{
    justify-content: center;
  }
  .body-figure{
    min-height: 240px;
  }
  .body-svg{
    width: 72%;
  }
}

@media (max-width: 560px){
  .mobile-bar{
    padding-left: 12px;
    padding-right: 12px;
  }

  .banner{
    min-height: 208px;
  }

  .shop-grid{
    grid-template-columns: 1fr;
  }
  .shop-item{
    padding: 12px;
  }

  .case-items{
    grid-template-columns: 1fr;
  }

  .player-block,
  .card.player-main{
    border-radius: 16px;
  }

  .pm-kpis{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-tile--play{
    grid-column: auto;
  }

  body[data-page="zadania"] .task-card__head{
    flex-direction: column;
    align-items: flex-start;
  }
  body[data-page="zadania"] .task-card__reward{
    align-self: flex-start;
  }
}

@media (max-width: 420px){
  .main{
    padding-left: 10px;
    padding-right: 10px;
  }

  .banner__content,
  .banner--side .banner__content,
  .banner--main .banner__content--main{
    padding: 16px;
  }

  .player-main,
  .player-block{
    padding: 12px;
  }
  .pm-kpis,
  .stat-grid,
  .stat-grid--compact{
    grid-template-columns: 1fr;
  }
}

