/* xp bar styles */
.xp-rank-container {
  max-height: 200px;
  height: auto;
  overflow-y: auto;
  padding: 10px 18px 10px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rt-border);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  padding-bottom: 5px;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid var(--rt-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  position: relative;
}

.xp-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
  padding: 0 4px;
}

.xp-role-col {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.xp-img-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.xp-rank-img {
  width: 85px;
  height: 85px;
  margin-right: 0;
  box-shadow: 0 0 12px #a855f7;
  background: rgb(79, 32, 112);
  border-radius: 12px;
  object-fit: contain;
  transition: box-shadow 0.2s, transform 0.2s;
}

.xp-rank-img:hover {
  box-shadow: 0 0 24px #f472b6;
  transform: scale(1.07);
}

.xp-role {
  min-width: 80px;
  max-width: 150px;
  padding: 8px 20px;
  border-radius: 18px;
  background: #18122b;
  color: #f472b6;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  font-size: 1.1em;
  box-shadow: 0 0 8px #a855f7;
  letter-spacing: 1px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
}

.xp-bar-container {
  margin-top: 0;
  margin-bottom: 0;
}
.xp-bar-container {
  width: 100%;
}

.xp-bar-bg {
  position: relative;
  width: 100%;
  height: 10px;
  background: #18122b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px #8b5cf6;
}

.xp-bar-fire-bg {
  position: absolute;
  left: 0;
  top: -12px;
  width: 100%;
  height: 46px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.xp-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6 0%, #4c1d95 100%);
  border-radius: 12px;
  transition: width 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
}

.xp-fire {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 32px;
  pointer-events: none;
  z-index: 3;
  display: none;
}

.xp-bar.over {
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 100%);
  box-shadow: 0 0 24px #38bdf8;
}

.xp-fire.active {
  display: block;
  animation: fireAnim 0.7s infinite linear;
}

@keyframes fireAnim {
  0% {
    filter: blur(2px) brightness(1.2);
    opacity: 1;
  }
  50% {
    filter: blur(6px) brightness(2);
    opacity: 0.7;
  }
  100% {
    filter: blur(2px) brightness(1.2);
    opacity: 1;
  }
}

.xp-label {
  margin-top: 6px;
  font-size: 1.05em;
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.xp-arrow {
  background: #312e81;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.2em;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s;
}

.xp-arrow:hover {
  background: #8b5cf6;
}

.fire-effect {
  position: absolute;
  right: -40px;
  top: -18px;
  width: 80px;
  height: 60px;
  pointer-events: none;
  z-index: 10;
}
.fire-spark.left {
  position: absolute;
  left: -18px;
  top: 12px;
  opacity: 0.8;
}
.fire-spark.right {
  position: absolute;
  right: -18px;
  top: 12px;
  opacity: 0.8;
}
@keyframes fireWave {
  0% {
    transform: scaleY(1) translateY(0px);
    filter: blur(2px) brightness(1.2);
  }
  50% {
    transform: scaleY(1.18) translateY(-6px);
    filter: blur(8px) brightness(2);
  }
  100% {
    transform: scaleY(1) translateY(0px);
    filter: blur(2px) brightness(1.2);
  }
}
@keyframes fireSparkLeft {
  0% {
    transform: scaleY(1) scaleX(1) translateY(0px);
  }
  50% {
    transform: scaleY(1.2) scaleX(0.95) translateY(-8px);
  }
  100% {
    transform: scaleY(1) scaleX(1) translateY(0px);
  }
}
@keyframes fireSparkRight {
  0% {
    transform: scaleY(1) scaleX(1) translateY(0px);
  }
  50% {
    transform: scaleY(1.2) scaleX(1.05) translateY(-8px);
  }
  100% {
    transform: scaleY(1) scaleX(1) translateY(0px);
  }
}
.xp-bar-bg.fire-active .xp-bar-fire-bg {
  opacity: 1;
  animation: fireBarWave 1.2s infinite linear;
}
.xp-bar-bg.fire-active {
  box-shadow: 0 0 32px 8px #38bdf8, 0 0 0 4px #60a5fa inset;
  border: 2px solid #38bdf8;
}
@keyframes fireBarWave {
  0% {
    filter: blur(2px) brightness(1.2);
  }
  50% {
    filter: blur(8px) brightness(2);
  }
  100% {
    filter: blur(2px) brightness(1.2);
  }
}
