/* =========================
   GALERIA
========================= */
.skarbex-ident-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* =========================
   CARD
========================= */
.skarbex-ident-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* =========================
   IMAGE WRAPPER
========================= */
.skarbex-ident-image-wrap {
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
}

/* =========================
   SPINNER
========================= */
.skarbex-ident-image-wrap::after {
  content: "";
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: skarbex-spin 0.8s linear infinite;
  position: absolute;
}

.skarbex-ident-image-wrap.loaded::after {
  display: none;
}

@keyframes skarbex-spin {
  to { transform: rotate(360deg); }
}

.skarbex-ident-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* =========================
   META
========================= */
.skarbex-ident-meta {
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  background: transparent;
}

/* =========================
   LOADER
========================= */
.skarbex-loading {
  text-align: center;
  padding: 30px;
  color: rgba(255,255,255,0.6);
  display: none;
}

/* =========================
   LIGHTBOX – FULLSCREEN
========================= */
.skarbex-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.skarbex-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* blokada scrolla */
body.skarbex-lightbox-open {
  overflow: hidden;
}

/* =========================
   LICZNIK UŻYTKOWNIKÓW
========================= */
.skarbex-user-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 40px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
}

.skarbex-user-number {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.skarbex-user-label {
  font-size: 15px;
  color: #B8C6C9;
}

.skarbex-top-helpers {
  display: flex;
  justify-content: center;
  align-items: stretch; /* 🔑 równa wysokość */
  gap: 30px;
  margin: 60px 0;
}

.skarbex-helper {
  width: 220px;
  padding: 20px 16px 26px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.place-1 {
  transform: translateY(-30px);
  z-index: 3;
}

.place-2 {
  transform: translateY(0);
  z-index: 2;
}

.place-3 {
  transform: translateY(10px);
  z-index: 1;
}
.skarbex-helper {
  position: relative; /* 🔑 potrzebne do absolute */
}

.skarbex-helper-rank {
  position: absolute;
  top: 16px;                 /* od góry karty */
  left: 50%;                 /* środek */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  z-index: 5;
}

.place-1 .skarbex-helper-rank {
  background: linear-gradient(135deg, #f6d365, #d4af37);
}

.place-2 .skarbex-helper-rank {
  background: linear-gradient(135deg, #e0e0e0, #bfc3c7);
}

.place-3 .skarbex-helper-rank {
  background: linear-gradient(135deg, #d1915c, #b87333);
}
.skarbex-helper-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.25);

  margin: 56px auto 10px; /* 🔑 MIEJSCE NA BADGE */
}

.skarbex-helper-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
}

.skarbex-helper-points {
  font-size: 14px;
  color: #B8C6C9;
  margin-top: 4px;
}
@media (max-width: 768px) {

  .skarbex-top-helpers {
    flex-direction: column;   /* 🔑 TO JEST KLUCZ */
    align-items: center;
    gap: 24px;
    margin: 40px 0;
  }

  .skarbex-helper {
    width: 90vw;
    max-width: 360px;
    padding: 28px 22px 32px;
  }

  .skarbex-helper-avatar {
margin-top: 56px; /* 🔑 robi miejsce na badge */
    width: 120px;
    height: 120px;
  }

  /* zachowujemy hierarchię wizualną */
  .place-1 { transform: none; }
  .place-2 { transform: none; }
  .place-3 { transform: none; }
}

}



.skarbex-helper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================
   OCHRONA ZDJĘĆ
========================= */

/* blokada zapisu / przeciągania */
.skarbex-helper-avatar,
.skarbex-ident-image-wrap img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* overlay zabezpieczający (utrudnia zaznaczanie) */
.skarbex-helper-avatar::after,
.skarbex-ident-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
}
