.vip-bar,
.xu-bar {
  border-radius: 10px;
  position: relative
}

.main-img img,
.vip-bar,
.xu-bar {
  position: relative
}

#gif-circle,
#gif-circle2 {
  mix-blend-mode: plus-lighter;
  left: 50%;
  transform: translateX(-50%);
  display: none; 
}

#char,
#gif-circle,
#gif-circle2 {
  transform: translateX(-50%)
}

#syncing-status img,
.combat-log .drop-box {
  display: block !important
}

#kc-circle,
#kc-line {
  transition: opacity .12s;
  z-index: 100000
}

.vip-level {
  font-size: 18px;
  font-weight: 700
}

.vip-progress {
  margin-top: 12px
}

.vip-bar {
  width: 100%;
  height: 15px;
  background-color: #e0e0e0;
  overflow: hidden
}

#xu_vip_bar,
.xu-bar {
  width: 0%
}

.xu-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff9a5a 25%, #ff6f61 50%, #ff9a5a 75%);
  background-size: 200% 100%;
  animation: 2s linear infinite flowingBar;
  transition: width .6s ease-in-out;
  max-width: 100%
}

.spark {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd37a, #ff6f00);
  opacity: .9;
  animation: 1.8s linear infinite sparkFly
}

.spark:first-child {
  left: 98%;
  width: 6px;
  height: 6px;
  animation-delay: 0s;
  animation-name: sparkFly1
}

.spark:nth-child(2) {
  left: 96%;
  width: 4px;
  height: 4px;
  animation-delay: .1s;
  animation-name: sparkFly2
}

.spark:nth-child(3) {
  left: 94%;
  width: 7px;
  height: 7px;
  animation-delay: .2s;
  animation-name: sparkFly3
}

.spark:nth-child(4) {
  left: 97%;
  width: 5px;
  height: 5px;
  animation-delay: .25s;
  animation-name: sparkFly4
}

.spark:nth-child(5) {
  left: 93%;
  width: 6px;
  height: 6px;
  animation-delay: .3s;
  animation-name: sparkFly5
}

.spark:nth-child(6) {
  left: 99%;
  width: 5px;
  height: 5px;
  animation-delay: .35s;
  animation-name: sparkFly6
}

.spark:nth-child(7) {
  left: 95%;
  width: 8px;
  height: 8px;
  animation-delay: .4s;
  animation-name: sparkFly7
}

.spark:nth-child(8) {
  left: 92%;
  width: 5px;
  height: 5px;
  animation-delay: .45s;
  animation-name: sparkFly8
}

.spark:nth-child(9) {
  left: 98%;
  width: 7px;
  height: 7px;
  animation-delay: .5s;
  animation-name: sparkFly9
}

.spark:nth-child(10) {
  left: 90%;
  width: 4px;
  height: 4px;
  animation-delay: .55s;
  animation-name: sparkFly10
}

.spark:nth-child(11) {
  left: 94%;
  width: 6px;
  height: 6px;
  animation-delay: .6s;
  animation-name: sparkFly11
}

.spark:nth-child(12) {
  left: 91%;
  width: 7px;
  height: 7px;
  animation-delay: .65s;
  animation-name: sparkFly12
}

.spark:nth-child(13) {
  left: 97%;
  width: 4px;
  height: 4px;
  animation-delay: .7s;
  animation-name: sparkFly13
}

.spark:nth-child(14) {
  left: 93%;
  width: 5px;
  height: 5px;
  animation-delay: .75s;
  animation-name: sparkFly14
}

.spark:nth-child(15) {
  left: 95%;
  width: 6px;
  height: 6px;
  animation-delay: .8s;
  animation-name: sparkFly15
}

@keyframes sparkFly1 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(-20px, -50px) rotate(20deg)
  }
}

@keyframes sparkFly2 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(15px, -60px) rotate(-15deg)
  }
}

@keyframes sparkFly3 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(-10px, -40px) rotate(30deg)
  }
}

@keyframes sparkFly4 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(25px, -70px) rotate(-30deg)
  }
}

@keyframes sparkFly5 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(-15px, -65px) rotate(10deg)
  }
}

@keyframes sparkFly6 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(20px, -55px) rotate(40deg)
  }
}

@keyframes sparkFly7 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(-25px, -75px) rotate(-20deg)
  }
}

@keyframes sparkFly8 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(10px, -80px) rotate(15deg)
  }
}

@keyframes sparkFly9 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(-12px, -50px) rotate(-25deg)
  }
}

@keyframes sparkFly10 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(18px, -68px) rotate(30deg)
  }
}

@keyframes sparkFly11 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(-30px, -90px) rotate(20deg)
  }
}

@keyframes sparkFly12 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(22px, -55px) rotate(-30deg)
  }
}

@keyframes sparkFly13 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(0, -70px) rotate(5deg)
  }
}

@keyframes sparkFly14 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(-18px, -65px) rotate(-10deg)
  }
}

@keyframes sparkFly15 {
  0% {
    opacity: 1;
    transform: translate(0, 0)
  }

  100% {
    opacity: 0;
    transform: translate(30px, -85px) rotate(25deg)
  }
}

@keyframes flowingBar {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

.chat-form,
.vip-info {
  margin-top: 10px
}
.chat-form {
  margin-bottom: 0;
}
.pr-chat-input-container {
  padding-bottom: 0  ;
}
.skill-cd,
.skill-desc {
  margin-top: 4px;
  font-size: 13px
}

.xp-info {
  font-size: 13px;
  color: #fff;
  text-shadow: 1px 1px #000;
  font-weight: 400;
  border-radius: 5px;
  padding: 10px
}

.vip-info .vip-info,
.vip-info .xp-info {
  text-align: left !important
}

.main-img img {
  width: 100%;
  max-width: 500px;
  z-index: 99
}

#btn-nhan-qua-vip-box {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  font-weight: lighter;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, #ffc107, #ff6046);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: .3s;
  margin-top: 20px;
  box-shadow: unset;
  width: 200px
}

#btn-nhan-qua-vip-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  animation: 2.5s infinite shine
}

@keyframes shine {
  0% {
    left: -75%
  }

  100% {
    left: 130%
  }
}

#btn-nhan-qua-vip-box:hover {
  box-shadow: 0 0 16px rgba(100, 150, 255, .9);
  transform: scale(1.03)
}

#vip_level_number {
  display: none
}

@keyframes sparkFlyUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1)
  }

  100% {
    opacity: 0;
    transform: translateY(-20px) scale(.5) rotate(20deg)
  }
}

.vip-progress-text {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: #e7e000;
  font-weight: 700;
  text-shadow: 1px 1px #000;
  pointer-events: none;
  z-index: 9;
  width: 100%;
  text-align: center
}

#vipBox-1 #vip-icon-wrapper-box {
  position: absolute;
  display: inline-block;
  width: 45px;
  height: 45px;
  z-index: 99;
  left: -8px;
  top: -4px;
}

.skill-item {
  border: 1px solid #444;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #111;
  color: #fff
}

.skill-name {
  font-size: 16px;
  color: #00ffd5
}

.skill-type {
  font-size: 13px;
  color: #999
}

.skill-desc {
  font-style: italic
}

#buonlau-branch-info {
  color: orange !important
}

.skill-cd {
  color: #ccc
}

.bar-container {
  width: 100%;
  background: #222;
  border: 1px solid #555;
  border-radius: 4px;
  height: 16px;
  margin-top: 2px;
  overflow: hidden
}

.bar {
  height: 100%;
  transition: width .3s
}

.bar-hp {
  background-color: #0c6
}

.bar-mp {
  background-color: #39f
}

.bar-sta {
  background-color: #a533ff
}

.bar-text {
  font-size: 12px;
  color: #eee;
  margin-top: 2px
}

.boss,
.xp-info span {
  color: #7f5eff
}

.main-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 420px;
  background-color: #253a36;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1) !important
}

#char,
#gif-circle {
  position: absolute
}

#char {
    width: 410px;
    max-width: 600px;
    z-index: 99;
    top: 35px;
    margin: 0 auto;
    text-align: center;
    left: 50%;  
}
 
#gif-circle {
  z-index: 1;
  top: 234px;
  height: 173px;
  width: 320px;
  opacity: 1;
  mix-blend-mode: lighten !important; 
}

.equip-slot-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  z-index: 99999
}

.equip-label {
  min-width: 100px;
  font-size: 12px;
  color: #ccc;
  margin-top: 4px;
  text-shadow: 1px 1px 2px #000;
  pointer-events: none
}

.equip-slot {
  width: 60px;
  height: 60px;
  background-color: #1a2924;
  border-radius: 4px;
  border: 2px solid #3a554d;
  position: relative;
  overflow: hidden;
  z-index: 999
}

.weapon-orbit-wrapper {
  position: absolute;
  top: 38%;
  left: 63%;
  height: 0;
  transform-style: preserve-3d;
  perspective: 800px;
  z-index: 2;
  animation: 4s linear infinite ellipseOrbitBox;
  width: 29px
}

.floating-weapon {
  position: absolute;
  width: 35px;
  transform-origin: -50px 0px;
  animation: 4s linear infinite ellipseOrbit;
  pointer-events: none;
  opacity: .9;
  z-index: 1
}

@keyframes ellipseOrbitBox {

  0%,
  100% {
    z-index: 2
  }

  25%,
  75% {
    z-index: 90
  }

  50% {
    z-index: 250
  }
}

@keyframes ellipseOrbit {
  0% {
    transform: rotateY(0) translateZ(0) rotateX(0)
  }

  25% {
    transform: rotateY(90deg) translateZ(-40px) rotateX(5deg)
  }

  50% {
    transform: rotateY(180deg) translateZ(-60px) rotateX(0)
  }

  75% {
    transform: rotateY(270deg) translateZ(-40px) rotateX(-5deg)
  }

  100% {
    transform: rotateY(360deg) translateZ(0) rotateX(0)
  }
}

#gif-circle2 {
  z-index: 1;
  width: 197px;
  height: auto;
  position: absolute;
  top: 42px;
  opacity: 1;
}

@media (max-width:768px) {
  #gif-circle {
    top: 234px
  }
}

@media (max-width:521px) {
 

  .weapon-orbit-wrapper {
    left: 66%
  }
}

 

@media (max-width:426px) {
  .weapon-orbit-wrapper {
    left: 68%;
    top: 158px
  }

  .equip-slot {
    width: 50px;
    height: 50px
  }
 

  .day-chuyen-box,
  .mu-box,
  .nhan-box,
  .phi-phong-box {
    right: 5px !important
  }

  .ao-box,
  .giay-box,
  .quan-box,
  .vu-khi-box {
    left: 5px !important
  }
}

.monster {
  background-color: #919191
}

.right-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: end
}

.right-info small {
  color: #f7d274;
  text-align: right
}

.animated-border-wrapper {
  display: inline-block;
  padding: 4px;
  border-radius: 6px;
  position: relative;
  z-index: 1
}

.animated-border-wrapper::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(45deg, #dc00dd, #c000ff, orange, #f0d);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 6px;
  animation: 6s linear infinite borderMove
}

.boss-icon {
  background-color: #437fed;
  display: block;
  border-radius: 6px
}

@keyframes borderMove {

  0%,
  100% {
    background-position: 0 50%
  }

  50% {
    background-position: 100% 50%
  }
}

.animate__animated {
  animation-duration: 1s
}

.ruong-modal-wrapper { 
  position: relative;
  margin: 0 auto
}

.ruong-title {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding-top: 8px;
  text-shadow: 1px 1px #000
}

.ruong-do { 
  font-size: 14px
}

.ruong-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 16px;
  padding: 8px;
  margin: 8px
}

#drop-list .list-group-item.hidden-drop,
.emojionearea .emojionearea-picker.emojionearea-picker-position-top.emojionearea-filters-position-bottom .emojionearea-wrapper:after,
.emojionearea-category-title,
.emojionearea-search,
.swal2-icon {
  display: none !important
}

.ruong-slot {
  width: 60px;
  height: 60px;
  background-color: #1a2924;
  border: 2px solid #5779688f;
  border-radius: 3px
}

.ruong-slot:before {
  content: "";
  border: 1px solid #40534dab;
  position: absolute;
  width: 88%;
  height: 88%;
  text-align: center;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 3px
}

.ruong-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.ruong-page-bar {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  gap: 3px
}

.page-btn {
  width: 28px;
  height: 28px;
  font-size: 13px;
  border: none;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 3px;
  cursor: pointer
}

.auto-attack h6,
.auto-regen h6,
.chevron,
.item-detail-modal-box span,
.tab-lock,
.typing-text {
  font-size: 14px
}

.page-btn.locked {
  background-color: transparent;
  color: #ffb137
}

.page-btn.locked:hover {
  background-color: rgba(255, 255, 255, .2)
}

.page-btn.active {
  background-color: #4c7b6d;
  font-weight: 700
}

.ruong-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px
}

.item-slot {
  background-color: #3d5367;
  border: 1px solid #6c859c;
  width: 40px;
  height: 40px;
  margin: 2px;
  border-radius: 3px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .6)
}

.inventory-box {
  background-color: #2f4153;
  border: 2px solid #6c859c;
  padding: 10px;
  border-radius: 6px
}

.tab-lock {
  background-color: #3d5367;
  border: 1px solid #888;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  color: #fff
}

.swal2-container {
  display: flex;
  position: fixed
}

.swal-confirm {
  z-index: 99999999999999999999 !important
}

#mini-map,
.drop-gradient-fade {
  z-index: 2;
  pointer-events: none
}

@media (max-width:490px) {
  .ruong-grid {
    grid-gap: 8px
  }
}

@media (max-width:466px) {
  .ruong-grid {
    grid-gap: 12px
  }

  .ruong-slot {
    width: 55px;
    height: 55px
  }
}

@media (max-width:432px) {
  .ruong-slot {
    width: 50px;
    height: 50px
  }
}
 

@media (max-width:415px) {
  .ruong-grid {
    grid-gap: 8px;
    grid-template-columns: repeat(5, 10fr);
    grid-gap: 16px;
    padding: 15px 0 0;
    margin: 0
  }

  .ruong-slot {
    width: 50px;
    height: 50px
  }
}

@media (max-width:390px) {
  #char { 
    width: 381px;
    top: 57px;
  }

  .ruong-slot {
    width: 55px;
    height: 55px
  }

  .ruong-grid {
    grid-template-columns: repeat(4, 10fr);
    grid-gap: 4px;
    padding: 15px 0 0 14px;
    margin: 0
  }
}

@media (max-width:381px) {
  .weapon-orbit-wrapper {
    left: 71%;
    top: 133px;
    width: 21px
  }

  #char { 
    width: 304px;
    top: 60px;
  }

  #gif-circle2 {
    height: 150px;
    width: 150px;
    left: 51%;
    top: 47px;
  }

  #gif-circle {
    height: 120px;
    width: 230px;
    left: 51%;
    top: 208px
  }

  .floating-weapon {
    width: 28px
  }

  .equip-slot {
    width: 45px;
    height: 45px
  }

  .day-chuyen-box,
  .mu-box,
  .nhan-box,
  .phi-phong-box {
    right: 5px !important
  }

  .ao-box,
  .giay-box,
  .quan-box,
  .vu-khi-box {
    left: 5px !important
  }

  .ao-box,
  .day-chuyen-box {
    top: 110px !important
  }

  .nhan-box,
  .quan-box {
    top: 184px !important
  }

  .giay-box,
  .phi-phong-box {
    top: 258px !important
  }

  .main-img {
    min-height: 362px
  }
}

@media (max-width:380px) {
  .ruong-slot {
    width: 55px;
    height: 55px
  }
}

@media (max-width:347px) {
  #gif-circle {
    top: 196px
  }

  #char {
    width: 323px;
    top: 31px; 
  }

  .weapon-orbit-wrapper {
    left: 74%;
    width: 22px;
    top: 123px
  }

  .floating-weapon {
    width: 18px
  }
}

@media (max-width:318px) {
  #char {
    width: 323px;
    top: 31px; 
  }
}

@media (max-width:309px) {
  .ruong-slot {
    width: 50px;
    height: 50px
  }
}

.ruong-slot {
  position: relative;
  cursor: pointer;
  overflow: hidden
}

#drop-list-wrapper {
  max-height: 230px;
  overflow: hidden;
  transition: max-height .4s
}

#drop-list-wrapper.expanded {
  max-height: 1000px
}
.expanded .msg-wrapper {
  max-height: unset !important;
}
.animated-arrow {
  transition: transform .3s
}

.animated-arrow.rotated,
.rotated {
  transform: rotate(180deg)
}

#quick-auto-btn,
#syncing-status,
.monster-damage-popup {
  transform: translateX(-50%)
}

#kc-circle,
.equip-slot:before {
  transform: translate(-50%, -50%)
}

.drop-gradient-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgb(23 25 40) 100%);
  transition: opacity .3s
}

#drop-list-wrapper.expanded .drop-gradient-fade {
  opacity: 0
}

.typing-text {
  display: inline-block;
  color: #919191;
  font-weight: 500;
  min-height: 20px
}

.chevron-wave {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .3s
}

#loading-overlay,
#syncing-status,
.close-btn,
.drop-box,
.equip-grid,
.item-overlay {
  display: flex; 
}

.chevron {
  color: #fff;
  opacity: .2;
  animation: 1.2s infinite chevronWave;
  line-height: 6px
}

.delay-2 {
  animation-delay: .2s
}

.delay-3 {
  animation-delay: .4s
}

@keyframes chevronWave {

  0%,
  100% {
    opacity: .2;
    transform: translateY(0)
  }

  50% {
    opacity: 1;
    transform: translateY(2px)
  }
}

.item-quantity {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: rgba(0, 0, 0, .7);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  color: #fff
}

.item-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  z-index: 999999 !important;
  align-items: center;
  justify-content: center
}

.item-detail-modal-box {
  background: #112f2c;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 350px;
  width: 90%;
  position: relative;
  animation: .3s ease-in-out fadeIn;
  border: 1px solid gray;
  text-align: center
}

.item-detail-modal-box ul {
  list-style-type: none;
  padding: 10px 8px !important
}

.item-detail-modal-box h4 {
  font-size: 20px
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 29px;
  color: #a1a1a1;
  background: 0 0;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background-color: #04040433;
  align-items: center;
  justify-content: center
}

.boss-circle,
.monster-circle {
  background-size: contain;
  background-repeat: no-repeat
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(.9)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.option-trang {
  color: #0c6
}

.equipment-panel {
  position: relative;
  width: 100%; 
  margin: 0 auto;
  z-index: 99
}

#map-bg,
#mini-map,
#player-fixed,
.effect-float {
  position: absolute
}

.item-detail-modal ul {
  list-style-type: none;
  text-align: center;
  padding: 10px !important
}

@keyframes flyUp {
  0% {
    opacity: 1;
    transform: translateY(0)
  }

  100% {
    opacity: 0;
    transform: translateY(-60px)
  }
}

.effect-float {
  right: 20px;
  bottom: 0;
  font-size: 16px;
  font-weight: 700;
  z-index: 9999;
  pointer-events: none;
  animation: 1.5s ease-out forwards flyUp;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, .6)
}

.effect-success {
  color: #00ff7f
}

.effect-warning {
  color: #fc0
}

.effect-danger {
  color: #ff4d4d
}

.effect-info {
  color: #00bfff
}

@keyframes shimmer {
  0% {
    background-position: -200% 0
  }

  100% {
    background-position: 200% 0
  }
}

.support-icon {
  width: 50px;
  height: auto; 
}

#mini-map-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border: 1px solid #555;
  background-color: #000
}

#minimap-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transform: translate(0, 0)
}

#mini-map {
  top: 0;
  left: 0
}

#map-bg {
  top: 0;
  left: 0;
  z-index: 1;
  width: 1920px;
  height: 1080px
}

#player-fixed {
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  pointer-events: none;
  z-index: 999
}

#loading-overlay,
#monster-overlay
 {
  top: 0;
  left: 0;
  position: absolute
}

#loading-overlay {
  flex-direction: column;
    align-items: center;
    justify-self: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(-120deg, #09121b 20%, #101f2e);
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: opacity 1s;
}

.loading-text {
  margin-top: 20px;
  color: #fff;
  font-size: 13px; 
  animation: 1s infinite alternate pulse
}

@keyframes pulse {
  from {
    opacity: .5
  }

  to {
    opacity: 1
  }
}

/* Facebook-style Loading Spinner for Mini Map */
#mini-map-wrapper .spinner {
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px; 
}

#mini-map-wrapper .spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #00c2ff;
    border-radius: 50%;
    animation: miniMapSpin 1s linear infinite;
}

#mini-map-wrapper .spinner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border: 2px solid rgba(0, 194, 255, 0.2);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: miniMapSpin 1.5s linear infinite reverse;
}

@keyframes miniMapSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#monster-overlay {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 10;
  background-color: red !important
}

.monster-container {
  position: absolute;
  will-change: transform
}

.monster-circle {
  width: 22px;
  height: 22px;
  margin-top: 0
}

.boss-circle {
  width: 25px;
  height: 25px;
  margin-top: -11px
}

#combat-delay-info {
  z-index: 999999;
  pointer-events: none
}
 

#syncing-status {
  margin: 0 auto;
  position: absolute;
  z-index: 99999999999999999;
  top: 28%;
  left: 50%;
  width: 200px;
  height: 70px;
  overflow: hidden;
  background-color: #16161669;
  border-radius: 5px;
  border: 1px solid gray;
  align-items: center;
  justify-content: center
}

#syncing-status img {
  width: 348px;
  height: auto;
  margin-top: 10px
}

#syncing-status div {
  position: absolute;
  top: 3px;
  left: 56px;
  z-index: 999999;
  font-size: 12px;
  color: #f3d07a !important
}

.boss-hp-bar,
.monster-hp-bar {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 4px;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 2px;
  overflow: hidden
}

.boss-hp-fill,
.monster-hp-fill {
  height: 100%;
  background-color: #79ffb5;
  width: 100%;
  transition: width .2s
}

/* REMOVED: #skills-animation styles - element đã bị xóa hẳn */

/* REMOVED: img.skills-animation styles - không còn cần thiết */

img#skill-frame {
  position: absolute;
  right: -23px;
  bottom: -19px;
  width: 114px;
  height: 107px;
  opacity: .7 !important
}

@keyframes damageFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1
  }

  100% {
    transform: translateY(-40px) scale(1.3);
    opacity: 0
  }
}

.monster-damage-popup {
  position: absolute;
  top: 10px;
  left: 40%;
  font-size: 26px;
  font-weight: 900;
  color: #ffa724;
  opacity: 0;
  z-index: 999;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  font-style: italic
}

.crit,
.dodge {
  font-style: italic;
  font-size: 26x;
  animation: 1s ease-out forwards critJump
}

.crit {
  color: #ffc5fc
}

.dodge {
  color: #a1a1a1
}

.heal-effect,
.mp-effect,
.sta-effect,
.xu-effect {
  font-weight: 700;
  animation: 1s ease-out floatUp;
  font-size: 13px;
  position: absolute;
  right: 0
}

@keyframes critJump {
  0% {
    transform: translateX(-50%) scale(1.5) translateY(0);
    opacity: 1
  }

  100% {
    transform: translateX(-50%) scale(1) translateY(-40px);
    opacity: 0
  }
}

.monster-damage-popup.animate {
  animation: .8s ease-out forwards damageJump
}

@keyframes damageJump {
  0% {
    transform: translateX(-50%) translateY(0) scale(1.3);
    opacity: 1
  }

  30% {
    transform: translateX(-50%) translateY(-10px) scale(1);
    opacity: 1
  }

  100% {
    transform: translateX(-50%) translateY(-40px) scale(.9);
    opacity: 0
  }
}

.heal-effect,
.mp-effect,
.sta-effect {
  top: -20px;
  color: #7af0ff
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0)
  }

  100% {
    opacity: 0;
    transform: translateY(-30px)
  }
}

#hp-cooldown-overlay,
#mp-cooldown-overlay,
#sta-cooldown-overlay {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 46px;
  height: 46px;
  background: rgba(240, 240, 240, .418);
  display: none;
  pointer-events: none;
  mask-image: conic-gradient(transparent 0deg, black 0deg);
  -webkit-mask-image: conic-gradient(transparent 0deg, black 0deg)
}

/* Cooldown overlays cho icons mới trên khinh-cong-box - CÙNG LOGIC */
#hp-cooldown-overlay-top,
#mp-cooldown-overlay-top,
#sta-cooldown-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: rgba(240, 240, 240, .418);
  display: none;
  pointer-events: none;
  mask-image: conic-gradient(transparent 0deg, black 0deg);
  -webkit-mask-image: conic-gradient(transparent 0deg, black 0deg);
  border-radius: 4px;
}

 
 

.xu-effect {
  top: -40px;
  color: #fff89d
}

.effect-message {
  margin-bottom: 6px;
  font-size: 13px;
  transition: .2s;
  font-weight: lighter !important
}

.monster-damage-popup.dodge {
  font-size: 40px;
  color: #ebff7c;
  animation: 1s ease-out forwards floatUp;
  z-index: 999;
  text-shadow: 0 0 5px #00ffc3
}

.drop-box {
  color: #fcffcc;
  justify-content: flex-start;
  margin-left: 59px
}

.puple {
  border: 2px solid #ff79fb
}

.boss-overlay-container {
  position: absolute
}

nav.navbar.navbar-expand-lg.fixed-top {
  z-index: 9999 !important
}

.equip-grid {
  flex-wrap: wrap;
  gap: 12px
}

.equip-card {
  width: 22%;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 6px;
  background: #1c1c1c;
  position: relative;
  text-align: center
}

#mapSelect,
.combat-log,
.equip-img,
.phu-luc-box.has-yq img {
  width: 100%
}

.equip-img {
  border-radius: 4px
}

.equip-slot:before {
  content: "";
  border: 1px solid #40534dab;
  position: absolute;
  width: 47px;
  height: 47px;
  text-align: center;
  top: 50%;
  left: 50%;
  border-radius: 3px
}

#main-stat-line {
  font-size: 14px !important
}

@media (max-width:426px) {
  .equip-slot:before {
    width: 35px;
    height: 35px
  }
}

.equip-slot .equip-plus-overlay,
.ruong-slot .equip-plus-overlay {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 10px;
  color: rgb(255 192 74);
  font-weight: 400;
  background-color: #2c3a36;
  width: 20px;
  height: 15px;
  border-radius: 3px;
  text-align: left !important;
  padding-left: 2px
}

.ruong-slot .equip-plus-overlay {
  right: -4px
}

.equip-plus {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;
  font-weight: 700;
  background: rgb(0 0 0 / 84%);
  padding: 2px 4px;
  border-radius: 4px;
  color: #ff95e3
}

.ruong-slot:hover {
  transform: scale(1.3);
  transition: .2s;
  position: relative;
  z-index: 9999
}

.upgrade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  opacity: .5
}

.effect-message.effect-mana {
  color: #2860ff;
  font-weight: lighter !important
}

.effect-message.effect-success {
  color: #00bf70;
  font-weight: lighter !important
}

#mapSelect-box {
  flex-direction: column;
  align-items: center;
  justify-content: center
}

#npc-healer {
  z-index: 9
}

.xp-map-option {
  display: inline-block;
  padding: 8px 12px;
  margin: 4px;
  background: #00000059;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid gray;
  font-size: 14px;
  flex: 0 0 calc(50% - 4px);  
  box-sizing: border-box;
  padding: 8px; 
  text-align: center; 
  cursor: pointer; 
}

.npc-overlay {
  position: absolute;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center
}

.npc-overlay img {
  width: 27px;
  height: 27px;
  display: block;
  position: relative
}

.npc-overlay div {
  color: #fff578;
  text-align: center;
  font-size: 12px;
  margin-top: 2px;
  text-shadow: #000 1px 1px 2px;
  min-width: 73px;
  padding: 0
}
 

div:where(.swal2-container).swal2-noanimation {
  background: rgb(0 0 0 / 67%) !important
}

.checkbox-columns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 20px;
  text-align: left
}

.my-checkbox-container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  font-size: 13px
}

.auto-label {
  display: flex;
  font-size: 15px;
  justify-content: space-between
}

.auto-label label {
  padding: 0 10px
}

 

 

.auto-attack h6,
.auto-regen h6 {
  color: #9aebff;
  text-align: left;
  background-color: #7d7d7d7d;
  padding: 5px;
  border-radius: 5px
}

div.custom-class-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; 
  justify-content: space-between;
}

#upgrade-target-list .btn {
  min-width: unset !important;
  padding: 0 !important
}

.phu-luc {
  justify-content: center
}

.phu-luc-box {
  border: 1px solid #999;
  background-color: #222;
  position: relative;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px;
  cursor: pointer
}

.phu-luc-box.locked {
  width: 45px;
  height: 45px;
  border: 1px dashed #999;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px
}

.locked i.fa.fa-lock {
  line-height: 40px;
  color: #4f4f4f
}

.item-detail-modal h4 {
  font-size: 22px !important;
  font-weight: 900
}

.combat-log,
.yq-detail-btn {
  font-size: 12px
}

#so-thanh {
  color: #fff46d
}

a#luyen-mat-tich-btn {
  font-size: 15px;
  text-decoration: underline;
  color: green
}

a#luyen-mat-tich-btn:hover {
  cursor: pointer;
  color: #ff0
}

.combat-log .drop-box {
  text-align: left !important;
  margin-left: 60px !important
}

.auto-label label {
  text-align: left;
  font-size: 12px
}

#quick-auto-btn,
.yq-card,
span.svg {
  text-align: center
}

.xp-info.col-6 {
  font-size: 13px
}

span.yq-btn {
  position: absolute;
  left: 0;
  font-size: 11px;
  background-color: #0b100f;
  padding: 5px;
  border-radius: 4px;
  text-shadow: none !important;
  color: #ecc65c;
  border: 1px solid gray;
  font-weight: 400
}

.chat-user,
.pinned-summary,
span.msg {
  font-weight: lighter
}

.yq-detail-btn {
  padding: 3px 2px !important;
  border-radius: 5px;
  margin-top: 10px
}

.yq-list-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 10px 4px;
  max-height: 70vh;
  overflow-y: auto
}

.yq-card {
  background: #2b495f4a;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
  padding: 10px 8px 12px;
  transition: transform .2s, box-shadow .2s
}

.yq-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 6px
}

.yq-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px
}

span.msg,
span.svg {
  display: inline-block
}

#map-flying-weapon {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block !important;;
  
}

#scroll-btn:hover,
#yq-btn,
#guild-scroll-btn,
#pr-scroll-btn {
  cursor: pointer
}

#yq-btn:hover {
  border: 1px solid gray;
  background-color: #313131
}

div#skills-from-yq {
  display: flex ;
  flex-direction: row-reverse; 
  z-index: 999;
}

#skills-from-yq img {
  border: 1px solid #fdff9d;
  border-radius: 5px
}

.skill-slot.blocked {
  position: relative;
  opacity: .8;
  filter: grayscale(40%);
  pointer-events: none
}

.skill-slot.blocked::after {
  content: "🚫";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, .45);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 4px
}

#skill-line-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease-out
}

#map-flying-weapon.flying {
  mix-blend-mode: color;
  transition: filter .1s;
  mix-blend-mode: color;
  filter: sepia(1) saturate(5) hue-rotate(200deg) brightness(1.2) drop-shadow(0 0 35px rgba(194, 248, 255, .9))
}

* {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none
}

.skill-slot {
  position: relative !important;
  margin: 4px 0 4px 5px !important
}

.skill-slot.cooling img {
  opacity: .35;
  filter: grayscale(80%)
}

.skill-slot .cd-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  pointer-events: none
}

body,
html {
  touch-action: manipulation
}

.skill-slot img {
  width: 33px !important
}

#quick-auto-btn {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  z-index: 15;
  opacity: .75;
  display: none;
  transition: .2s
}

#quick-auto-btn:hover {
  opacity: 1
}

#quick-auto-btn.active {
  background: #fffc9ee0;
  box-shadow: 0 0 8px #fff;
  color: #454545
}

.skill-slot.cooling,
.skill-slot.pending {
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(.8) brightness(.8)
}

.emojionearea .emojionearea-picker {
  background: #181f2e !important;
  position: absolute;
  -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, .32);
  -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, .32);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .32);
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid #656565 !important
}

.emojionearea .emojionearea-picker .emojionearea-filters {
  background: #262f39 !important
}

.emojionearea .emojionearea-picker .emojionearea-filters .emojionearea-filter.active {
  background: #fffd96 !important;
  margin: 5px;
  height: 74%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0 !important;
  border-radius: 5px
}

#chat-form .emojionearea,
.emojionearea.form-control,
#guild-chat-form .emojionearea,
#pr-chat-form .emojionearea {
      background-color: #000 !important;
    border: 1px solid transparent !important;
    text-align: left !important;
    height: 85px !important;
}

.emojionearea .emojionearea-button>.emojionearea-button-open,
.emojionearea .emojionearea-picker .emojionearea-wrapper:after {
  background-image: none !important;
  background-color: transparent;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px
}

.emojionearea .emojionearea-button>.emojionearea-button-open::before {
  content: "\1F642"
}

 .emojionearea.focused {
  border-color: #fdffc6 !important;
  -moz-box-shadow: unset !important;
  -webkit-box-shadow: unset !important;
  box-shadow: unset !important
}

.chat-user {
  margin-right: 4px;
  font-size: 13px;
  display: block;
  margin-top: 5px;
  font-weight: bold;
}

span.msg {
  margin: 7px 3px 16px;
  text-wrap: auto
}

.chat-line {
  max-width: 78%
}

.mymsg .reactions-bar,
.reactions-bar,
.reactions-guild-bar,
.reactions-pr-bar {
  position: absolute;
  bottom: 17px;
  right: 8px;
  z-index: 99 !important;
}

.chat-content {
      max-width: 100%;
    background: radial-gradient(87.89% 100% at 20% 0, #c3c3c3, #5d728b 70.39%, #395777) !important;
    padding: 0 3px 0 8px; 
    margin-bottom: 15px;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.chat-content .chat-time {
  margin-bottom: -10px;
  margin-top: 35px
}

.chat-line.mymsg {
  justify-content: end;
  margin-left: auto
}

.chat-line.mymsg .chat-content {
      background:#232323 !important; 
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 0 !important;
}
.chat-line span.msg {
  color: #0c2853;
  font-weight: 500
}
.chat-line.mymsg span.msg {
  color: #fff ;
  font-weight: 500
}

.rainbow-text-for-mod {
  background: linear-gradient(90deg, #2affe3, #ffff5e);
  background-size: 300% 100%;
  color: transparent;
  background-clip: text;
  animation: 3s ease-in-out infinite rainbowEffect;
  margin-top: 20px
}

#pr-chat-box .chat-text {
      margin-top: -16px !important;
}


#chat-box,
.chat-container,
.guild-chat-container,
#guild-chat-box ,
#pr-chat-box,
.pr-chat-container {
  scroll-behavior: smooth;
  position: relative
}
#chat-box { 
  overflow-x: hidden;
}
#scroll-to-bottom,
#guild-scroll-to-bottom,
#pr-scroll-to-bottom {
  transition: opacity .3s;
  position: absolute;
  top: 51%;
  right: 12px;
  z-index: 999 !important;
  width: 50px;
  height: 50px
}

#scroll-btn, #guild-scroll-btn,
#pr-scroll-btn {
  border: none;
  background: #ffffff56;
  border-radius: 50%;
  padding: 10px;
  width: 40px;
  height: 40px
}

#new-msg-count,
#pr-new-msg-count {
  position: absolute;
  top: -5px;
  right: 5px;
  background: red;
  color: #fff;
  font-size: 11px;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center
}

.reactions-bar,
.reactions-guild-bar,
.reactions-pr-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 24px
}

.reaction-icon {
  position: relative;
  cursor: pointer;
  height: 22px;
  display: flex;
  background-color: #6a6b8bfa;
  padding: 2px;
  border-radius: 10px;
  bottom: -9px
}

.add-reaction-btn>img,
.add-reaction-btn-guild>img,
.add-reaction-btn-pr>img {
  filter: grayscale(1);
  cursor: pointer
}

.add-reaction-btn.active>img,
.add-reaction-btn-guild.active>img,
.add-reaction-btn-pr.active>img {
  filter: none
}

.reaction-menu,
.reaction-menu-guild,
.reaction-menu-pr {
    display: none;
    position: absolute;
    bottom: 30px;
    background: #000000e6;
    border-radius: 20px;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    z-index: 99999;
    border: 1px solid #80808000;
    flex-direction: row;
    right: -80px;
    width: 225px;
    height: 43px;
    transition: all 0.2s ease;
}

.mymsg .reaction-menu ,
.mymsg .reaction-menu-guild,
.mymsg .reaction-menu-pr {
      right: -3px !important;
}

.reaction-menu img,
.reaction-menu-guild img,
.reaction-menu-pr img {
  width: 28px !important;
  height: 28px !important;
  margin: 2px 4px;
  cursor: pointer;
  filter: grayscale(0) !important
}

span.reaction-icon img {
  width: 18px;
  height: 18px
}

.reaction-icon .cnt {
  border-radius: 8px;
  font-size: 12px;
  padding: 0 3px;
  color: #000
}

.add-reaction-btn,
.add-reaction-btn.active,
.add-reaction-btn-guild,
.add-reaction-btn-guild.active,
.add-reaction-btn-pr,
.add-reaction-btn-pr.active {
  max-height: 25px;
  display: flex;
  margin-top: 19px
}

.reaction-more {
  font-size: 12px;
  color: #d7d7d7;
  background: #353535;
  border-radius: 10px;
  padding: 2px 6px;
  margin-left: 4px;
  user-select: none;
  margin-top: 18px
}

#chat-send,
.pinned-summary,
#guild-chat-send,
#pr-chat-send {
  display: flex;
  font-size: 14px
}

.right-box {
  position: absolute;
  right: 7px;
  top: 9px
}

.chat-line .msg-wrapper {
  max-height: 100px;
  overflow: hidden;
  position: relative;
  transition: max-height .3s;
  text-align: left !important;
  margin-bottom: 10px;
}

 
.chat-line .see-more-btn {
  position: absolute;
  bottom: 59px;
  right: 0;
  background: linear-gradient(to right, rgb(255 255 255 / 0%), #f9f9f980);
  cursor: pointer;
  padding: 2px 8px;
  font-size: 13px;
  z-index: 1;
  width: 130px;
  color: #000;
  text-align: right !important;
  font-weight: 700;
}
#tab-chat, 
#tab-guild-private-chat,
#tab-pr-chat {
  background: #202020 !important;
}
.pinned-summary-container,
#guild-pinned-summary-container,
#pr-pinned-summary-container {
      background: #0d111a;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 0 0 13px 0;
    display: flex ;
    justify-content: space-between;
    align-items: center; 
}
.bonus-box .quote-btn{
  display: none !important;
}
.bonus-box .pin-btn svg,
.bonus-box .quote-btn svg,
#guild-pin-btn svg,
.pr-pin-btn svg,
.bonus-box .yun-pin-btn svg {
  color: #3d3d3d;
  width: 18px;
  height: 18px;
  background-color: #b3b3b3;
  padding: 2px;
  border-radius: 50%;
  cursor: pointer
}
#pinned-summary-label,
#guild-pinned-summary-label,
#pr-pinned-summary-label {
      text-align: left;
    padding: 0 6px;
    font-size: 15px;
}
.pinned-summary {
  align-items: center;
  gap: 8px;
  color: #f3f3f3
}

#viewPinnedList,
#guild-viewPinnedList,
#pr-viewPinnedList {
      text-decoration: none;
    color: var(--main-color) !important;
    font-weight: 600;
    cursor: pointer;
}

.pinned-summary i {
  color: #fffea8
}

.pinned-msg-actions button,
.yun-pinned-msg-actions button,
.guild-pinned-msg-actions button,
.pr-pinned-msg-actions button {
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer
}

.bonus-box {
  position: absolute;
  bottom: 58px;
  left: 0;
  background: linear-gradient(to left, rgb(54 115 193 / 0%), #006df375);
  width: 100px;
  height: 24px;
  display: flex;
  align-items: center;
  z-index: 9;
  white-space: normal
}

span.svg {
  margin: 0 5px
}

.bonus-box .pin-btn svg,
.bonus-box .yun-pin-btn svg,
#guild-pin-btn svg,
.pr-pin-btn svg {
  transform: rotate(45deg)
}

.quote-btn span.svg:hover svg {
  color: #fdfb8d;
  cursor: pointer;
  transition: .3s
}

.pin-btn span.svg:hover svg {
  color: #fdfb8d;
  cursor: pointer;
  transform: rotate(120deg);
  transition: .3s
}

.swal-scrollable-content {
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
  padding-right: 6px
}

.pinned-msg-item b,
.yun-pinned-msg-item b,
.guild-pinned-msg-item b,
.pr-pinned-msg-item b {
  color: rgb(234 215 126);
  font-weight: lighter
}

.pinned-msg-item,
.yun-pinned-msg-item,
.guild-pinned-msg-item,
.pr-pinned-msg-item {
  font-size: 13px;
  border-bottom: 1px solid #4e4e4e;
  padding: 6px 0;
  position: relative
}

.pinned-msg-body,
.yun-pinned-msg-body,
.guild-pinned-msg-body,
.pr-pinned-msg-body {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px
}

.pinned-menu-btn {
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  background-color: #72fff926
}

.pinned-menu-btn:hover {
  background: rgba(255, 255, 255, .06)
}

.pinned-msg-actions,
.yun-pinned-msg-actions,
.guild-pinned-msg-actions,
.pr-pinned-msg-actions {
  margin-top: 6px;
  display: flex;
  gap: 6px
}

.add-reaction-btn.active img,
.add-reaction-btn-guild.active img,
.add-reaction-btn-pr.active img {
  width: 19px
}

.emojionearea.emojionearea-inline>.emojionearea-editor {
  text-align: left !important;
  color: #fff !important;
  font-weight: lighter;
  height: 72px !important;
  margin-right: 20px !important;
  padding: 6px 10px 8px 0 !important;
  overflow-y: auto !important;
  text-wrap: auto !important;
  margin-top: 5px;
  margin-bottom: 5px
}

.input-wrapper {
  position: relative;
  width: 100%
}

#chat-send,
#guild-chat-send,
#pr-chat-send {
      position: absolute;
    right: 8px;
    top: 72%;
    transform: translateY(-50%);
    background: #202020;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    cursor: pointer;
}

#chat-send:hover,
#guild-chat-send:hover,
#pr-chat-send:hover {
  filter: brightness(1.1)
}

.emojionearea .emojionearea-button {
  width: 30px !important;
  opacity: 1 !important
}

.emojionearea .emojionearea-picker.emojionearea-picker-position-top {
  margin-top: -264px !important;
  right: 0 !important
}

#quote-preview {
  background: #12121270;
  border-radius: 6px;
  padding: 6px 10px 6px 14px;
  position: relative;
  margin-bottom: 6px;
  font-size: 13px;
  border: 1px solid #272727
}

#quote-preview .quote-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1a73e8;
  border-radius: 4px 0 0 4px
}

#quote-preview .quote-cancel {
  position: absolute;
  top: 6px;
  right: 8px;
  cursor: pointer;
  color: #666
}

.quoted-box b {
  color: #000
}

.chat-text .quoted-box {
  background: #95959529;
  padding: 8px 10px;
  border-left: 4px solid #1d75ff;
  border-radius: 5px;
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.4;
  width: 99%;
  text-wrap: auto;
  text-align: left !important
}

@keyframes dmgPop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1)
  }

  60% {
    opacity: 1;
    transform: translate(-50%, -90%) scale(1.2)
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -120%) scale(1)
  }
}

#train-timer {
  color: #db0000;
  font-size: 16px;
  font-weight: lighter;
  padding: 8px 12px;
  z-index: 1000;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center
}

.chat-line:last-child .chat-content {
  margin-bottom: 5px !important
}
.chat-line:last-child .reactions-bar
.chat-line:last-child .reactions-guild-bar,
.chat-line:last-child .reactions-pr-bar {
  bottom: 18px !important
}
.chat-container,
.guild-chat-container,
.pr-chat-container {
  position: relative;
  overflow: hidden
}

@keyframes pulseRipple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: .8
  }

  100%,
  70% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0
  }
}

div#khinh-cong-box {
  margin-bottom: 20px;
  position: relative;
  display: flex;
}

div#khinh-cong-box img {
  border-radius: 4px;
  border: 1px solid #fdff9d;
  width: 100%;
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

#kc-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px dashed #ffdb69;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0
}

#kc-line {
  position: absolute;
  width: 80px;
  height: 3px;
  background: #69d6ff;
  transform-origin: 0 50%;
  transform: translate(0, -50%);
  pointer-events: none;
  opacity: 0
}

.kc-shadow {
  position: absolute;
  max-width: 36px;
  height: auto;
  pointer-events: none;
  opacity: .35;
  filter: blur(1px);
  transition: opacity .4s linear, transform .4s linear;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(.9)
}

#kc-box.cooling {
  opacity: .4;
  pointer-events: none
}
#kc-box{
  position: relative;
}
#kc-box .kc-cd-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px #000
}
 
 
.boss-respawn-timer{
  position:absolute;        
  top:38px; left:50%;
  transform:translateX(-50%);
  font-size:10px; font-weight:bold;
  color:#ff6666;           
  pointer-events:none;
}
.boss-overlay-container.dead .boss-circle,
.boss-overlay-container.dead img {
    filter: grayscale(1) brightness(0.4);
}
.avatar-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-frame {
  pointer-events: none;
}

.bonus-for-game-box {
  position: relative;
}


#joystick-container {
  margin-top: 20px;
  left: 20px;
  bottom: 20px;
  width: 120px;
  height: 120px;
  z-index: 1;
  touch-action: none;
}

#joystick-base {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: relative;
}

#joystick-stick {
  width: 40px;
  height: 40px;
  background: rgb(234 215 126);
  border-radius: 50%;
  position: absolute;
  left: 30px;
  top: 30px;
  pointer-events: none;
}
.bonus-for-game-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.x-dame-box {
  font-size: 12px;
 
  display: flex;
  flex-direction: row;
  padding: 5px;
  background-color: #313139;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  width: 100px;
  height: 33px;
}
.skills-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
}

.joystick-running {
  mix-blend-mode: screen !important;
}
.combo-popup {
  z-index: 9999;
  pointer-events: none;
  animation: comboPop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes comboPop {
  0%   { transform: scale(1.05) translateY(15px); opacity: 0; }
  40%  { transform: scale(0.9) translateY(-10px); opacity: 1; }
  100% { transform: scale(0.85)   translateY(-30px); opacity: 1; }
}
.guild-content form#formGuild .form-group {
  text-align: left !important;
}
.avatar-block .avatar-wrapper .avatar-frame{
  position: absolute;
  top: -15px !important;
  left: -15px !important;
  width: 70px !important;
  height: 70px !important; 
  background-size: cover !important;
  background-position: center center !important;
  z-index: 2 !important;
}

/* ===== PRIVATE CHAT USERS LIST ===== */
.pr-users-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: #2c3e50;
  border-right: 1px solid #34495e;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999999999999999999;
  overflow-y: auto;
}

.pr-users-container.show {
  transform: translateX(0);
}

.pr-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #34495e;
  border-bottom: 1px solid #4a5f7a;
}

.pr-users-header h6 {
  margin: 0;
  color: #ecf0f1;
  font-weight: 600;
  font-size: 14px;
}

.pr-close-list {
  background: none;
  border: none;
  color: #bdc3c7;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-close-list:hover {
  color: #e74c3c;
}

.pr-users-body {
  padding: 0;
}

.pr-no-messages {
  padding: 20px;
  text-align: center;
  color: #7f8c8d;
  font-size: 13px;
}

.pr-user-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid #34495e;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.pr-user-item:hover {
  background: #34495e;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pr-user-item:active {
  transform: translateX(0);
  background: #2c3e50;
}

.pr-user-item.active {
  background: #3498db;
  border-left: 3px solid #2980b9;
}

.pr-user-item.latest {
  background: #27ae60;
}

.pr-user-item.latest.active {
  background: #2980b9;
}

/* Improve clickability for notification list */
.pr-users-container {
  pointer-events: auto;
  z-index: 1000;
}

.pr-users-body {
  max-height: 400px;
  overflow-y: auto;
  pointer-events: auto;
}

/* Make sure notification box stays clickable */
#pr-users-list.show {
  pointer-events: auto !important;
  z-index: 1001 !important;
}

.pr-user-avatar {
  position: relative;
  margin-right: 12px;
}

.pr-user-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.pr-unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #e74c3c;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

.pr-user-info {
  flex: 1;
  min-width: 0;
}

.pr-user-name {
  font-weight: 600;
  color: #ecf0f1;
  font-size: 13px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pr-latest-indicator {
  color: #2ecc71;
  font-size: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pr-last-message {
  color: #bdc3c7;
  font-size: 12px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-message-time {
  color: #7f8c8d;
  font-size: 10px;
}

.pr-user-item.unread .pr-user-name {
  color: #f1c40f;
}

.pr-user-item.unread .pr-last-message {
  color: #ecf0f1;
  font-weight: 500;
}

/* Styles for read conversations (Facebook/Zalo style) */
.pr-user-item.read .pr-user-name {
  color: #bdc3c7;
  font-weight: 400;
}

.pr-user-item.read .pr-last-message {
  color: #7f8c8d;
  font-weight: 400;
}

/* New message indicator (green dot) */
.pr-new-indicator {
  color: #2ecc71;
  font-size: 12px;
  animation: pulse 2s infinite;
  margin-left: 5px;
}

/* Enhanced active state */
.pr-user-item.active.unread {
  background: #3498db;
  border-left: 4px solid #e74c3c;
}

.pr-user-item.active.read {
  background: #34495e;
  border-left: 3px solid #3498db;
}

/* Font weight for unread messages */
.pr-last-message.font-weight-bold {
  font-weight: 600 !important;
  color: #ecf0f1 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .pr-users-container {
    width: 100%;
    left: 0;
  }
  
  #user-container {
    position: relative;
  }
  
  #user-container::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 12px;
  }
}

/* Tab chat riêng layout adjustments */
#tab-pr-chat {
  position: relative;
  overflow: hidden;
}

#user-container {
  cursor: pointer;
  transition: background-color 0.2s;
}

#user-container:hover {
  background: rgba(52, 73, 94, 0.1);
}

/* ===================== NEW PRIVATE CHAT DESIGN ===================== */
.pr-chat-wrapper {
  border-radius: 8px;
  overflow: hidden;
  background: #000; 
}

.pr-chat-list-panel {
  border-right: 1px solid #444;
}

.pr-chat-list-header { 
  background: #000;
}

.pr-chat-list-container {
  background: #202020;
}

.pr-chat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
  color: white;
}

.pr-chat-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pr-chat-item.active {
  background: rgba(0, 123, 255, 0.3);
  border-left: 3px solid #007bff;
}

.pr-chat-item.unread {
  background: rgba(40, 167, 69, 0.1);
}

.pr-chat-item-avatar {
  position: relative;
  margin-right: 12px;
}

.pr-chat-item-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.pr-chat-item-unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

.pr-chat-item-content {
  flex: 1;
  min-width: 0;
}

.pr-chat-item-name {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  color: white;
  display: flex;
  align-items: center;
}

.pr-chat-item-name.unread {
  color: #28a745;
}

.pr-chat-item-preview {
  font-size: 13px;
  color: #aaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-chat-item-preview.unread {
  font-weight: bold;
  color: #ccc;
}

.pr-chat-item-time {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.pr-chat-item-delete {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(220, 53, 69, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s;
  font-size: 12px;
  z-index: 10;
}

/* Trên desktop: hiện khi hover */
@media (min-width: 769px) {
  .pr-chat-item-delete {
    opacity: 0;
  }
  
  .pr-chat-item:hover .pr-chat-item-delete {
    opacity: 1;
  }
}

/* Trên mobile: hiện luôn nhưng mờ hơn */
@media (max-width: 1639px) {
  .pr-chat-item-delete {
    opacity: 0.6;
  }
}

.pr-chat-item-delete:hover {
  background: #dc3545;
  transform: translateY(-50%) scale(1.1);
}

.pr-chat-item {
  position: relative;
}

.pr-new-indicator {
  color: #28a745;
  font-size: 8px;
  margin-left: 5px;
}

.pr-chat-content-header {
  border-bottom: 1px solid #444;
  background: #0d111a;
}

.pr-back-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.pr-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pr-current-user-avatar {
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.pr-welcome-message {
  background: rgba(20, 20, 30, 0.5);
}

.pr-chat-input-container { 
  background: linear-gradient(45deg, #24293f, #24293f);
}

/* No conversations message */
.pr-no-conversations {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.pr-no-conversations i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.3;
}

/* Player icon smooth transition - tránh flash khi đổi GIF */
#player-icon {
  transition: none !important; /* Tắt transition để tránh lag */
  image-rendering: -webkit-optimize-contrast; /* Optimize rendering */
  image-rendering: crisp-edges; /* Better pixel rendering */
  will-change: transform; /* GPU acceleration */
  backface-visibility: hidden; /* Prevent flicker */
  transform: translateZ(0); /* Force hardware acceleration */
  object-fit: contain; /* Maintain aspect ratio */
  max-width: none !important; /* Override any max-width */
  flex-shrink: 0; /* Prevent shrinking */
  
  /* **FIXED DIMENSIONS** - Ngăn resize khi load GIF mới */
  min-width: 29px; /* Minimum size */
  min-height: 46px; /* Minimum height tương ứng */
  display: block !important;
  
  /* **SMOOTH LOADING** - Smoother image replacement */
  opacity: 1;
  animation: none !important; /* Disable any animations */
}

/* Preload cho player shadows */
.player-shadow {
  transition: opacity 0.1s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  object-fit: contain;
}