html, body {
  overflow-x: hidden;
}
body {
  font-family: Arial, sans-serif;
  /*background: #242526;*/
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-width: 100vw;
  background-color: #fff; /* Màu nền dự phòng */
  /*background-image: url('https://sf-static.upanhlaylink.com/img/image_20250724fb79c37ea1e036fb9c09f60151845e10.jpg');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  max-width: 500px;
  margin: 30px auto;
  padding: 10px;
}

/* ✅ Logo giữa */
.logo-box {
  text-align: center;
  margin-bottom: 10px;
}

.logo {
  color: red;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.game-title {
  color: #000000;
  font-size: 24px;
  font-weight: 600;
  margin-top: 5px;
}

/* Nếu bạn dùng ảnh logo */
.logo-img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

/* ✅ Căn trái dòng "Chọn gói nạp:" */
.title-left {
  color: #000000;
  font-size: 20px;
  text-align: left;
  margin-bottom: 15px;
  margin-left: 10px;
}

.packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  justify-items: center;
}

.package {
  width: 200px;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  background-color: #fff;
}

.package span {
  font-size: 14px;
  font-weight: normal;
}

.package:hover {
  background-color: #f1f1f1;
}

.package.active {
  border: 2px solid red;
  background-color: #ffe6e6;
}

.selected {
  color: red;
  margin: 20px 0;
  font-weight: 600;
}

.pay-button {
  background: #f44336;
  color: white;
  padding: 12px 30px;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* ✅ Popup Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  margin: 150px auto;
  padding: 20px 30px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 14px;
}

.modal-content button {
  background: red;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 5px;
}
.loader-container {
  display: none;
  position: fixed;
  z-index: 200;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  justify-content: center;
  align-items: center;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid red;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


input[type=number] {
  -moz-appearance: textfield;
}
.underline {
  text-decoration: underline;
}
