﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* 
 * Fragujemy.com Global Styles - Modularized V4
 * Plik utworzony dla globalnych poprawek caÅ‚ego serwisu
 * 
 * CHANGES: UsuniÄ™to z body font-size, Å¼eby uniknÄ…Ä‡ konfliktÃ³w
 */

:root {
  /* Globalny mnoÅ¼nik rozmiaru czcionki */
  --font-scale: 1.15;
}

/* 
 * 1. ZWIÄ˜KSZENIE CZCIONEK 
 * Zmieniamy rozmiary tekstu uÅ¼ywajÄ…c CSS variables i calc() 
 * do nadpisania istniejÄ…cych styli w komponentach
 */

.nav-item {
  font-size: calc(0.75rem * var(--font-scale));
}

.nav-item.nav-forum .material-symbols-outlined {
  color: var(--cyan);
}

.nav-item.nav-forum:hover,
.nav-item.nav-forum.active {
  background: rgba(0, 160, 255, 0.1);
  border-color: rgba(0, 160, 255, 0.2);
  color: #fff;
}

.nav-lbl {
  font-size: calc(0.7rem * var(--font-scale));
}

.nav-sub-item {
  font-size: 0.81rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.topbar-bc {
  font-size: calc(0.85rem * var(--font-scale));
}

.sb-logo-name {
  font-size: calc(0.87rem * var(--font-scale));
}

.sb-logo-tag {
  font-size: calc(0.73rem * var(--font-scale));
}

.tb-login-btn {
  font-size: calc(0.85rem * var(--font-scale));
}

.tb-user-name {
  font-size: calc(0.9rem * var(--font-scale));
}

/* ZMIANA: UsuniÄ™to z body, Å¼eby nie nadpisywaÄ‡ media queries */
body {
  font-size: calc(17px * var(--font-scale));
}

/* 
 * 2. KLASY POMOCNICZE / WSPÃ“LNE
 */

/* Standaryzacja nagÅ‚Ã³wkÃ³w widgetÃ³w - identyczna wysokoÅ›Ä‡ i wyrÃ³wnanie linii */
.widget-hdr {
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  box-sizing: border-box;
}

.widget-title {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* WyÅ›rodkowanie widgetu Partnerzy - USUNIÄ˜TO ABSOLUTE, ABY UNIKNÄ„Ä† NAKÅADANIA ICONY */
#w-str .widget-title,
.widget.w-twitch .widget-title {
  text-align: left;
  width: auto;
}

.widget.w-twitch .widget-hdr {
  justify-content: flex-start;
  border-bottom: 1px solid rgb(71 101 103 / 15%);
}

.widget.w-twitch .widget-hdr-icon {
  position: static;
  transform: none;
  color: #9146ff;
  margin-right: 8px;
}

.widget.w-twitch .widget-badge {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* WyrÃ³wnanie paddingu Statystyk i PartnerÃ³w */
.widget.w-cyan .widget-body,
.widget.w-twitch .widget-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
}

/* --- OPTIMIZED PREMIUM FOOTER (MINIMALISTIC) --- */
/* --- OPTIMIZED PREMIUM FOOTER (3-COLUMN LAYOUT) --- */
.site-footer-premium {
  position: relative;
  z-index: 10;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  animation: footerSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  margin-top: auto;
}

@keyframes footerSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.footer-top-border {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00c4ff, transparent);
}

/* Three Columns */
.footer-left {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-center {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-right {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: translateX(5px);
}

.footer-logo img {
  height: 24px;
  filter: drop-shadow(0 0 10px rgba(0, 225, 255, 0.4));
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.logo-text span {
  color: #00c4ff;
  text-shadow: 0 0 10px #00c4ff;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.62rem;
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-social-grid {
  display: flex;
  gap: 14px;
  align-items: center;
}

.f-social-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.f-social-icon img {
  width: 30px;
  height: 30px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Discord icon already matches base size */

/* Hover Effects */
.f-social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(255, 255, 255, 0.08);
}

.f-social-icon:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Specific Brand Colors */
.f-social-icon.ds:hover {
  border-color: #5865F2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.f-social-icon.ts:hover {
  border-color: #004586;
  box-shadow: 0 0 20px rgba(0, 69, 134, 0.5);
}

.f-social-icon.fb:hover {
  border-color: #1877F2;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.5);
}

.f-social-icon.tw:hover {
  border-color: #9146FF;
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.5);
}

.f-social-icon.tt:hover {
  border-color: #00f2ea;
  box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}

.f-social-icon.ig:hover {
  border-color: #E1306C;
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.5);
}

/* Hover Tooltip Label */
.f-social-icon::after {
  content: attr(data-label);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #00c4ff;
  color: #000;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.f-social-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- END PREMIUM FOOTER --- */

/* Specific brand colors on hover */
.f-social-icon.ds:hover {
  border-color: #5865F2;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.f-social-icon.ds:hover::after {
  background: #5865F2;
  color: #fff;
}

.f-social-icon.tw:hover {
  border-color: #9146FF;
  box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3);
}

.f-social-icon.tw:hover::after {
  background: #9146FF;
  color: #fff;
}

.f-social-icon.fb:hover {
  border-color: #1877F2;
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.f-social-icon.fb:hover::after {
  background: #1877F2;
  color: #fff;
}

.f-social-icon.tt:hover {
  border-color: #ff0050;
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.3);
}

.f-social-icon.tt:hover::after {
  background: #ff0050;
  color: #fff;
}

.f-social-icon.ig:hover {
  border-color: #E1306C;
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.f-social-icon.ig:hover::after {
  background: #E1306C;
  color: #fff;
}

.f-social-icon.ts:hover {
  border-color: #004a99;
  box-shadow: 0 8px 25px rgba(0, 74, 153, 0.3);
}

.f-social-icon.ts:hover::after {
  background: #004a99;
  color: #fff;
}

@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 12px;
    padding: 10px 24px;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-col ul {
    justify-content: center;
  }

  .footer-col h4 {
    display: none;
    /* Ukryjmy nagÅ‚Ã³wki na mobajlu dla jeszcze wiÄ™kszego minimalizmu */
  }
}


/* ========================================= */
/* FIX: UNIFIED BUTTON SIZES (MODAL & PANEL) */
/* ========================================= */

.btn-openweb,
.demo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 130px;
  padding: 0 20px;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.demo-copy,
.demo-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  font-size: .81rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  box-sizing: border-box;
  min-width: 90px;
  margin: 0;
  line-height: 1;
}

/* 3. PROFILE DROPDOWN BADGES */
.tb-drop-badge {
  margin-left: auto;
  font-size: .65rem;
  background: rgba(255, 50, 50, .15);
  border: 1px solid rgba(255, 50, 50, .35);
  padding: 1px 5px;
  border-radius: 4px;
  color: #ff3030;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.podium-wrapper {
  margin: 30px -20px 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.7) 0%, rgba(5, 10, 20, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 180, 255, 0.15);
  border-bottom: 1px solid rgba(0, 180, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.podium-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.4), transparent);
}

.podium-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* â•â•â• TOPBAR SEARCH (Premium Glassmorphism) â•â•â• */
/* =========================================================
   SEARCH BAR – Mobile-first, desktop expanded
   ========================================================= */

/* Mobile / Small screens: collapsed icon-only, expands on hover/focus/open */
header.topbar .tb-search {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 38px;
  width: 38px;
  background: rgba(15, 20, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border-color 0.3s;
  overflow: visible;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin: 0;
  padding: 0;
}

header.topbar .tb-search:hover,
header.topbar .tb-search:focus-within,
header.topbar .tb-search.open {
  width: 320px;
  background: rgba(5, 8, 15, 0.95);
  border-color: rgba(0, 180, 255, 0.6);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 180, 255, 0.2);
}

header.topbar .tb-search .tb-search-icon {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d2ff;
  cursor: pointer;
  font-size: 22px;
  transition: none;
  transform: none;
  margin: 0;
}

header.topbar .tb-search:hover .tb-search-icon,
header.topbar .tb-search:focus-within .tb-search-icon,
header.topbar .tb-search.open .tb-search-icon {
  color: #00d2ff;
  transform: none;
}

header.topbar .tb-search input.tb-search-input {
  width: 0;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  padding: 0;
  opacity: 0;
  transition: width 0.4s, opacity 0.3s;
  flex: 1;
  visibility: hidden;
}

header.topbar .tb-search:hover input.tb-search-input,
header.topbar .tb-search:focus-within input.tb-search-input,
header.topbar .tb-search.open input.tb-search-input {
  width: auto;
  padding: 0 15px 0 0;
  opacity: 1;
  visibility: visible;
}

header.topbar .tb-search .tb-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Custom results dropdown */
header.topbar .tb-search .tb-search-results {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  right: 0;
  background: rgba(10, 15, 25, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 12px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  z-index: 10001;
  animation: tbUltraSlide 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes tbUltraSlide {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

header.topbar .tb-search.open .tb-search-results,
header.topbar .tb-search .tb-search-results.has-results {
  display: flex;
}

header.topbar .tb-search .tb-sr-header {
  padding: 12px 15px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 180, 255, 0.6);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 5px;
}

header.topbar .tb-search .tb-sr {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

header.topbar .tb-search .tb-sr:last-child { border-bottom: none; }

header.topbar .tb-search .tb-sr:hover { background: rgba(0, 180, 255, 0.08); }

header.topbar .tb-search .tb-sr-av {
  width: 36px; height: 36px; border-radius: 8px; margin-right: 12px;
  object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.1);
}

header.topbar .tb-search .tb-sr-info { flex: 1; }

header.topbar .tb-search .tb-sr-name {
  color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 2px;
}

header.topbar .tb-search .tb-sr-role {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

header.topbar .tb-search .tb-sr-visits {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.4); font-size: 12px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
}

header.topbar .tb-search .tb-sr-visits span { font-size: 14px; }

header.topbar .tb-search .tb-sr-empty {
  padding: 30px 15px; text-align: center;
  color: rgba(255,255,255,0.4); font-size: 14px;
}

.tb-sr {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tb-sr:last-child { border-bottom: none; }
.tb-sr:hover { background: rgba(0,180,255,0.12); transform: translateX(4px); }

.tb-sr-av {
  width: 38px; height: 38px; border-radius: 8px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.tb-sr-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.tb-sr-name {
  color: #fff; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tb-sr-role {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  font-weight: 800; opacity: 0.9;
}

.tb-sr-empty {
  padding: 30px 20px; text-align: center;
  color: rgba(255,255,255,0.4); font-style: italic; font-size: 13px;
}

/* Desktop: permanently expanded, no animation */
@media (min-width: 769px) {
  header.topbar .tb-search {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 38px;
    width: 320px;
    background: rgba(5, 8, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 180, 255, 0.6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: none;
    overflow: visible;
    z-index: 10000;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 180, 255, 0.2);
    margin: 0;
    padding: 0;
  }

  header.topbar .tb-search .tb-search-icon {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d2ff;
    cursor: pointer;
    font-size: 22px;
    transition: none;
    transform: none;
    margin: 0;
  }

  header.topbar .tb-search input.tb-search-input {
    width: auto;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 0 15px 0 0;
    opacity: 1;
    transition: none;
    flex: 1;
    visibility: visible;
  }
}

/* Tablet / small screens: keep existing relative behavior */
@media (max-width: 900px) {
  .tb-search {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 10px;
  }
}

.tb-sr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tb-sr:last-child {
  border-bottom: none;
}

.tb-sr:hover {
  background: rgba(0, 180, 255, 0.12);
  transform: translateX(4px);
}

.tb-sr-av {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tb-sr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tb-sr-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-sr-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  opacity: 0.9;
}

.tb-sr-empty {
  padding: 30px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 13px;
}

@media (max-width: 900px) {
  .tb-search {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 10px;
  }
}

.podium-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

/* 4. REDESIGNED PODIUM (PREMIUM BOX & FULL-WIDTH) */
.podium-wrapper {
  margin: 30px -20px 40px;
  padding: 50px 20px;
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.75) 0%, rgba(4, 6, 12, 0.9) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 180, 255, 0.18);
  border-bottom: 1px solid rgba(0, 180, 255, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 150, 255, 0.03);
  border-radius: 0;
}

.podium-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.4), transparent);
  z-index: 5;
}

.podium-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* â•â•â• ADMIN NOTIFICATIONS BELL â•â•â• */
.tb-admin-bell {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15, 20, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  margin-right: 12px;
}

.tb-admin-bell:hover {
  background: rgba(0, 180, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 180, 255, 0.15);
}

.tb-admin-bell .material-symbols-outlined {
  color: rgba(180, 200, 240, 0.6);
  font-size: 22px;
}

.tb-admin-bell:hover .material-symbols-outlined {
  color: #00d2ff;
}

.tb-admin-bell .tb-bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: #ff4a4a;
  border: 2px solid #0d121f;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 60, 60, 0.6);
  z-index: 2;
}

.tb-bell-ringing {
  animation: tbBellRing 0.8s ease;
}

@keyframes tbBellRing {

  0%,
  100% {
    transform: rotate(0);
  }

  15% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-12deg);
  }

  45% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(-8deg);
  }

  75% {
    transform: rotate(5deg);
  }
}


.rank-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 25px;
  text-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}

.podium-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ps-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ps-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.4);
  transition: all 0.3s ease;
}

.ps-btn:hover,
.ps-btn.active {
  background: rgba(0, 150, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 120, 255, 0.2);
}

.ps-btn:hover img,
.ps-btn.active img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}

.rank-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  min-height: 420px;
  position: relative;
}

.podium-spot {
  flex: 1;
  max-width: 220px;
  background: rgba(20, 26, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.podium-spot:hover {
  transform: translateY(-8px);
  background: rgba(28, 36, 52, 0.8);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 150, 255, 0.1);
}

.podium-avatar {
  width: 90px;
  height: 90px;
  position: relative;
  margin-bottom: 20px;
  z-index: 5;
}

.podium-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00d2ff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
  background: #060912;
}

.podium-medal {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: #060912;
  border: 2px solid #00d2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: #fff;
  font-size: 0.9rem;
  z-index: 10;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.podium-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-score {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.podium-score small {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-left: 2px;
}

/* Spot-specific overrides */
.spot-1 {
  max-width: 250px;
  min-height: 360px;
  background: rgba(24, 32, 48, 0.8);
  border-color: rgba(0, 210, 255, 0.25);
  z-index: 5;
}

.spot-1 .podium-avatar {
  width: 125px;
  height: 125px;
}

.spot-1 .podium-medal {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  background: var(--cyan);
  color: #000;
  top: -15px;
}

.podium-crown {
  position: absolute;
  top: -75px;
  left: 50%;
  transform: translateX(-50%);
  color: #00d2ff;
  z-index: 100;
  animation: crownFloat 3s ease-in-out infinite;
}

.podium-crown .material-symbols-outlined {
  font-size: 56px;
  filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.8));
}

.podium-stats {
  width: 100%;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: 'Rajdhani', sans-serif;
  color: rgba(255, 255, 255, 0.4);
}

.ps-row strong {
  color: #fff;
}

@keyframes crownFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateX(-50%) translateY(-10px) rotate(5deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  .podium-wrapper {
    margin: 20px -15px;
    padding: 30px 15px;
  }

  .rank-podium {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .podium-spot {
    width: 100%;
    max-width: 320px;
    flex: none;
  }

  .spot-1 {
    order: -1;
  }
}

/* --- GLOBAL PREMIUM LOADING BAR --- */
.rank-loader-bar {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin: 20px auto;
}

.rank-loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  animation: bar-loading 1.2s infinite linear;
}

@keyframes bar-loading {
  0% {
    left: -40%;
  }

  100% {
    left: 100%;
  }
}

.rank-loader-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 5px;
  font-weight: 700;
  text-align: center;
}

.status-expired-inline {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* --- SERVER CATEGORIES FIX (OVERRIDE) --- */
.srv-cat-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  /* Fix for regression spreading badge and name */
}

.cat-badge {
  box-shadow: 0 0 15px currentColor;
  font-weight: 900;
}

.cat-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-left: 2px;
}

.cat-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Sidebar Skinchanger Lock */
.nav-item.locked {
  cursor: not-allowed;
  position: relative;
}

.nav-item.locked .material-symbols-outlined:first-child {
  color: rgba(255, 255, 255, 0.6);
}

.nav-item.locked .nav-item-label,
.nav-item.locked .nav-lbl {
  color: #fff;
  opacity: 0.8;
}

.nav-item.locked::after {
  display: none;
}

/* Guard Overlay */
.fg-guard-overlay {
  position: fixed;
  inset: 0;
  background: #090b10;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.fg-guard-card {
  background: rgba(20, 25, 35, 0.8);
  padding: 45px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 75, 43, 0.2);
  backdrop-filter: blur(30px);
  max-width: 420px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  animation: guardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes guardIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Sidebar Locks */
.fg-sidebar-lock {
  font-family: 'Material Symbols Outlined';
  font-size: 14px;
  color: #00d2ff;
  margin-left: auto;
  margin-right: 5px;
  opacity: 0.6;
  font-variation-settings: 'FILL' 1;
  pointer-events: none;
  display: inline-block;
  line-height: 1;
}
