@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;

  min-height: 100vh;
  background-color: #08080f;
  background-image: url('bg.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #18181d;
}

::-webkit-scrollbar-thumb {
  background: #4242698c;
  border-radius: 4px;
}

.nav-glass {
  background: rgba(51, 51, 51, 0.26);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}

.nav-logo-img {
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.nav-brand-img {
  padding-top: 3px;
  height: 1.5rem;
  width: auto;
  object-fit: cover;
}

.nav-link {
  padding: 0.375rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #9ca3af;
  text-decoration: none;
  background: transparent;
}

.mobile-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
}
.playerCloseBtn:hover {
  color:#2d2d4e;
  background-color: rgba(130, 142, 153, 0.61);
}

@media (min-width: 640px) {
  .nav-logo-img {
    height: 2.25rem;
    width: 2.25rem;
  }

  .nav-brand-img {
    height: 1.5rem;
  }
}

.tierListInfo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0 0 8px;
}

.tierListImg {
  object-fit: cover;
  object-position: center;
  width: auto;
  height: 40px;
}

.tier-s-bg {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
}

.tier-a-bg {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
}

.tier-b-bg {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
}

.tier-c-bg {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
}

.tier-d-bg {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.tier-s-glow {
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.2) !important;
}

.tier-a-glow {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.2) !important;
}

.tier-b-glow {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2) !important;
}

.tier-c-glow {
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2) !important;
}

.tier-d-glow {
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2) !important;
}

.tier-s-bar {
  border-left: 2px solid #fbbf24;
  background: rgba(251, 191, 36, 0.03);
}

.tier-a-bar {
  border-left: 2px solid #a855f7;
  background: rgba(168, 85, 247, 0.03);
}

.tier-b-bar {
  border-left: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.03);
}

.tier-c-bar {
  border-left: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.03);
}

.tier-d-bar {
  border-left: 2px solid #ef4444;
  background: rgba(239, 68, 68, 0.03);
}

.el-earth {
  color: #10b981;
}

.el-fire {
  color: #ef4444;
}

.el-water {
  color: #3b82f6;
}

.el-air {
  color: #fafafa;
}

.el-earth-bg {
  background: rgba(16, 185, 129, 0.03);
  border-left: 2px solid #10b981;
}

.el-fire-bg {
  background: rgba(239, 68, 68, 0.03);
  border-left: 2px solid #ef4444;
}

.el-water-bg {
  background: rgba(59, 130, 246, 0.03);
  border-left: 2px solid #3b82f6;
}

.el-air-bg {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid #fafafa;
}

.el-chi {
  color: #f59e0b;
}

.el-light-spirit {
  color: #fde047;
}

.el-dark-spirit {
  color: #4338ca;
}

.el-chi-bg {
  background: rgba(245, 158, 11, 0.03);
  border-left: 2px solid #f59e0b;
}

.el-light-spirit-bg {
  background: rgba(253, 224, 71, 0.03);
  border-left: 2px solid #fde047;
}

.el-dark-spirit-bg {
  background: rgba(67, 56, 202, 0.03);
  border-left: 2px solid #4338ca;
}

.search-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: 0;
  transition: all 0.2s;
}

.search-box:focus {
  border-color: rgba(75, 95, 114, 0.4);
  background: rgba(139, 200, 250, 0.05);
  box-shadow: 0 0 15px rgba(162, 193, 250, 0.1);
}

select.search-box {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

select.search-box option {
  background: #12121f;
  color: #fff;
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
}

.tab-btn.active {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.4);
  color: #a78bfa;
}

.player-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(167, 139, 250, 0.05);
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-card:hover {
  background: rgba(146, 146, 148, 0.03);
  border-color: rgba(104, 103, 104, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px -15px rgba(129, 127, 134, 0.3);
}

.skin-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 160px;
  overflow: hidden;
  padding: 8px;

}

.skin-wrap img {
  padding: 1px 0;
  height: 130px;
  width: auto;
  object-fit: contain;
  transition:
    transform 0.3s,
    filter 0.3s;
  image-rendering: auto;
      border-radius: 32px;


}

.player-card:hover .skin-wrap img {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 6px 20px rgba(144, 144, 145, 0.4));
}

.ip-bar {
  background: rgba(167, 139, 250, 0.03);
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tier-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.tier-section-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px currentColor);
}

@keyframes cp {

  0%,
  100% {
    filter: drop-shadow(0 0 6px #fbbf24);
  }

  50% {
    filter: drop-shadow(0 0 18px #f59e0b);
  }
}

.icon-s {
  animation: cp 2.5s ease-in-out infinite;
  color: #fbbf24;
}

.icon-a {
  color: #a855f7;
  filter: drop-shadow(0 0 8px #a855f7);
}

.icon-b {
  color: #3b82f6;
  filter: drop-shadow(0 0 8px #3b82f6);
}

.icon-c {
  color: #10b981;
  filter: drop-shadow(0 0 8px #10b981);
}

.icon-d {
  color: #ef4444;
  filter: drop-shadow(0 0 8px #ef4444);
}

.badge-owner {
  background: #dc2626;
  color: #fff;
}

.badge-dev {
  background: #38bdf8;
  color: #fff;
}

.badge-admin {
  background: #ec4899;
  color: #fff;
}

.badge-tester {
  background: #84cc16;
  color: #fff;
}

.badge-staff {
  background: #6b7280;
  color: #fff;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: transparent;
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.4s;
  z-index: 9999;
  pointer-events: none;
  border: 1px solid rgba(204, 201, 201, 0.397);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes shm {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #1a1a2e 25%, #2d2d4e 50%, #1a1a2e 75%);
  background-size: 600px 100%;
  animation: shm 1.6s infinite;
}

@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.fade-up {
  animation: fu 0.4s ease forwards;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .modal-bg {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-box {
  background: rgba(18, 18, 31, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 213, 213, 0.1);
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  animation: fu 0.3s ease;
}

@media (min-width: 640px) {
  .modal-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    animation: fu 0.3s ease;
  }
}

.title-fade {
  color: #ffffff;
}