/* Vé quay + dấu cộng */
#veQuayContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  margin-top: 10px;
  font-weight: bold;
  color: #e91e63;
}

#veQuayContainer img {
  width: 24px;
  height: 24px;
}

.plus-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #ff9800;
  cursor: pointer;
  transition: transform 0.2s;
}

.plus-btn:hover {
  transform: scale(1.2);
}

/* Modal Đổi vé */
#exchangeModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

#exchangeModal h3 {
  color: #e91e63;
  margin-bottom: 8px;
}

#exchangeModal p {
  color: #555;
  font-size: 15px;
  margin-bottom: 12px;
}

#exchangeModal button {
  padding: 8px 16px;
  background-color: #ff69b4;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#exchangeModal button:hover {
  background-color: #e91e63;
}

#exchangeMessage {
  margin-top: 10px;
  font-size: 15px;
}

#closeExchange {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #e91e63;
}
/* Ẩn toàn bộ khu vực incense nếu ở trang gacha */
.incense-game {
  display: none !important;
}

#incenseButton,
#clickCount,
#incense-screen {
  display: none !important;
}


.blessing-counter {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #e91e63;
}




/* thanh vé và điểm*/
.fireworks-burst {
  position: fixed;
  font-size: 48px;
  animation: burstFirework 1s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes burstFirework {
  0% {
    opacity: 1;
    transform: scale(0.5) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(3) rotate(720deg);
  }
}


/* Thẻ hồ sơ chính */
.profile-card {
  background-color: #fff;
  border: 4px dashed #f48fb1;
  border-radius: 20px;
  padding: 30px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: fadeInProfile 0.4s ease-out;
}

/* Avatar */
.profile-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffc0cb;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 16px;
}

/* Tên */
.profile-card h2 {
  font-size: 26px;
  color: #e91e63;
  margin-bottom: 12px;
}

/* Dòng thông tin */
.profile-card p {
  font-size: 18px;
  margin: 10px 0;
  color: #444;
}

.profile-card span {
  font-weight: bold;
  color: #c2185b;
}

/* Nút quay lại */
.profile-back-button {
  margin-top: 20px;
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  background-color: #ff69b4;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
  transition: transform 0.2s ease-in-out;
}

.profile-back-button:hover {
  transform: scale(1.05);
  background-color: #e91e63;
}

/* Animation xuất hiện */
@keyframes fadeInProfile {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}



/* avt */

.avatar-section {
  position: relative;
  display: inline-block;
  text-align: center;
}

.avatar-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

#avatarMenuButton {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff;
  border: none;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.avatar-menu {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.avatar-menu.hidden {
  display: none;
}


.loading-avatar {
  filter: blur(2px);
  opacity: 0.6;
  transition: filter .2s, opacity .2s;
}







.friend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #42a5f5, #478ed1);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.friend-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.friend-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Trạng thái các kiểu */
.friend-none {
  background: linear-gradient(135deg, #42a5f5, #478ed1);
}

.friend-sent {
  background: linear-gradient(135deg, #ffb74d, #fb8c00);
}

.friend-received {
  background: linear-gradient(135deg, #66bb6a, #43a047);
}

.friend-friends {
  background: linear-gradient(135deg, #9e9e9e, #757575);
}
