/* Ranking V2 - Neo-Cyberpunk Utilitarian (Refined)
  Fusing modern craft with premium community aesthetics
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@700;900&display=swap');

:root {
  /* Theme Accents (Gold/Amber) */
  --theme-primary: #ffb300;
  --theme-primary-rgb: 255, 179, 0;
  --theme-accent: #ffd700;
  --theme-gold-soft: #c0a060;

  /* Page Background Palette - Deep Obsidian with Amber Glows */
  --bg-deep-obsidian: #02040a;
  --bg-cyber-gold-top: rgba(255, 180, 0, 0.08); /* Amber poświata zamiast niebieskiej */
  --bg-cyber-gold-btm: rgba(200, 150, 0, 0.05);

  /* Glass / Surfaces */
  --glass-dark: rgba(4, 6, 12, 0.94);
  --glass-border: rgba(255, 179, 0, 0.2); /* Złota krawędź */
  --deep-obsidian: #02040a;
  --card-bg: rgba(6, 8, 15, 0.97);

  /* Typography */
  --font-display: 'Rajdhani', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-stat: 'Rajdhani', sans-serif;

  --accent-gold: #ffcc00;
  --accent-amber: #ff8800;
  --text: #e1e1e1;
  --sidebar-w: 220px;
  --topbar-h: 56px;
  --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --animation-speed: 0.5s;
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%;
  overflow: hidden
}

body {
  background: radial-gradient(circle at 50% 50%, #081021 0%, #040814 100%);
  color: var(--text);
  font-family: var(--font-body);
  transition: background 0.4s ease;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .65
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .04) 2px, rgba(0, 0, 0, .04) 4px)
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes slideInL {
  from {
    opacity: 0;
    transform: translateX(-20px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes logoPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(0, 180, 255, .5))
  }

  50% {
    filter: drop-shadow(0 0 24px rgba(0, 210, 255, .85))
  }
}


/* Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  APP SHELL Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 56px 1fr;
  grid-template-areas: "sidebar topbar" "sidebar main";
  height: 100vh;
  position: relative;
  z-index: 2;
  transition: grid-template-columns .3s cubic-bezier(.4, 0, .2, 1)
}

/* Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  SIDEBAR Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  */
.sidebar {
  grid-area: sidebar;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(22px);
  border-right: 1px solid rgba(0, 120, 255, .13);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 50;
  animation: slideInL .5s cubic-bezier(.22, 1, .36, 1) both;
  transition: width .3s cubic-bezier(.4, 0, .2, 1)
}

.sb-edge {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  cursor: pointer;
  z-index: 10;
  background: linear-gradient(180deg, transparent, rgba(0, 180, 255, .35) 30%, rgba(0, 100, 255, .55) 60%, transparent);
  opacity: .6;
  transition: width .2s, opacity .2s
}

.sb-edge:hover {
  width: 10px;
  opacity: 1
}

.sb-logo {
  padding: 22px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  text-decoration: none
}

.sb-logo img {
  width: 120px;
  height: auto;
  mix-blend-mode: screen;
  animation: logoPulse 4s ease-in-out infinite
}

.sb-logo-name {
  font-family: 'Orbitron', monospace;
  font-size: .87rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7)
}

.sb-logo-name span {
  color: var(--cyan)
}

.sb-logo-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(0, 180, 255, .55)
}

.sb-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto
}

.sb-nav::-webkit-scrollbar {
  width: 3px
}

.sb-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 120, 255, .3);
  border-radius: 2px
}

.nav-lbl {
  font-family: 'Rajdhani', sans-serif;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  padding: 12px 10px 5px
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  color: rgba(180, 200, 230, .6);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .22s, color .22s, padding-left .22s;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent
}

.nav-item .material-symbols-outlined {
  font-size: 21px;
  color: rgba(0, 150, 255, .4);
  transition: color .22s, transform .28s;
  flex-shrink: 0
}

.nav-item:hover,
.nav-item.active {
  background: rgba(0, 150, 255, 0.1);
  color: #fff;
  padding-left: 16px;
  border-color: rgba(0, 150, 255, 0.2);
}

.nav-item:hover .material-symbols-outlined,
.nav-item.active .material-symbols-outlined {
  color: rgba(0, 210, 255, 1);
  transform: scale(1.1);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #00d2ff, #007bff);
  border-radius: 0 2px 2px 0
}

.nav-item.nav-forum .material-symbols-outlined {
  color: #00d2ff !important;
  opacity: 1 !important;
}

.nav-item.nav-forum:hover {
  background: rgba(0, 160, 255, 0.12) !important;
  border-color: rgba(0, 180, 255, .25) !important;
}

.nav-group {
  display: flex;
  flex-direction: column
}

.nav-item-arrow {
  margin-left: auto;
  font-size: 14px;
  opacity: .3;
  transition: transform .22s;
  flex-shrink: 0
}

.nav-item.has-sub.open .nav-item-arrow {
  transform: rotate(90deg);
  opacity: .7
}

.nav-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.22, 1, .36, 1);
  padding-left: 10px
}

.nav-sub.open {
  max-height: 220px
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  margin-bottom: 2px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(160, 185, 225, .55);
  transition: background .18s, color .18s;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .055)
}

.nav-sub-item::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
  opacity: .7;
  transition: opacity .18s
}

.nav-sub-item .material-symbols-outlined {
  display: none
}

.nav-sub-item:hover {
  background: rgba(255, 255, 255, .06);
  color: rgba(200, 220, 255, .8)
}

.nav-sub-item:hover::before {
  opacity: 1
}

.nav-sub-item.active {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12)
}

.nav-sub-item.game-cs2 {
  color: #f0a800;
  border-color: rgba(240, 168, 0, .18)
}

.nav-sub-item.game-cs2:hover {
  background: rgba(240, 168, 0, .09) !important;
  border-color: rgba(240, 168, 0, .3) !important
}

.nav-sub-item.game-cs2.active {
  background: rgba(240, 168, 0, .08);
  border-color: rgba(240, 168, 0, .28)
}

.nav-sub-item.game-csgo {
  color: #f18600;
  border-color: rgb(186 106 106 / 26%)
}

.nav-sub-item.game-csgo:hover {
  background: rgb(186 106 106 / 9%) !important;
  border-color: rgb(186 106 106 / 30%) !important
}

.nav-sub-item.game-csgo.active {
  background: rgb(186 106 106 / 8%);
  border-color: rgba(143, 186, 106, .28)
}

.nav-sub-item.game-css {
  color: #a07be0;
  border-color: rgba(160, 123, 224, .18)
}

.nav-sub-item.game-css:hover {
  background: rgba(160, 123, 224, .09) !important;
  border-color: rgba(160, 123, 224, .3) !important
}

.nav-sub-item.game-css.active {
  background: rgba(160, 123, 224, .08);
  border-color: rgba(160, 123, 224, .28)
}

.nav-sub-item.game-cs16 {
  color: #4da6ff;
  border-color: rgba(77, 166, 255, .18)
}

.nav-sub-item.game-cs16:hover {
  background: rgba(77, 166, 255, .09) !important;
  border-color: rgba(77, 166, 255, .3) !important
}

.nav-sub-item.game-cs16.active {
  background: rgba(77, 166, 255, .08);
  border-color: rgba(77, 166, 255, .28)
}

.nav-sub-item img.sb-game-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
  display: block !important
}

.nav-sub-item:has(.sb-game-icon)::before {
  display: none !important
}

.nav-sub-item.game-inne {
  color: #66bb6a;
  border-color: rgba(102, 187, 106, .18)
}

.nav-sub-item.game-inne:hover {
  background: rgba(102, 187, 106, .09) !important;
  border-color: rgba(102, 187, 106, .3) !important
}

.nav-sub-item.game-inne.active {
  background: rgba(102, 187, 106, .08);
  border-color: rgba(102, 187, 106, .28)
}

.nav-sklep {
  color: rgba(0, 220, 150, .75) !important
}

.nav-sklep .material-symbols-outlined {
  color: rgba(0, 200, 130, .65) !important
}

.nav-sklep:hover {
  background: rgba(0, 180, 120, .1) !important;
  color: #00eea8 !important
}

body.sb-col .app-shell {
  grid-template-columns: 64px 1fr
}

body.sb-col .sidebar {
  width: 64px;
  overflow: visible
}

body.sb-col .sb-logo-name,
body.sb-col .sb-logo-tag,
body.sb-col .nav-lbl,
body.sb-col .nav-item-label,
body.sb-col .nav-item-arrow,
body.sb-col .sb-logo {
  display: none !important
}

body.sb-col .nav-item {
  justify-content: center;
  padding: 11px 0;
  overflow: visible !important
}

body.sb-col .sb-nav {
  overflow: visible !important
}

body.sb-col .nav-item .material-symbols-outlined:first-child {
  font-size: 24px
}

body.sb-col .nav-item:not(.has-sub)::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: rgba(4, 8, 20, .96);
  border: 1px solid rgba(0, 120, 255, .28);
  color: #c8e0ff;
  font-family: 'Rajdhani', sans-serif;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity .15s, transform .15s
}

body.sb-col .nav-item:not(.has-sub):hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0)
}

body.sb-col .sb-bottom {
  align-items: center;
  padding: 10px 0;
  overflow: visible
}

body.sb-col .sb-lang-current {
  background: transparent !important;
  border: none !important;
  padding: 4px !important;
  justify-content: center !important
}

body.sb-col .sb-lang-label,
body.sb-col .sb-lang-arrow {
  display: none !important
}

body.sb-col .sb-lang-dropdown {
  left: calc(100% + 8px) !important;
  right: auto !important;
  bottom: 0 !important;
  min-width: 120px
}

body.sb-col .nav-group {
  position: relative;
}

body.sb-col .nav-sub.open {
  position: absolute;
  left: 64px;
  top: 0;
  min-width: 160px;
  max-height: none !important;
  background: rgba(4, 8, 20, .97);
  border: 1px solid rgba(0, 120, 255, .22);
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .7);
  z-index: 200;
  overflow: hidden
}

body.sb-col .nav-sub.open .nav-sub-item {
  padding: 7px 12px;
  white-space: nowrap;
  margin-bottom: 2px
}

.sb-bottom {
  padding: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, .05)
}

.sb-lang-select {
  position: relative
}

.sb-lang-current {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: rgba(0, 80, 200, .07);
  border: 1px solid rgba(0, 100, 255, .15);
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s
}

.sb-lang-current:hover {
  background: rgba(0, 100, 255, .12)
}

.sb-lang-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(180, 200, 240, .6);
  flex: 1
}

.sb-lang-arrow {
  font-size: 16px;
  color: rgba(100, 140, 200, .4)
}

.sb-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(4, 8, 20, .97);
  border: 1px solid rgba(0, 100, 255, .2);
  border-radius: 9px;
  overflow: hidden;
  display: none;
  z-index: 100;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, .6)
}

.sb-lang-dropdown.open {
  display: block
}

.sb-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: .87rem;
  font-weight: 700;
  color: rgba(160, 190, 230, .55);
  transition: background .15s
}

.sb-lang-option:hover {
  background: rgba(0, 80, 200, .1);
  color: #fff
}

.sb-lang-option span:nth-child(2) {
  flex: 1
}

.sb-lang-check {
  color: var(--cyan);
  font-size: .85rem
}

.flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center
}

.flag-svg svg {
  width: 100%;
  height: 100%
}


/* Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  TOPBAR Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  */
.topbar {
  grid-area: topbar;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  padding: 0 22px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40
}

.topbar-bc {
  font-family: 'Rajdhani', sans-serif;
  font-size: .89rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38)
}

.topbar-bc span {
  color: rgba(0, 200, 255, .75)
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px
}

.topbar-live {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0, 200, 100, .6)
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #00e060;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e060;
  animation: blink 1.8s ease-in-out infinite
}

.tb-login-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(27, 40, 56, .7);
  border: 1px solid rgba(100, 140, 180, .25);
  border-radius: 8px;
  color: rgba(180, 210, 240, .7);
  font-family: 'Rajdhani', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: all .22s;
  cursor: pointer;
  white-space: nowrap
}

.tb-login-btn:hover {
  background: rgba(40, 60, 90, .9);
  border-color: rgba(100, 160, 230, .5);
  color: #fff
}

.tb-user {
  position: relative
}

.tb-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: rgba(0, 80, 200, .08);
  border: 1px solid rgba(0, 100, 255, .18);
  border-radius: 9px;
  cursor: pointer;
  transition: all .22s
}

.tb-user-btn:hover {
  background: rgba(0, 80, 200, .14)
}

.tb-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(0, 120, 255, .3);
  flex-shrink: 0
}

.tb-user-avatar-ph {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 80, 200, .2);
  border: 1px solid rgba(0, 120, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.tb-user-avatar-ph .material-symbols-outlined {
  font-size: 20px;
  color: rgba(0, 150, 255, .6)
}

.tb-user-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: rgba(200, 220, 255, .85);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.tb-user-role {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 80, 80, .7)
}

.tb-user-role.role-user {
  color: rgba(0, 200, 255, .5)
}

.tb-user-btn .arr {
  font-size: 16px;
  color: rgba(0, 150, 255, .5);
  transition: transform .22s
}

.tb-user.open .tb-user-btn .arr {
  transform: rotate(180deg)
}

.tb-user-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: rgba(5, 10, 24, .97);
  border: 1px solid rgba(0, 100, 255, .22);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
  z-index: 200
}

.tb-user.open .tb-user-drop {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0)
}

.tb-drop-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  gap: 10px
}

.tb-drop-avatar-ph {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(0, 80, 200, .2);
  border: 1px solid rgba(0, 120, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.tb-drop-avatar-ph .material-symbols-outlined {
  font-size: 24px;
  color: rgba(0, 150, 255, .55)
}

.tb-drop-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(0, 120, 255, .25);
  flex-shrink: 0
}

.tb-drop-info-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: .97rem;
  font-weight: 700;
  color: #fff
}

.tb-drop-info-role {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 80, 80, .7)
}

.tb-drop-info-role.role-user {
  color: rgba(0, 200, 255, .5)
}

.tb-drop-steamid {
  font-family: monospace;
  font-size: .73rem;
  color: rgba(80, 120, 180, .4)
}

.tb-drop-body {
  padding: 6px 8px
}

.tb-drop-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(160, 185, 220, .65);
  font-family: 'Rajdhani', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s;
  text-decoration: none
}

.tb-drop-item:hover {
  background: rgba(0, 80, 200, .1);
  color: #fff
}

.tb-drop-item .material-symbols-outlined {
  font-size: 19px;
  color: rgba(0, 140, 255, .45)
}

.tb-drop-item.danger:hover {
  background: rgba(200, 30, 30, .12);
  color: #ff6b6b
}

.tb-drop-item.danger .material-symbols-outlined {
  color: rgba(200, 60, 60, .5)
}

.tb-drop-item.admin-link {
  color: rgba(255, 170, 0, .7)
}

.tb-drop-item.admin-link .material-symbols-outlined {
  color: rgba(255, 150, 0, .5)
}

.tb-drop-sep {
  height: 1px;
  background: rgba(255, 255, 255, .05);
  margin: 5px 8px
}

/* Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  MAIN Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  */
.main-content {
  grid-area: main;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.main-inner {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  position: relative;
  z-index: 5;
  background: transparent
}


/* LOADING SCREEN */
.loading-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeInOverlay 0.3s var(--ease-out-expo) forwards;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.loading-spinner {
  width: 70px;
  height: 70px;
  border: 3px solid rgba(255, 179, 0, 0.05);
  border-top: 3px solid var(--theme-primary);
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
  box-shadow: 0 0 30px rgba(255, 179, 0, 0.1);
}

.loading-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--theme-primary);
  text-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
  animation: pulseLoader 1.5s ease-in-out infinite;
  text-transform: uppercase;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseLoader {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#rankingContainer.fade-in {
  animation: fadeIn 0.4s ease-out both !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes hideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(15px);
  }
}

@keyframes revealUp3D {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9) rotateX(15deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderSnake {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes orbitalRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes breathing {

  0%,
  100% {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 12px 40px rgba(var(--theme-primary-rgb), 0.1);
    transform: scale(1.01);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes podiumReveal {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    filter: brightness(0) blur(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1) blur(0);
  }
}

@keyframes energyFlare {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.2);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 0 50px rgba(var(--theme-primary-rgb), 0.5);
    filter: brightness(1.2);
  }
}

@keyframes energyFlareSubtle {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(var(--theme-primary-rgb), 0.1);
  }

  50% {
    box-shadow: 0 0 25px rgba(var(--theme-primary-rgb), 0.25);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

/* Base UI Overrides */

@keyframes bgridShift {
  from {
    background-position: 0 0
  }

  to {
    background-position: 0 40px
  }
}

@keyframes borbPulse {

  0%,
  100% {
    opacity: .7;
    transform: scale(1)
  }

  50% {
    opacity: 1;
    transform: scale(1.15)
  }
}

@keyframes bstripePulse {

  0%,
  100% {
    opacity: .6
  }

  50% {
    opacity: 1
  }
}

@keyframes bdotBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

@keyframes bbarAnim {

  0%,
  100% {
    transform: scaleY(1);
    opacity: .7
  }

  50% {
    transform: scaleY(.4);
    opacity: 1
  }
}

@keyframes bFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  BANNER Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â Ä‚â€žĂ˘â‚¬ĹˇÄ‚â€ąĂ‚Â˜Ă„â€šĂ‹Â˜Ä‚Ë˜Ă˘â‚¬ĹˇĂ‚Â¬Ä‚â€ąĂ‚Â˜Ă„â€šĂ˘â‚¬ĹˇÄ‚â€šĂ‚Â  */
.fg-banner {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  cursor: default;
  margin-bottom: 26px;
}

.fg-banner .bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255, 180, 0, 0.2) 0%, transparent 65%), radial-gradient(ellipse 50% 80% at 10% 80%, rgba(255, 200, 0, 0.08) 0%, transparent 60%), linear-gradient(135deg, #0d0a05 0%, #1a1408 50%, #120d05 100%)
}

.fg-banner .bgrid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 180, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 180, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: bgridShift 20s linear infinite;
  mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%)
}

.fg-banner .bscan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, .06) 3px, rgba(0, 0, 0, .06) 4px);
  pointer-events: none;
  z-index: 10
}

.fg-banner .borb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none
}

.fg-banner .borb-1 {
  width: 280px;
  height: 280px;
  background: rgba(255, 160, 0, 0.15);
  top: -80px;
  right: 80px;
  animation: borbPulse 6s ease-in-out infinite
}

.fg-banner .borb-2 {
  width: 180px;
  height: 180px;
  background: rgba(255, 200, 0, 0.08);
  bottom: -60px;
  left: 120px;
  animation: borbPulse 8s ease-in-out infinite reverse
}

.fg-banner .borb-3 {
  width: 160px;
  height: 160px;
  background: rgba(255, 120, 0, 0.08);
  top: 20px;
  left: 40px;
  animation: borbPulse 10s ease-in-out infinite 2s
}

.fg-banner .bstripe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 180, 0, 0.4) 30%, rgba(255, 200, 0, 0.6) 60%, transparent);
  transform: skewX(-12deg);
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.3);
  animation: bstripePulse 3s ease-in-out infinite
}

.fg-banner .bstripe-2 {
  left: 54%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 210, 0, 0.2) 40%, rgba(255, 180, 0, 0.3) 60%, transparent);
  animation: bstripePulse 3s ease-in-out infinite .5s;
  box-shadow: none
}

.fg-banner .bshimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .04) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 8
}

.fg-banner:hover .bshimmer {
  transform: translateX(200%);
  transition: transform .8s ease
}

.fg-banner .bglowbot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 180, 0, 0.5) 30%, rgba(255, 210, 0, 0.8) 50%, rgba(255, 180, 0, 0.5) 70%, transparent);
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.4)
}

.fg-banner .bglowtop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .04) 70%, transparent)
}

.fg-banner .bcorner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 6
}

.fg-banner .bc-tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid rgba(255, 180, 0, 0.45);
  border-left: 2px solid rgba(255, 180, 0, 0.45);
  border-radius: 4px 0 0 0
}

.fg-banner .bc-tr {
  top: 10px;
  right: 10px;
  border-top: 2px solid rgba(255, 180, 0, 0.45);
  border-right: 2px solid rgba(255, 180, 0, 0.45);
  border-radius: 0 4px 0 0
}

.fg-banner .bc-bl {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid rgba(255, 180, 0, 0.45);
  border-left: 2px solid rgba(255, 180, 0, 0.45);
  border-radius: 0 0 0 4px
}

.fg-banner .bc-br {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid rgba(255, 180, 0, 0.45);
  border-right: 2px solid rgba(255, 180, 0, 0.45);
  border-radius: 0 0 4px 0
}

.fg-banner .bwave {
  position: absolute;
  bottom: 16px;
  left: 48px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  opacity: .2;
  z-index: 5
}

.fg-banner .bbar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #00d2ff, #0060ff);
  animation: bbarAnim 1.2s ease-in-out infinite
}

.fg-banner .bbar:nth-child(1) {
  height: 40%
}

.fg-banner .bbar:nth-child(2) {
  height: 70%;
  animation-delay: .1s
}

.fg-banner .bbar:nth-child(3) {
  height: 55%;
  animation-delay: .2s
}

.fg-banner .bbar:nth-child(4) {
  height: 90%;
  animation-delay: .05s
}

.fg-banner .bbar:nth-child(5) {
  height: 60%;
  animation-delay: .15s
}

.fg-banner .bbar:nth-child(6) {
  height: 45%;
  animation-delay: .25s
}

.fg-banner .bbar:nth-child(7) {
  height: 80%;
  animation-delay: .08s
}

.fg-banner .bbar:nth-child(8) {
  height: 50%;
  animation-delay: .18s
}

.fg-banner .bbar:nth-child(9) {
  height: 65%;
  animation-delay: .12s
}

.fg-banner .bbar:nth-child(10) {
  height: 35%;
  animation-delay: .22s
}

.fg-banner .bcontent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 48px;
  z-index: 5
}

.fg-banner .bleft {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  align-items: flex-start
}

.fg-banner .btag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #00aadd;
  opacity: 0;
  animation: bFadeUp .6s .1s cubic-bezier(.22, 1, .36, 1) forwards
}

.fg-banner .btag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
  animation: bdotBlink 2s ease-in-out infinite
}

.fg-banner .btitle {
  font-family: 'Orbitron', monospace;
  font-size: 2.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 140, 255, .5), 0 0 60px rgba(0, 80, 255, .2);
  opacity: 0;
  animation: bFadeUp .6s .22s cubic-bezier(.22, 1, .36, 1) forwards
}

.fg-banner .btitle span {
  color: #00d2ff;
  text-shadow: 0 0 20px rgba(0, 210, 255, .8)
}

.fg-banner .bsub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, .4);
  opacity: 0;
  animation: bFadeUp .6s .32s cubic-bezier(.22, 1, .36, 1) forwards
}

.fg-banner .bstats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: bFadeUp .6s .42s cubic-bezier(.22, 1, .36, 1) forwards
}

.fg-banner .bstat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-size: .91rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(150, 180, 220, .75);
  text-transform: uppercase
}

.fg-banner .bright {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 40px;
  flex-shrink: 0;
  opacity: 0;
  animation: bFadeUp .6s .5s cubic-bezier(.22, 1, .36, 1) forwards
}

.fg-banner .bright img {
  height: 120px;
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 18px rgba(0, 180, 255, .6)) drop-shadow(0 0 40px rgba(0, 100, 255, .3))
}

.ranking-v2 {
  font-family: var(--font-body);
  background: transparent;
  color: #eee;
  padding: 40px 20px 60px 20px !important;
  min-height: 100vh;
}

/* Redesigned Premium Banner V2 */
.v2-banner {
  position: relative;
  padding: 60px 40px 40px 40px;
  margin: 0 -20px 30px -20px;
  background:
    radial-gradient(circle at 15% 50%, rgba(var(--theme-primary-rgb), 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #0f0d0a 0%, var(--deep-obsidian) 100%);
  border-bottom: 2px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@keyframes glitch {
  0% {
    clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
    transform: translate(0);
  }

  20% {
    clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
    transform: translate(-5px);
  }

  40% {
    clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    transform: translate(5px);
  }

  60% {
    clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
    transform: translate(-5px);
  }

  80% {
    clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
    transform: translate(0);
  }

  100% {
    clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
    transform: translate(5px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes energyFlare {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.2);
  }

  50% {
    box-shadow: 0 0 50px rgba(var(--theme-primary-rgb), 0.5);
  }
}

.v2-banner-content h1 {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0;
  filter: drop-shadow(0 0 15px rgba(var(--theme-primary-rgb), 0.3));
}

/* Podium & Card Integration */
.podium-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: flex-end;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 80px auto;
}

.rank-badge {
  position: absolute;
  top: 20px;
  right: 25px;
  font-family: var(--font-stat);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 179, 0, 0.4);
  letter-spacing: 1px;
  border-left: 2px solid var(--theme-primary);
  padding-left: 10px;
}

/* Tactical Table - Consolidated in later section */

.stat-value {
  font-family: var(--font-stat);
  color: var(--theme-primary);
  font-size: 1.8rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.6rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--theme-primary);
}

.sector-tile {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: revealUp3D var(--animation-speed) var(--ease-out-expo) forwards, breathing 10s ease-in-out infinite;
  animation-delay: calc(var(--index, 0) * 0.1s), 2s;
  opacity: 0;
}

/* Neon Snake Border Element */
.sector-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(90deg,
      transparent,
      transparent,
      var(--theme-primary),
      transparent,
      transparent);
  background-size: 200% 100%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.sector-tile:hover::after {
  opacity: 1;
  animation: borderSnake 2s linear infinite;
}

.sector-tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
  background: rgba(var(--theme-primary-rgb), 0.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Base orbital for game icon */
.sector-icon-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-icon-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  border: 2px dashed rgba(var(--theme-primary-rgb), 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbitalRotate 20s linear infinite;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 5;
}

.sector-tile:hover .sector-icon-wrap::before {
  border-color: var(--theme-primary);
  border-style: solid;
  border-width: 3px;
  width: 135%;
  height: 135%;
  opacity: 0.8;
  box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.4);
  animation-duration: 5s;
}

.sector-icon {
  width: 96px;
  height: 96px;
  object-fit: cover;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  z-index: 2;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sector-tile:hover .sector-icon {
  transform: scale(1.1) rotate(5deg);
}

.sector-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-weight: 700;
}

.sector-status {
  font-size: 0.75rem;
  color: var(--theme-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.4;
  font-weight: 600;
}

.rank-progress-wrap {
  margin-top: 8px;
  width: 100%;
}

.rank-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.rank-progress-bg {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.rank-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-gold-deep), var(--theme-primary));
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.rank-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--theme-primary-rgb), 0.6), transparent);
  animation: shimmer 1.5s infinite;
}

.hud-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 35px;
  backdrop-filter: blur(30px);
  transition: all 0.6s var(--ease-out-expo), opacity 0.5s ease-out;
  overflow: hidden;
  animation: podiumReveal 1s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--index, 0) * 0.15s);
  opacity: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hud-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(var(--theme-primary-rgb), 0.05), transparent);
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform 0.8s var(--ease-out-expo);
}

.hud-card:hover::after {
  transform: translateY(100%);
}

.hud-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--theme-primary);
  border-left: 2px solid var(--theme-primary);
  opacity: 0.3;
}

.hud-card:hover {
  background: rgba(var(--theme-primary-rgb), 0.08);
  /* Minimalist base with tiny tint */
  border-color: rgba(var(--theme-primary-rgb), 0.6);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--theme-primary-rgb), 0.2);
}

.hud-card:hover .glow-layer {
  opacity: 1;
  animation: energyFlare 2s infinite ease-in-out;
}

.rank-1 {
  border: 2px solid var(--theme-accent);
  box-shadow: 0 0 30px rgba(var(--theme-primary-rgb), 0.1);
}

.rank-1 .player-avatar-v2 {
  width: 90px;
  height: 90px;
}

.player-avatar-v2 {
  position: relative;
  width: 75px;
  height: 75px;
  flex-shrink: 0;
}

.player-avatar-v2::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--theme-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: rotate 20s linear infinite;
  transition: opacity 0.3s ease, inset 0.3s ease;
}

.hud-card:hover .player-avatar-v2::after {
  opacity: 0.8;
  inset: -8px;
  border-style: solid;
  border-width: 2px;
  box-shadow: 0 0 15px var(--theme-primary);
}

.player-avatar-v2 img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--obsidian-dark);
  box-shadow: 0 0 0 2px var(--glass-border);
}

.player-avatar-v2 svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--obsidian-dark);
  box-shadow: 0 0 0 2px var(--glass-border);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.tactical-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  max-width: 1300px;
  margin: 0 auto;
}

.tactical-table tr {
  animation: revealUp var(--animation-speed) var(--ease-out-expo) forwards;
  animation-delay: calc(var(--index, 0) * 0.05s);
  opacity: 0;
  transition: all 0.2s ease;
  position: relative;
}

.tactical-table td {
  padding: 18px 20px;
  background: rgba(4, 8, 18, 0.7);
  border-top: 1px solid rgba(255, 179, 0, 0.05);
  border-bottom: 1px solid rgba(255, 179, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.tactical-table td:first-child {
  border-left: 0 solid var(--theme-primary);
  font-weight: 700;
  color: var(--theme-primary);
  transition: border-width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tactical-table td:last-child {
  border-right: 1px solid transparent;
}

.tactical-table tr:hover td {
  background: rgba(255, 179, 0, 0.08);
  border-top-color: rgba(255, 179, 0, 0.4);
  border-bottom-color: rgba(255, 179, 0, 0.4);
  box-shadow: inset 0 0 15px rgba(255, 179, 0, 0.03);
}

.tactical-table tr:hover td:first-child {
  border-left: 2px solid rgba(255, 179, 0, 0.6);
  border-radius: 4px 0 0 4px;
}

.tactical-table tr:hover td:last-child {
  border-right: 2px solid rgba(255, 179, 0, 0.6);
  border-radius: 0 4px 4px 0;
}

.tactical-table tr:hover td:first-child {
  border-left-width: 4px;
}

.tactical-table tr:hover .material-symbols-outlined {
  opacity: 0.8 !important;
  color: var(--theme-primary);
}

.tactical-table tr:hover .stat-value {
  color: #fff;
}

.rank-loader {
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin: 40px 0;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.1);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  display: none !important;
  /* Zmiana: Całkowicie usuwa element gdy jest nieaktywny */
}

.rank-loader.visible {
  opacity: 1;
  display: flex !important;
  /* Zmiana: Pokazuje element tylko podczas ładowania */
  pointer-events: auto;
}

.rank-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(var(--theme-primary-rgb), 0.05) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

.rank-loader-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  width: 200px;
  margin: 0 auto 15px auto;
  position: relative;
}

.rank-loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--theme-primary);
  box-shadow: 0 0 15px var(--theme-primary);
  animation: scanline 2s linear infinite;
}

.rank-loader-text {
  font-family: var(--font-display);
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--theme-primary);
  text-shadow: 0 0 10px rgba(var(--theme-primary-rgb), 0.5);
  animation: pulseGlow 1.5s ease-in-out infinite;
  position: relative;
}

.rank-loader-text::before,
.rank-loader-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.rank-loader-text::before {
  color: #0ff;
  z-index: -1;
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.rank-loader-text::after {
  color: #f0f;
  z-index: -2;
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) reverse both infinite;
}

.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.breadcrumb-home {
  color: #444;
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb-home:hover {
  color: #888;
}

.breadcrumb-sep {
  color: #222;
  font-weight: 300;
}

.breadcrumb-current {
  color: var(--theme-primary);
}

.sub-nav-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 35px;
  overflow-x: auto;
  padding-bottom: 5px;
}

/* NEW SELECTORS DESIGN - REFINED */
.rank-selectors {
  display: flex;
  gap: 15px;
  position: relative;
  z-index: 10;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.nav-sep {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.2), transparent);
  margin-left: 30px;
  opacity: 0.5;
}

.selector-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.selector-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--theme-primary);
  opacity: 0.5;
  padding-left: 2px;
}

.selector-control {
  background: rgba(10, 15, 25, 0.8);
  border: 1px solid rgba(255, 179, 0, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 179, 0, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.selector-control:hover {
  border-color: rgba(255, 179, 0, 0.8);
  background: rgba(15, 20, 30, 0.9);
  box-shadow: 0 0 25px rgba(255, 179, 0, 0.2);
  transform: translateY(-2px);
}

.selector-control::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 0, 0.08), transparent);
  transition: 0.6s;
}

.selector-control:hover::after {
  left: 100%;
}

.selector-control .val {
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.selector-control .val img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 179, 0, 0.4));
}

.selector-control .val .material-symbols-outlined {
  font-size: 20px;
  color: var(--theme-primary);
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
}

.selector-control .material-symbols-outlined {
  font-size: 18px;
  opacity: 0.5;
  transition: transform 0.3s;
}

.selector-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 15, 25, 0.98);
  border: 1px solid rgba(255, 179, 0, 0.4);
  border-radius: 8px;
  margin-top: 5px;
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  backdrop-filter: blur(25px);
  display: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 179, 0, 0.1);
}

.selector-group.open .selector-dropdown {
  display: block;
}

.selector-group.open .selector-control {
  border-color: var(--theme-primary);
}

.selector-option {
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  position: relative;
  z-index: 1001;
}

.selector-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--theme-primary);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--theme-primary);
}

.selector-option:hover::before {
  height: 60%;
}

.selector-option:hover {
  background: rgba(255, 179, 0, 0.12);
  color: #fff;
  padding-left: 25px;
}

.selector-option.active {
  background: rgba(255, 179, 0, 0.15);
  color: var(--theme-primary);
  font-weight: 700;
}

.selector-option img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}


.sub-nav-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 180, 0, 0.1);
  color: rgba(255, 255, 255, 0.4);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.4s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sub-nav-btn:hover:not(.active) {
  background: rgba(255, 179, 0, 0.08);
  border-color: rgba(255, 179, 0, 0.4);
  color: #fff;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 179, 0, 0.1);
}

.sub-nav-btn.active {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--theme-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), inset 0 0 10px rgba(255, 215, 0, 0.05);
  transform: translateY(-1px);
}


@media (max-width: 768px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .hud-card {
    padding: 20px;
  }

  .tactical-table td:nth-child(3) {
    display: none;
  }
}

.v2-tab-btn[data-target="discord"],
.rank-tab[data-target="discord"],
button[data-target="discord"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #eee !important;
  padding: 10px 20px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
}

.v2-tab-btn:hover,
.rank-tab:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(var(--theme-primary-rgb), 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
  color: #fff !important;
}

.v2-tab-btn:hover img,
.rank-tab:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(var(--theme-primary-rgb), 0.4));
}

.v2-tab-btn[data-target="discord"]:hover,
.rank-tab[data-target="discord"]:hover {
  background: rgba(88, 101, 242, 0.15) !important;
  border-color: rgba(88, 101, 242, 0.4) !important;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.25) !important;
  transform: translateY(-2px);
}

.v2-tab-btn[data-target="discord"] img,
.rank-tab[data-target="discord"] img {
  filter: none !important;
  opacity: 1 !important;
}

.hud-card .stat-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 10px 5px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  cursor: default !important;
  margin: 0 !important;
  text-align: center !important;
}

.hud-card .stat-box::before {
  display: none !important;
}

.hud-card .stat-box .stat-label {
  margin-bottom: 0 !important;
  font-size: 0.55rem !important;
  white-space: nowrap !important;
  opacity: 0.5 !important;
}

.hud-card .stat-box .stat-value {
  font-size: 1rem !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.hud-card .card-details {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .podium-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}




.rank-search-wrapper {
  margin: 25px auto 10px auto !important;
  padding: 0 20px !important;
  width: 100% !important;
  max-width: 850px !important;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Nowe style Cyberpunkowej Wyszukiwarki */
.rank-search-box {
  position: relative;
  width: 100%;
  background: rgba(15, 25, 45, 0.75);
  border: 1px solid rgba(255, 179, 0, 0.5);
  border-radius: 12px;
  padding: 12px 20px 12px 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 179, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  backdrop-filter: blur(15px);
}

.rank-search-box:focus-within {
  border-color: rgba(255, 179, 0, 1);
  box-shadow: 0 0 25px rgba(255, 179, 0, 0.3);
  background: rgba(20, 30, 55, 0.9);
}

.rank-search-box .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-primary);
  font-size: 24px;
  text-shadow: 0 0 10px rgba(var(--theme-primary-rgb), 0.5);
}

.rank-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 2px;
  outline: none;
}

.rank-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Fix for topbar search if missing styles */
.tb-search-input {
  background: rgba(15, 25, 45, 0.6) !important;
  border: 1px solid rgba(0, 150, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 6px 15px 6px 35px !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  transition: all 0.3s !important;
}

.tb-search-input:focus {
  background: rgba(20, 35, 60, 0.9) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2) !important;
}

#rankingContainer {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Usunięto zepsutą regułę #rankingContainer>div, która psuła podium */

.sector-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 35px !important;
  max-width: 1100px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-top: 30px !important;
}

.sector-tile {
  padding: 35px 25px !important;
}

.maintenance-view {
  margin: 0 auto !important;
  padding-top: 40px !important;
}

.podium-wrapper,
.podium-container,
.rank-content {
  display: none !important;
}

/* --- NAPRAWA ROZWIJANYCH KART PODIUM (DROPDOWN) --- */

/* 1. Odblokowujemy możliwość wystawania elementów poza główną kartę */
.hud-card {
  overflow: visible !important;
}

/* 2. Zmieniamy animację tła karty, żeby nie "wylewała" się po odblokowaniu overflow */
.hud-card::after {
  transform: none !important;
  opacity: 0 !important;
  transition: opacity 0.5s ease-out !important;
}

.hud-card:hover::after {
  opacity: 1 !important;
}

/* 3. Zmieniamy rozwijane szczegóły w pływający Dropdown */
.hud-card .card-details {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  /* Odstęp 8px pod kartą */
  left: 0 !important;
  width: 100% !important;
  background: rgba(10, 15, 25, 0.98) !important;
  /* Ciemne tło maskujące tabelę pod spodem */
  backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 179, 0, 0.4) !important;
  border-radius: 12px !important;
  padding: 25px 20px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 179, 0, 0.15) !important;
  z-index: 999 !important;
  /* Gwarantuje, że będzie ZAWSZE nad tabelą */
  box-sizing: border-box !important;
  margin-top: 0 !important;
}

/* PAGINATION (Reinforced) */
.rank-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 15px !important;
  margin: 40px auto !important;
  padding: 20px !important;
  background: rgba(var(--theme-primary-rgb), 0.03) !important;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.1) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px) !important;
  width: fit-content !important;
  min-width: 300px !important;
  box-sizing: border-box !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

#rankPagination .pag-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  width: 45px !important;
  height: 45px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
}

#rankPagination .pag-btn span {
  font-size: 24px !important;
}

#rankPagination .pag-btn:hover:not(:disabled) {
  background: rgba(var(--theme-primary-rgb), 0.1) !important;
  border-color: var(--theme-primary) !important;
  color: var(--theme-primary) !important;
  box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.3) !important;
  transform: translateY(-2px) !important;
}

#rankPagination .pag-btn:disabled {
  opacity: 0.15 !important;
  cursor: not-allowed !important;
}

#rankPagination .pag-info {
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  letter-spacing: 1px !important;
  font-weight: 600 !important;
}

#rankPagination .pag-input-wrap {
  position: relative !important;
  width: 70px !important;
}

#rankPagination .pag-input {
  width: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3) !important;
  border-radius: 8px !important;
  padding: 8px 5px !important;
  color: var(--theme-primary) !important;
  font-family: var(--font-stat) !important;
  font-weight: 800 !important;
  text-align: center !important;
  transition: all 0.3s !important;
  outline: none !important;
  font-size: 1.1rem !important;
  box-sizing: border-box !important;
}

#rankPagination .pag-input:focus {
  border-color: var(--theme-primary) !important;
  box-shadow: 0 0 15px rgba(var(--theme-primary-rgb), 0.3) !important;
  background: rgba(0, 0, 0, 0.7) !important;
}

/* SUBTLE PROGRESS BAR */
.v2-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.v2-progress-bar.active {
  opacity: 1;
}

.v2-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--theme-primary);
  box-shadow: 0 0 15px var(--theme-primary);
  transition: width 0.3s ease-out;
}

/* Hide Arrows from input number */
#rankPagination input::-webkit-outer-spin-button,
#rankPagination input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
}

#rankPagination input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

@media (max-width: 768px) {
  .rank-pagination {
    flex-direction: column;
    gap: 20px;
  }
}

/* Glassmorphic Modals */
.v2-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.v2-modal.active {
  display: flex !important;
  pointer-events: all;
  opacity: 1;
  visibility: visible;
}

.v2-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 15, 0.85);
  backdrop-filter: blur(12px);
}

.v2-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: rgba(10, 15, 25, 0.7);
  border: 1px solid rgba(0, 180, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 140, 255, 0.1);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-modal.active .v2-modal-container {
  transform: scale(1);
}

.v2-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.v2-modal-title {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 4px;
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}

.v2-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.v2-modal-close:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: rgba(255, 80, 80, 0.3);
  transform: rotate(90deg);
}

.v2-modal-grid {
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.v2-modal-grid::-webkit-scrollbar {
  width: 6px;
}

.v2-modal-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 180, 255, 0.2);
  border-radius: 10px;
}

.v2-modal-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.v2-modal-item:hover {
  background: rgba(0, 180, 255, 0.08);
  border-color: rgba(0, 180, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.v2-modal-item.active {
  background: rgba(0, 180, 255, 0.15);
  border-color: rgba(0, 180, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.2);
}

.v2-modal-item-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.4));
}

.v2-modal-item-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  font-size: 0.95rem;
}

.v2-modal-item-status {
  font-size: 0.7rem;
  opacity: 0.5;
  color: var(--theme-primary);
}

/* Player Details Modal */
.player-details-container {
  padding: 0 !important;
  overflow: hidden;
  background: rgba(10, 11, 14, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.player-details-header {
  padding: 60px 40px 40px;
  background: linear-gradient(to bottom, rgba(255, 179, 0, 0.18), rgba(255, 179, 0, 0.02)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 179, 0, 0.03) 2px, rgba(255, 179, 0, 0.03) 4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(255, 179, 0, 0.15);
}

.player-details-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--theme-primary);
  box-shadow: 0 0 30px rgba(255, 179, 0, 0.2);
  margin-bottom: 20px;
  background: #111;
  object-fit: cover;
}

.player-details-name {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-main);
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 5px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.player-details-rank {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-primary);
  letter-spacing: 4px;
  opacity: 0.7;
  text-transform: uppercase;
}

.player-details-stats-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.v2-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
}

.v2-stat-card:hover {
  background: rgba(255, 179, 0, 0.03);
  border-color: rgba(255, 179, 0, 0.1);
  transform: translateY(-5px);
}

.v2-stat-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-stat-icon svg {
  width: 24px !important;
  height: 24px !important;
}

.v2-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-stat);
}

.v2-stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-details-footer {
  padding: 20px 30px 40px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.v2-analysis-btn {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-transform: uppercase;
}

.v2-analysis-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  scale: 1.02;
}

.v2-analysis-btn.primary {
  background: rgba(255, 179, 0, 0.05);
  border: 1px solid rgba(255, 179, 0, 0.2);
  color: var(--theme-primary);
}

.v2-analysis-btn.primary:hover {
  background: var(--theme-primary);
  color: #000;
  border-color: var(--theme-primary);
  box-shadow: 0 0 30px rgba(255, 179, 0, 0.2), 0 0 10px rgba(255, 179, 0, 0.2);
}

.v2-analysis-btn.primary:hover svg path {
  stroke: #000 !important;
  opacity: 1 !important;
}

.v2-analysis-btn:active {
  scale: 0.98;
  opacity: 0.9;
}

/* RANK ICONS INTEGRATION */
.rank-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  padding-right: 10px;
}

.rank-icon-wrapper svg {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rank-row:hover .rank-icon-wrapper svg,
.tactical-table tr:hover .rank-icon-wrapper svg {
  transform: scale(1.15) rotate(2deg);
  filter: drop-shadow(0 0 12px rgba(255, 179, 0, 0.35));
}

.player-details-rank-icon {
  z-index: 2;
}

.player-details-rank-icon svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* ANIMATED PODIUM BADGES — Top 3 */
.podium-badge-animated {
  position: relative;
}

.podium-badge-animated svg {
  animation: badgeFloat 3s ease-in-out infinite, badgeGlow 2s ease-in-out infinite alternate;
  transform-origin: center;
}

.rank-1 .podium-badge-animated svg {
  animation: badgeFloat 2.5s ease-in-out infinite, badgeGlowGold 2s ease-in-out infinite alternate;
  animation-delay: 0s;
}

.rank-2 .podium-badge-animated svg {
  animation-delay: 0.4s;
}

.rank-3 .podium-badge-animated svg {
  animation-delay: 0.8s;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.08); }
}

@keyframes badgeGlow {
  0% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15)); }
  100% { filter: drop-shadow(0 0 18px rgba(255, 179, 0, 0.4)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.15)); }
}

@keyframes badgeGlowGold {
  0% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2)); }
  100% { filter: drop-shadow(0 0 25px rgba(255, 179, 0, 0.6)) drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); }
}

.hud-card:hover .podium-badge-animated svg {
  animation-play-state: paused;
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(255, 179, 0, 0.5));
  transition: all 0.3s ease;
}

.rank-fallback-text {
  font-family: var(--font-stat);
  font-weight: 900;
  color: var(--theme-primary);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 15px rgba(255, 179, 0, 0.5);
  background: rgba(255, 179, 0, 0.08);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 179, 0, 0.25);
  white-space: nowrap;
  animation: fallbackPulse 2s infinite ease-in-out;
}

@keyframes fallbackPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.player-details-rank-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}