body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
}

/* Header */
.header {
  background-color: #2e5e30;
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 30px;
}
nav {
  flex-grow: 1;
  text-align: center;
}
nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  font-size: 14px;
}

/* Sub-header */
.sub-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 30px;
  gap: 150px;
}
.sub-header .left, .sub-header .right {
  display: flex;
  align-items: center;
}
.sub-header img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}
.sub-header span {
  font-size: 16px;
  font-weight: bold;
  color: #2e5e30;
}

/* Step bar */
.step-bar-container {
  text-align: center;
  margin: 20px 0;
}
.step-bar {
  display: flex;
  justify-content: center;
  gap: 50px;
}
.step-bar span {
  font-weight: bold;
  color: gray;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
}
.step-bar .active {
  color: #2e5e30;
  border-color: #2e5e30;
}

/* Content */
.content {
  text-align: center;
  margin: 30px 0;
}
input[type="text"] {
  padding: 10px;
  width: 300px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  padding: 10px 30px;
  background: #2e5e30;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

/* Gói nạp */
.choose-package {
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-item {
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
}
.package-item:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.package-item img {
  width: 20px;
  margin-right: 8px;
}

/* Thông tin nhân vật */
.user-info {
  border: 2px solid #2e5e30;
  padding: 10px 15px;
  width: 270px;
  margin: 0 auto 30px;
  border-radius: 10px;
  text-align: left;
  position: relative;
}
.user-info p {
  margin: 10px 0 0 0;
  font-size: 15px;
  font-weight: bold;
  color: #333;
}
.user-info-title {
  position: absolute;
  top: -15px;
  left: 15px;
  background: #fff;
  padding: 0 8px;
  font-weight: bold;
  color: #2e5e30;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-info-title img {
  width: 18px;
  height: 18px;
}

/* Modal Popup */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 350px;
  position: relative;
}
.modal-content img {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
}
.confirm-button {
  padding: 10px 20px;
  background-color: #2e5e30;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

/* Phương thức thanh toán */
.payment-method {
  width: 120px;
  height: 60px;
  border: 2px solid #2e5e30;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: #2e5e30;
  transition: all 0.3s ease;
    flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.payment-method {
  width: 120px;
  height: 60px;
  border: 2px solid #2e5e30;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: #2e5e30;
  transition: all 0.3s ease; /* mượt khi hover */
}

.payment-method:hover {
  background-color: #FFFFFF; /* nền xanh nhạt */
  transform: translateY(-5px); /* nổi lên */
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2); /* đổ bóng */
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
  position: relative;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2e5e30;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.popup-message p {
  font-weight: bold;
  color: #2e5e30;
}

.popup-message button {
  margin-top: 15px;
  padding: 8px 18px;
  background: #2e5e30;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.step-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.step-loader img {
  width: 150px;
  height: auto;
  animation: zoomInOut 1.2s ease forwards;
}

@keyframes zoomInOut {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
#gift-code {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
}
