/* ===== APP CONTENT WIDTH CONTROLLER ===== */
.tuvdt-app-container {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
}

#profileModal .modal-dialog {
  max-width: 900px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  /* tránh dịch sai do transform */
}


/* ===== START menu.css ===== */
body {
  background: #1b1e24;
}


.container {
  width: 100%;
  padding-right: 10px !important;
  padding-left: 10px !important;
  margin-right: auto;
  margin-left: auto;
}

.form-inline {
  display: inline-block;
}

.navbar-header.col {
  padding: 0 !important;
}

.navbar {
  background: #fff;
  padding-left: 16px;
  padding-right: 16px;
  border-bottom: 1px solid #d6d6d6;
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}

.nav-link img {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: -8px 0;
  float: left;
  margin-right: 10px;
}

.navbar .navbar-brand {
  color: #555;
  padding-left: 0;
  padding-right: 50px;
  font-family: 'Merienda One', sans-serif;
}

.navbar .navbar-brand i {
  font-size: 20px;
  margin-right: 5px;
}

.search-box {
  position: relative;
}

.search-box input {
  box-shadow: none;
  padding-right: 35px;
  border-radius: 3px !important;
}

.search-box .input-group-addon {
  min-width: 35px;
  border: none;
  background: transparent;
  position: absolute;
  right: 0;
  z-index: 9;
  padding: 7px;
  height: 100%;
}

.search-box i {
  color: #a0a5b1;
  font-size: 19px;
}

.navbar .nav-item i {
  font-size: 18px;
}

.navbar .dropdown-item i {
  font-size: 16px;
  min-width: 22px;
}

.navbar .nav-item.open>a {
  background: none !important;
}

.navbar .dropdown-menu {
  border-radius: 5px;
  border-color: #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.navbar .dropdown-menu a {
  color: #777;
  padding: 8px 20px;
  line-height: normal;
}

.navbar .dropdown-menu a:hover,
.navbar .dropdown-menu a:active {
  color: #333;
}

.navbar .dropdown-item .material-icons {
  font-size: 21px;
  line-height: 16px;
  vertical-align: middle;
  margin-top: -2px;
}

.navbar .badge {
  color: #fff;
  background: #f39c12;
  font-size: 11px;
  border-radius: 20px;
  position: absolute;
  min-width: 10px;
  padding: 4px 6px 0;
  min-height: 18px;
  top: 5px;
}

.navbar a.notifications,
.navbar a.messages {
  position: relative;
  margin-right: 10px;
}

.navbar a.messages {
  margin-right: 20px;
}

.navbar a.notifications .badge {
  margin-left: -8px;
}

.navbar a.messages .badge {
  margin-left: -4px;
}

.navbar .active a,
.navbar .active a:hover,
.navbar .active a:focus {
  background: transparent !important;
}

@media (min-width: 1200px) {
  .form-inline .input-group {
    width: 300px;
    margin-left: 30px;
  }
}

@media (max-width: 1199px) {
  .form-inline {
    display: block;
    margin-bottom: 10px;
  }

  .input-group {
    width: 100%;
  }
}

.dropdown-menu {
  display: none;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown-toggle:hover+.dropdown-menu {
  display: block;
  opacity: 1;
  transform: scaleY(1);
}



/* Underline Effect*/
.nav-item {
  position: relative;
}

.navbar-collapse ul li a.nav-link:before {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  content: '';
  opacity: 0;
  -ms-transition: opacity 0.3s, -webkit-transform 0.3s;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
  -ms-transform: translateY(10px);
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
}

.navbar-collapse ul li:hover a.nav-link:before {
  opacity: 1;
  -ms-transform: translateY(0px);
  -webkit-transform: translateY(0px);
  transform: translateY(0px);
  bottom: 0px;
  background: #6f46c6;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #ffffff;
  text-decoration: none;
  background-color: #ad98db;
}

.dropdown-menu {
  border: 0px;
}

.dropdown-item {
  cursor: pointer;
}

/* ===== END menu.css ===== */

/* ===== START style.css ===== */
a {
  -webkit-transition: color .3s ease, background-color .3s ease;
  -o-transition: color .3s ease, background-color .3s ease;
  transition: color .3s ease, background-color .3s ease;
}


a,
a:hover {
  text-decoration: none !important;
}

.content-text p {
  line-height: 1;
}

.content {
  height: 100vh;
}

#aboutModalCenter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 7px;
  overflow: hidden;
  background-color: transparent;
  font-family: "Poppins", sans-serif;
  /* max-width: 600px; */
}


#aboutModalCenter .logo a img {
  width: 30px;
}

#aboutModalCenter .modal-content {
  background-color: transparent;
  border: none;
  border-radius: 7px;
}

#aboutModalCenter .modal-content .modal-body {
  border-radius: 7px;
  overflow: hidden;
  background-color: #fff;
  padding-left: 0px;
  padding-right: 0px;
  -webkit-box-shadow: 0 10px 50px -10px rgba(0, 0, 0, 0.9);
  box-shadow: 0 10px 50px -10px rgba(0, 0, 0, 0.9);
}

#aboutModalCenter .modal-content .modal-body h2 {
  font-size: 18px;
}

#aboutModalCenter .modal-content .modal-body p {
  color: #777;
  font-size: 14px;
}

#aboutModalCenter .modal-content .modal-body h3 {
  font-weight: 900;
  color: #000;
  font-size: 22px;
}

#aboutModalCenter .modal-content .modal-body .close-btn {
  color: #000;
}

#aboutModalCenter .modal-content .modal-body .promo-img {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 50%;
  flex: 0 0 50%;
}

#aboutModalCenter .cancel {
  color: gray;
  font-size: 14px;
}

#aboutModalCenter .btn-primary {
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.form-control {
  border: transparent;
  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  border: none;
}

.form-control:active,
.form-control:focus,
.form-control:hover {
  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.btn {
  border-radius: 4px;
  border: none;
}

.btn:active,
.btn:focus {
  outline: none;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.custom-select {
  border: none;
  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.custom-select:active,
.custom-select:focus,
.custom-select:hover {
  -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.logo img {
  width: 70px;
}

.custom-note {
  color: #999;
}

.custom-note a {
  color: #555;
  font-weight: 900 !important;
}

.mb-4.title {
  font-family: "Tahoma", sans-serif;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 2.0em;
  line-height: 28px;
  padding-top: 5px;
  /* padding-bottom: 1px !important; */
  color: #5543ca;
  background: #5543ca;
  background: -moz-linear-gradient(left, #f4524d 0%, #5543ca 100%) !important;
  background: -webkit-linear-gradient(left, #f4524d 0%, #5543ca 100%) !important;
  background: linear-gradient(to right, #f4524d 0%, #5543ca 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
}

input[type="file"] {
  color: transparent;
  display: none;
}

.custom-file-upload {
  display: inline-block;
  padding: 1px 10px;
  /* Điều chỉnh padding để tạo kích thước của "button" */
  background-color: #3498db;
  /* Màu nền */
  color: #fff;
  /* Màu chữ */
  border: 1px solid #3498db;
  /* Đường viền */
  border-radius: 5px;
  /* Bo góc */
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.custom-file-upload:hover {
  background-color: #2980b9;
  /* Màu nền khi di chuột qua */
}

.custom-button {
  background-color: #007BFF;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.custom-button:hover {
  background-color: #608dbe;
}

.get-in-touch2 {
  overflow: hidden;
}

.thongtinluachon.row {
  max-height: 1000px;
  /* Set a maximum height for your content */
  transition: max-height 0.3s ease-in-out;
  /* Adjust the transition duration */
}

.get-in-touch3 {
  overflow: hidden;
}

.thongtinlicham.row {
  max-height: 100px;
  /* Set a maximum height for your content */
  transition: max-height 0.3s ease-in-out;
  /* Adjust the transition duration */
}

.title {
  cursor: pointer;
}

/*//////////////////////////////////////////*/
#part1 {
  width: 100%;
  height: 200px;
}

#part2 {
  width: 100%;
  height: 50px;
  background-color: #292929;
  position: relative;
  top: -15px;
}

#companyinfo {
  width: 40%;
  height: 200px;
  position: relative;
  left: 5%;
  top: 10px;
}

#sitelink {
  font-size: 22px;
  color: #EE6363;
  font-weight: bold;
}

#sitelink:hover {
  color: #CD2990;
}

#title {
  color: gray;
  position: relative;
  top: 0px;
  font-size: 14px;
  /* font-style: italic; */
  font-weight: 600;
}

.title1 {
  color: gray;
  position: relative;
  top: 0px;
  font-size: 14px;
  /* font-style: italic; */
  font-weight: 600;
}

#detail {
  color: #aaa7a7;
  font-size: 16px;
}

#explore {
  width: 20%;
  height: 200px;
  position: relative;
  top: -180px;
  left: 50%;
}

#txt1,
#txt2,
#txt3,
#txt4,
#txt5 {
  color: white;
  font-size: 20px;
}

.link {
  display: flex;
  width: 90px;
  height: 40px;
  color: #aaa7a7;
  background-color: transparent;
  border-top: 2px solid white;
  position: relative;
  top: -10px;
}

.link:hover,
.link1:hover {
  color: #CD2990;
}

#visit {
  width: 30%;
  height: 200px;
  position: relative;
  top: -380px;
  left: 75%;
}

.text {
  color: #aaa7a7;
  font-size: 14px;
  margin-top: -10px;
}

#legal {
  width: 14%;
  height: 200px;
  position: relative;
  top: -800px;
  left: 59.5%;
}

.link1 {
  display: flex;
  width: 150px;
  height: 40px;
  color: #aaa7a7;
  background-color: transparent;
  border-top: 2px solid white;
  position: relative;
  top: -10px;
  margin-top: 7px;
}

#subscribe {
  position: relative;
  top: -1080px;
  left: 78%;
  width: 14%;
  height: 200px;
}

#email {
  color: white;
  position: relative;
  top: -20px;
}


#txt5 {
  position: relative;
  top: 0px;
}

.social {
  position: relative;
  top: -5px;
  margin-right: 10px;
  color: white;
  cursor: pointer;
}

.fa-facebook-square:hover {
  color: #3B579D;
}

.fa-linkedin:hover {
  color: #007BB6;
}

.fa-twitter-square:hover {
  color: #2CAAE1;
}

#txt6 {
  color: white;
  position: relative;
  top: 13px;
  left: 8%;
  width: 90%;
  color: #aaa7a7;
  text-align: right;
}

.material-icons {
  position: relative;
  top: 3px;
}

@media only screen and (max-width:1000px) {

  #txt5,
  #txt4 {
    font-size: 17px;
  }

}

@media only screen and (max-width:850px) {

  #txt1,
  #txt2,
  #txt3,
  #txt4,
  #txt5 {
    font-size: 15px;
  }

  #detail {
    font-size: 13px;
  }

  .popup {
    width: 200px;
  }

  #companyinfo {
    width: 60%;
  }

  #explore {
    width: 30%;
    left: 70%;
  }

  #visit {
    display: none;
  }
}

/* /////////////////////////////////////////////////////////// */
#horoscopeListContainer::-webkit-scrollbar {
  width: 8px;
}

#horoscopeListContainer::-webkit-scrollbar-thumb {
  background-color: rgba(0, 123, 255, 0.4);
  border-radius: 4px;
}

#horoscopeListContainer:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 123, 255, 0.6);
}

/* //////////////////////////////////////////////////////////////// */
/* Giảm padding trên mobile để 4 góc không bị bó */
@media (max-width: 576px) {
  #profileModal .modal-body {
    padding: 1rem !important;
  }

  /* Tabs không bị ép dồn */
  #profileTabs .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
  }

  /* Card info trong tab info: stack đẹp hơn */
  .info-item {
    padding: 1rem !important;
  }

  /* Danh sách lá số không tràn */
  #horoscopeListContainer {
    max-height: 60vh !important;
  }
}

@media (max-width: 576px) {
  #profileModal .modal-header {
    padding: 0.8rem 1rem !important;
  }
}

@media (max-width: 576px) {
  #horoscopeListContainer {
    max-height: 70vh !important;
  }
}

#horoscopeModal .modal-body {
  padding-bottom: 0.5rem !important;
}

#horoscopeModal .modal-footer {
  padding-top: 0.5rem !important;
}

/* chuẩn hóa nút action (Sửa/Lưu) */
#horoscopeModal #btn-hs-action {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* giữ cho các nút giống nhau khi đổi trạng thái */
#horoscopeModal .btn {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.97rem;
}

body,
html {
  transition: none !important;
  background-attachment: scroll !important;
}

#horoscopeModal .modal-dialog {
  transform: translateZ(0);
  will-change: opacity, transform;
}

.modal-backdrop.show {
  opacity: 0.4 !important;
  /* giảm repaint */
  transition: opacity .2s linear !important;
}

#horoscopeModal {
  backface-visibility: hidden;
  transform: translateZ(0);
  /* buộc GPU render → hết flash */
}

.modal-backdrop {
  will-change: opacity;
  backface-visibility: hidden;
}

.input-like {
  border: 1px solid #ced4da;
  padding: 6px 10px;
  border-radius: 4px;
  background: #f8f9fa;
  min-height: 38px;
  display: flex;
  align-items: center;
  color: #333;
}

.no-pb {
  padding-bottom: 0 !important;
}

/* ///////////////////////////////////////////////// */
/* ================= FOOTER — NO BACKGROUND ================== */

.tuvdt-footer {
  background: transparent !important;
  width: 100%;
  padding-bottom: 20px;
}

.tuvdt-footer h5,
.tuvdt-footer h6 {
  color: #444;
}

.tuvdt-footer a {
  color: #666;
}

.tuvdt-footer a:hover {
  color: #CD2990;
}

.footer-bottom {
  border-top: 1px solid #ccc;
  background: transparent !important;
}

/* Mobile */
@media (max-width: 576px) {
  .tuvdt-footer {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ///////////////////////////////////////////////// */
.profile-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 15px;
}

.vip-glow {
  animation: shine 1.8s infinite alternate;
  text-shadow: 0 0 5px gold, 0 0 10px orange;
}

@keyframes shine {
  from {
    filter: drop-shadow(0 0 2px gold);
  }

  to {
    filter: drop-shadow(0 0 6px orange);
  }
}

/* Tabs */
.nav-tabs {
  border-bottom: 2px solid #e0e0e0;
  background: #f9fafc;
  border-radius: 16px 16px 0 0;
  overflow-x: auto;
  white-space: nowrap;
  flex-wrap: nowrap !important;
  scrollbar-width: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tabs .nav-link {
  color: #555;
  font-weight: 500;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 10px 22px;
  margin: 0 5px;
  background: #f8f9fa;
  transition: all 0.25s ease;
}

.nav-tabs .nav-link:hover {
  color: #007bff;
  background: #eef6ff;
  transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #007bff, #00a2ff);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.card {
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.tab-content {
  border-top: 3px solid #007bff20;
  border-radius: 0 0 20px 20px;
  padding: 25px;
  background: #fff;
}

/* --- Thông tin cá nhân --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 10px;
  }
}

.info-item {
  background: #f9fbff;
  border: 1px solid #e1ecf8;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.25s ease;
}

.info-item:hover {
  background: #eef6ff;
  transform: translateY(-2px);
}

.info-label {
  font-weight: 600;
  color: #007bff;
  font-size: 0.9rem;
}

.info-value {
  color: #333;
  font-size: 0.95rem;
  margin-top: 4px;
}

.info-value input,
.info-value select {
  width: 100%;
  border: none;
  border-bottom: 2px solid #007bff;
  background: transparent;
  outline: none;
  padding: 2px 0;
  font-size: 0.95rem;
}

/* --- Thiết kế hạng tài khoản đẹp --- */
/* Hiệu ứng breathing nhẹ */
@keyframes tierBreath {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Base card giữ nguyên nhưng cho animation */
.tier-card {
  border-radius: 12px;
  padding: 6px 0;
  text-align: center;
  color: #fff;
  font-weight: 600;
  width: 70%;
  box-shadow: 0 3px 1px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;

  /* hiệu ứng mềm, rất nhẹ */
  animation: tierBreath 4s ease-in-out infinite;
}

/* Shine effect chạy ngang */
/* ===== Hiệu ứng nâng cấp PREMIUM cho Tier Card ===== */

/* Breathing + Pulse */
@keyframes tierBreath {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

/* Gradient chuyển động */
@keyframes tierGradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Nâng cấp base */
.tier-card {
  border-radius: 16px;
  padding: 8px 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  width: 75%;
  position: relative;
  overflow: hidden;
  animation: tierBreath 4s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
}

/* Shine mạnh hơn */
.tier-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 130%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.45),
      transparent);
  transform: skewX(-20deg);
  animation: tierShine 4s infinite;
}

@keyframes tierShine {
  0% {
    left: -130%;
  }

  70% {
    left: -130%;
  }

  100% {
    left: 130%;
  }
}

/* Viền sáng động */
.tier-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.4));
  mask: linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Màu từng tier + gradient động */

.tier-fre {
  background: linear-gradient(135deg, #88e39b, #42c76a, #27c173);
  background-size: 200% 200%;
  animation: tierGradientMove 6s ease infinite;
  box-shadow: 0 0 18px #7be8a5aa;
}

.tier-std {
  background: linear-gradient(135deg, #6ec0ff, #3a87f5, #215efd);
  background-size: 200% 200%;
  animation: tierGradientMove 6s ease infinite;
  box-shadow: 0 0 20px #4da3ffc0;
}

/* ===== Sparkle effect for VIP ===== */
.tier-vip {
  background: linear-gradient(135deg, #ffd97a, #fcb045, #ff9f20);
  background-size: 200% 200%;
  animation: tierGradientMove 6s ease infinite;
  box-shadow: 0 0 25px rgba(255, 200, 0, 1);
  position: relative;
  overflow: hidden;
}

/* Tạo nhiều chấm sáng nhỏ bay ngẫu nhiên */
.tier-vip::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;

  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 70% 40%, rgba(255, 255, 200, 0.8), transparent),
    radial-gradient(2px 2px at 40% 80%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.8px 1.8px at 80% 20%, rgba(255, 255, 200, 0.8), transparent),
    radial-gradient(2px 2px at 60% 60%, rgba(255, 255, 255, 0.9), transparent);

  animation: sparkleMove 6s infinite linear;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes sparkleMove {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }

  50% {
    transform: translate(8px, -6px) rotate(180deg);
  }

  100% {
    transform: translate(0px, 0px) rotate(360deg);
  }
}


/* ///////////////////////////////////////////////////////////// */
.payment-btn img {
  height: 22px;
  background: white;
  border-radius: 4px;
  padding: 2px;
  transition: transform 0.2s ease;
}

.payment-btn:hover img {
  transform: scale(1.1);
}



.btn-dark.admin-zone {
  right: 50px;
  top: 0;
  transform: translateY(-10%);
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.btn-dark.admin-zone:hover {
  background: linear-gradient(135deg, #0f172a, #000);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Tự động xuống dòng hợp lý trên mobile */
@media (max-width: 768px) {
  .btn-dark.admin-zone {
    position: static !important;
    display: block;
    width: 100%;
    margin-top: 10px;
  }
}

.admin-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.center-buttons {
  flex: 0 0 66%;
  /* chiếm 2/3 chiều rộng */
  display: flex;
  justify-content: center;
  gap: 10px;
}

.admin-zone {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.admin-zone:hover {
  background: linear-gradient(135deg, #0f172a, #000);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.me-5 {
  margin-right: 50px !important;
  /* cách phải 50px */
}

/* Giao diện mobile */
@media (max-width: 768px) {
  .admin-btn-row {
    flex-direction: column;
    gap: 10px;
  }

  .center-buttons {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
  }

  .admin-zone {
    width: 100%;
    margin-right: 0 !important;
  }
}

.toast {
  animation: fadeSlideIn 0.4s ease;
  min-width: 280px;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Căn nút [View] ===== */
#horoscopeList td.text-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: 20px;
}

/* Căn 2 nút Upgrade trong Quản lý ví */
.wallet-upgrade-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.tier-card {
  /* reuse your existing styles or the ones below */
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.tier-fre {
  background: linear-gradient(90deg, #3fd79f, #27c99a);
  color: #fff;
}

.tier-std {
  background: #ffcc00;
  color: #003;
}

.tier-vip {
  background: #0b8a5f;
  color: #fff;
}

/* Make sure cards do not force extra height on the row */
.card.h-100 {
  height: 100%;
}

@media(max-width:576px) {
  .wallet-upgrade-btn {
    height: 40px !important;
    font-size: 14px !important;
  }

  .upgrade-group.w-100 .wallet-upgrade-btn.w-75 {
    width: 85% !important;
  }
}

/* Đồng bộ kích thước nút thanh toán */
/* --- FIX HẲN LỆCH NÚT --- */
.wallet-upgrade-btn,
.payment-btn {
  height: 44px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap;
  border-radius: 8px;
  width: 100%;
  /* đồng đều */
  max-width: 260px;
  /* không quá dài */
}

/* Icon đồng bộ */
.payment-btn img {
  height: 22px !important;
}

/* Đảm bảo cùng dòng */
.upgrade-group,
.payment-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Phần tìm kiếm */
.custom-highlight {
  background-color: #ffebcc !important;
  /* màu cam nhạt */
  padding: 0 2px;
  border-radius: 3px;
}

.hk0 {
  background-color: #ffebcc;
  border-radius: 3px;
  padding: 0 2px;
}

.hk1 {
  background-color: #d6ffcc;
  border-radius: 3px;
  padding: 0 2px;
}

.hk2 {
  background-color: #d6f0ff;
  border-radius: 3px;
  padding: 0 2px;
}

.hk3 {
  background-color: #ffe6f2;
  border-radius: 3px;
  padding: 0 2px;
}

.hk4 {
  background-color: #f9ffcc;
  border-radius: 3px;
  padding: 0 2px;
}

html,
body {
  overflow-x: hidden !important;
}

/* Căn giữa 2 nút upgrade trong tab Quản lý ví */
.upgrade-group {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  /* căn giữa nút */
  gap: 12px;
}

/* Ép 2 nút có cùng width */
.wallet-upgrade-btn {
  width: 200px !important;
  /* tuỳ chỉnh 180–240px */
}

#profileModal .btn+.btn {
  margin-left: 0 !important;
}


/* 1) Ngăn body bị Bootstrap thêm padding-right khi modal (cha hoặc con) mở */
body.modal-open {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* 2) Ngăn modal con tự thêm padding vào body */
.modal {
  padding-right: 0 !important;
}

/* 3) Giữ scrollbar luôn tồn tại → layout không bị giật */
html,
body {
  overflow-y: scroll !important;
}

#profileModal.modal,
body.modal-open {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* Các gói nạp tiền */
.topup-card {
  position: relative;
  transition: all 0.25s ease;
  border-width: 2px !important;
}

.topup-card.selected {
  box-shadow: 0 0 12px rgba(0, 150, 255, 0.35);
  border-color: #0d6efd !important;
  transform: translateY(-3px);
}

.topup-check {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 22px;
  color: #0d6efd;
  display: none;
}

.topup-card.selected .topup-check {
  display: block;
}

/* Khi một gói được chọn, các gói khác sẽ mờ nhẹ */
.topup-card.faded {
  opacity: 0.45;
  filter: grayscale(0.3);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.topup-card.selected {
  opacity: 1 !important;
  filter: none !important;
}

/* Hiệu ứng cho Modal */
/* Backdrop mượt + blur */
.modal-backdrop.show {
  opacity: 0.65 !important;
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease-out;
}

/* Chỉ áp dụng animation khi modal đang fade (Bootstrap sẽ handle show/hide) */
.modal.fade .modal-dialog {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease-out !important;

  transform: scale(0.95) translateY(10px);
  opacity: 0;
}

/* Khi modal hiển thị */
.modal.fade.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Chỉ áp dụng cho walletModal */
#walletModal .modal-dialog {
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1),
    opacity .22s ease-out;
}

#walletModal.show .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#walletModal .modal-backdrop.show {
  opacity: .55 !important;
  backdrop-filter: blur(5px);
  transition: opacity .2s ease-out;
}

@media (min-width: 992px) {
  .footer-container {
    max-width: 750px;
    position: relative;
    padding-left: 90px;
  }

  .footer-desc {
    padding-left: 90px;
  }
}

.slogan {
  font-weight: 600;
  font-size: 0.95rem;
  color: #8c4eca;
  /* tím hoàng đạo */
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.5px;
}


.footer-desc {
  font-size: 0.95rem;
  /* dùng size đẹp hơn từ footer-quote */
  color: #333;
  /* màu chữ rõ hơn */
  line-height: 1.6;

  font-style: italic;
  /* từ footer-quote */

  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 6px;

  border-left: 4px solid #6c63ff;
  /* giữ border đẹp hơn */

  margin-top: 8px;
  /* từ footer-desc */
}

/* ProfileModal Style */
.bg-primary {
  background-color: #9963e4 !important;
  border-color: #6f46c6 !important;
}

#profileModal .nav-tabs .nav-link.active {
  background: #9963e4 !important;
  /* dùng background, không dùng background-color */
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(111, 70, 198, 0.3) !important;
  border-color: #6f46c6 !important;
}

#profileModal .nav-tabs .nav-link:hover {
  background-color: #8665cd !important;
  color: #fff !important;
  /* tím siêu nhạt */
}

#profileModal .modal-content {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 12px 40px rgba(111, 70, 198, 0.25) !important;
}

#profileModal .modal-header {
  background: linear-gradient(135deg, rgba(111, 70, 198, 0.85), rgba(151, 115, 240, 0.75)) !important;
  color: white !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top-left-radius: 22px !important;
  border-top-right-radius: 22px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

#profileModal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.9 !important;
}

#profileModal .btn-close:hover {
  opacity: 1 !important;
  box-shadow: 0 0 0 4px rgba(111, 70, 198, 0.25);
  border-radius: 50%;
}

#profileModal .card {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Bộ temp chung cho các Modal */
/* ==========================================================
   GLOBAL MODAL STYLE — giống profileModal, áp dụng cho TẤT CẢ modal
   (chỉ cần thêm class .glass-modal vào .modal-content)
   ========================================================== */

.glass-modal {
  background: rgb(255, 255, 255) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.691) !important;
  box-shadow: 0 12px 40px rgba(111, 70, 198, 0.25) !important;
}

/* HEADER giống profileModal */
.glass-modal .modal-header {
  background: linear-gradient(135deg, rgba(111, 70, 198, 0.85), rgba(151, 115, 240, 0.75)) !important;
  color: white !important;
  border-top-left-radius: 22px !important;
  border-top-right-radius: 22px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Nút close trắng */
.glass-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.9 !important;
}

.glass-modal .btn-close:hover {
  opacity: 1 !important;
  box-shadow: 0 0 0 4px rgba(111, 70, 198, 0.25);
  border-radius: 50%;
}

/* Card nội dung bên trong modal */
.glass-modal .card {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}


/* ===========================
   SOLAR NOON MODAL (CHUẨN)
   =========================== */

#solarNoonModal .modal-content.glass-modal {
  border-radius: 20px;
  padding: 0;
}

#solarNoonModal .modal-header {
  padding: 14px 20px;
}

#solarNoonModal .modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

#solarNoonModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px;
}

#solarNoonModal .modal-footer {
  padding: 12px 20px;
}

/* Tabs */
#solarNoonModal .nav-tabs {
  border-bottom: 2px solid #e0e0e0;
  background: #f9fafc;
  border-radius: 14px;
  padding: 6px;
}

#solarNoonModal .nav-tabs .nav-link {
  border-radius: 10px !important;
  padding: 8px 18px;
  font-weight: 500;
}

#solarNoonModal .nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #007bff, #00a2ff);
  color: white !important;
}

/* Inputs */
#solarNoonModal .form-control {
  border-radius: 10px;
}

/* Result Box */
#solarNoonModal #solar-result-box .border {
  border-radius: 14px;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
}

/* ===========================
   TAB STYLE GIỐNG PROFILE
   =========================== */

#snTabs {
  border-bottom: none !important;
  background: #f8f9fa;
  border-radius: 14px;
  padding: 8px;
  gap: 6px;
}

#snTabs .nav-link {
  border: none !important;
  background: transparent !important;
  color: #444 !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-weight: 500;
  transition: all 0.25s ease;
}

#snTabs .nav-link:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

#snTabs .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, #9b59b6, #b07df2) !important;
  box-shadow: 0 3px 8px rgba(155, 89, 182, 0.35);
}

/* ===== END style.css ===== */