/**
* Developed by ThanhDieu 
* Name File: Custom.css
* Upgraded & Red-Themed Version
*/

/* ===== LOCAL VARIABLES ===== */
:root {
  --custom-red-primary: #ef4444;
  --custom-red-dark: #dc2626;
  --custom-red-light: #fca5a5;
  --custom-red-glow: rgba(239, 68, 68, 0.35);
}

/* ===== FONT FACES ===== */
@font-face {
  font-family: "Helvetica";
  src: url("../fonts/common/Helvetica/Helvetica.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "FzRubikBold";
  src: url("../fonts/FzRubik-Bold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "FzRubikRegular";
  src: url("../fonts/FzRubik-Regular.ttf") format("truetype");
  font-display: swap;
}

/* ===== CURSORS & OVERFLOW ===== */
body {
  cursor: url("./cursor/default.cur"), default;
}

select,
button,
a:hover,
.cur-pointer {
  cursor: url("./cursor/link.cur"), pointer;
}

input,
textarea,
input:focus {
  cursor: url("./cursor/Text-Select.cur"), text;
}

html, body {
  overflow-x: visible !important;
}

html.lavender-preloader,
body.lavender-preloader {
  overflow: hidden;
}

/* ===== PRELOADER & LOADERS ===== */
.lavender-preloader {
  pointer-events: all;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 112233445566;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dark .lavender-preloader {
  background: #0d0405 !important;
}

.loading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loading-container img {
  width: calc(50dvh - 128px);
}

.loader {
  animation: loaderRotate 2s linear infinite;
  z-index: 2;
  margin-top: 1.4em;
}

.loader .path {
  stroke: var(--custom-red-primary);
  stroke-linecap: round;
  animation: loaderDash 1.5s ease-in-out infinite;
}

@keyframes loaderRotate {
  0% { transform: rotate(0deg); transform-origin: center; }
  100% { transform: rotate(1turn); transform-origin: center; }
}

@keyframes loaderDash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Loader Fullscreen Overlay */
.td-loader {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(10, 4, 5, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.td-loader::after {
  text-align: center;
  z-index: 9999;
  font-size: 14px;
  text-shadow: 0 0 20px var(--custom-red-dark);
  color: var(--custom-red-light) !important;
  margin-top: 15px;
}

.spinner-border2 {
  display: inline-block;
  width: 45px;
  height: 45px;
  border: 0.123em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.7s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.lavender-loading-indicator {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 0%;
  pointer-events: none;
  height: 2.5px;
  background: var(--custom-red-primary);
  transform-origin: left center;
  z-index: 999999;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--custom-red-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(239, 68, 68, 0.1);
}

.select-none {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== MODAL & CARDS ===== */
.close-modal i,
.wt-close i,
.close-zoom i,
.close-modal svg,
.wt-close svg {
  transition: transform 0.3s ease;
}

.close-modal:hover i,
.wt-close:hover i,
.close-zoom i,
.close-modal:hover svg,
.wt-close:hover svg {
  transform: rotate(180deg);
}

.layout-nav-close i {
  font-size: 22px !important;
  transition: transform 0.3s;
}

.layout-nav-close:hover i {
  transform: rotate(180deg);
}

/* ===== FONT SIZES UTILITIES ===== */
.fs-1px { font-size: 1px; }   .fs-2px { font-size: 2px; }   .fs-3px { font-size: 3px; }
.fs-4px { font-size: 4px; }   .fs-5px { font-size: 5px; }   .fs-6px { font-size: 6px; }
.fs-7px { font-size: 7px; }   .fs-8px { font-size: 8px; }   .fs-9px { font-size: 9px; }
.fs-10px { font-size: 10px; } .fs-11px { font-size: 11px; } .fs-12px { font-size: 12px; }
.fs-13px { font-size: 13px; } .fs-14px { font-size: 14px; } .fs-15px { font-size: 15px; }
.fs-16px { font-size: 16px; } .fs-17px { font-size: 17px; } .fs-18px { font-size: 18px; }
.fs-19px { font-size: 19px; } .fs-20px { font-size: 20px; } .fs-21px { font-size: 21px; }
.fs-22px { font-size: 22px; } .fs-23px { font-size: 23px; } .fs-24px { font-size: 24px; }
.fs-25px { font-size: 25px; } .fs-26px { font-size: 26px; } .fs-27px { font-size: 27px; }
.fs-28px { font-size: 28px; } .fs-29px { font-size: 29px; } .fs-30px { font-size: 30px; }

/* ===== SLIDER MENU ===== */
.menu-slider {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  transition: right 0.4s ease;
}

.menu-slider.show {
  right: 0;
}

/* ===== GRADIENT BORDERS (THANHDIEU BORDER) ===== */
.thanhdieu-border-card,
.swal-modal {
  z-index: 0;
  position: relative;
}

.thanhdieu-border-card::before,
.swal-modal::before {
  z-index: -1;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(354deg, var(--custom-red-primary) 0%, rgba(239, 68, 68, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.popular::before {
  background: linear-gradient(168deg, var(--custom-red-primary) 0%, rgba(31, 40, 55, 0) 50%, var(--custom-red-primary) 100%);
}

.bank-auth {
  animation: wave 3.5s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(30px); }
}

.wt-spinner {
  animation: fa-spin 1.3s infinite linear;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(359deg); }
}

/* ===== SWEETALERT DARK MODE ===== */
.dark .swal-modal {
  background-color: #120608;
}

.dark .swal-title,
.dark .swal-text {
  color: #fff !important;
}

.swal-button:not(.swal-button--danger):not(.swal-button--cancel) {
  background-color: var(--custom-red-primary) !important;
  transition: all 0.25s ease;
}

.swal-button:not(.swal-button--danger):not(.swal-button--cancel):focus,
.swal-button:not(.swal-button--danger):not(.swal-button--cancel):hover {
  background-color: var(--custom-red-dark) !important;
  box-shadow: 0 0 12px var(--custom-red-glow) !important;
}

.nui-input-help-text {
  font-size: 11px !important;
  font-weight: 600 !important;
}

.mt-03 { margin-top: -3px; }
.icon-auth { width: 200px; }

.newfeeds {
  height: calc(42dvh - 128px);
  overflow-y: auto;
  overflow-x: hidden;
}

.bounce {
  animation: bounce 0.2s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-40px); }
  60% { transform: translateY(0); }
}

.nui-button-action,
.text-nowrap {
  white-space: nowrap !important;
}

@media (min-width: 768px) {
  .card-demo-bill {
    margin-left: 2rem;
    cursor: pointer;
    border-radius: 1rem;
    width: 35% !important;
  }
}

.error-message {
  font-weight: 600;
  color: #ef4444;
  font-size: 11px;
}

option:hover {
  background-color: #ef4444 !important;
  color: #fff;
}

.hide,
#bill-setting-dark {
  display: none;
}

/* ===== ANIMATIONS ===== */
.bounce-in, .bounce-out { will-change: transform, opacity; }
.bounce-in { animation: bounceIn 0.5s ease forwards; }
.bounce-out { animation: bounceOut 0.5s ease forwards; }
.fade-in { animation: fadeIn 0.3s ease forwards; }
.fade-out { animation: fadeOut 0.3s ease forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 768px) {
  .bounce-in, .bounce-out { animation: none; }
}

@keyframes bounceIn {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bounceOut {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(0.7); opacity: 0; }
}

.ml-15 { margin-left: 15px; }
.ml-4 { margin-right: .5em !important; }
.icon-pin { margin-top: 3px; height: 1em; }
.icon-wifi { height: 1rem; }

.swal-text {
  line-height: 1.5;
  font-weight: 500 !important;
  font-family: Arial, Helvetica, sans-serif;
}

.swal-button { font-weight: 500 !important; }

/* ===== NAVBAR SHINE EFFECT ===== */
.navbar-brand {
  position: relative;
  overflow: hidden;
}

.navbar-brand:before {
  content: "";
  position: absolute;
  left: -665px;
  top: -460px;
  width: 200px;
  height: 15px;
  background-color: rgba(255, 255, 255, .5);
  transform: rotate(-45deg);
  animation: searchLights 3.5s ease-in 0s infinite;
}

@keyframes searchLights {
  40% { left: -100px; top: 0; }
  60% { left: 120px; top: 100px; }
  80% { left: -100px; top: 0px; }
}

.hk-bg-animate {
  animation: 2s linear infinite animateBg;
}

@keyframes animateBg {
  100% { filter: hue-rotate(360deg); }
}

.crown, .crown2, .crown3 {
  position: absolute;
  left: 0;
  width: 130%;
  height: auto;
}

.crown3 { transform: scale(1.15); }

#tab-security, #tab-log {
  display: none;
  transform: scale(0);
  opacity: 0;
}

.scale-show {
  display: block;
  animation: scaleUp 0.3s ease forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (min-width: 768px) {
  .w-md-10 { flex: 0 0 auto; width: 70%; }
}

#deposit-method, #deposit-transfer { display: none; }

#method-transfer {
  display: none;
  transform: scale(0);
  transform-origin: top;
  transition: transform 0.3s ease;
  position: absolute;
  left: 0px;
  top: 78px;
  z-index: 20;
}

.icon-rotate { transition: transform 0.2s ease; }
.icon-rotate.up { transform: rotate(180deg); }

.pc { display: none; }
.mobile { display: block; }

@media (min-width: 768px) {
  .pc { display: block; }
  .mobile { display: none; }
}

.call-demo p {
  text-align: center;
  margin: 0;
  position: relative;
}

.call-demo img {
  cursor: pointer;
  width: 100%;
  height: 100%;
  box-shadow: 0px 0px 20px 0px rgba(100, 100, 100, 0.425);
  border-radius: 3px;
}

.call-demo p:hover { filter: contrast(1.1); }
.call-demo p:active { filter: contrast(0.9); }

.call-demo p::before,
.call-demo p::after {
  content: "";
  border: 2px solid;
  border-image: linear-gradient(45deg, var(--custom-red-primary), #fde047) 1;
  position: absolute;
  top: -5px; left: -5px; right: -5px; bottom: -5px;
  animation: clippath 3s infinite;
}

.call-demo p::before {
  animation: clippath 3s infinite -1.5s linear;
}

@keyframes clippath {
  0%, 100% { clip-path: inset(0% 0% 96% 0%); }
  25% { clip-path: inset(0% 96% 0% 0%); }
  50% { clip-path: inset(96% 0% 0% 0%); }
  75% { clip-path: inset(0% 0% 0% 96%); }
}

.qr-code-fix { width: 15.2em !important; }
.max-log-wrapper { max-height: 30rem; overflow: auto; }
.icon-vip { width: 8rem !important; }

@media (min-width: 768px) {
  .plans-card { width: 26rem !important; }
}

.plans-card {
  user-select: none;
  margin-bottom: 1.23rem;
}

.drg {
  position: absolute;
  top: -112px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.drg img {
  pointer-events: none;
  user-select: none;
  width: 180px;
  height: auto;
}

.plan-text {
  margin-left: 5px;
  width: 20px !important;
  height: 20px !important;
}

.vip-color img {
  pointer-events: none;
  user-select: none;
  filter: hue-rotate(150deg);
}

.svip {
  pointer-events: none;
  user-select: none;
  margin-top: 5px;
  width: 2.8rem;
}

.ThanhDieu_dataTables_wrapper {
  max-height: 32rem;
  overflow: auto;
}

.separator {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.container.xlol {
  position: relative;
  overflow: hidden;
}

#list-bank-home {
  display: flex;
  gap: 10px;
  animation: carousel 20s linear infinite;
}

@keyframes carousel {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

#list-bank-home:hover {
  cursor: pointer;
  animation-play-state: paused;
}

.banks { padding: 0 20px; width: 110px; }
.user-avatar img { min-width: 3.4rem; }

/* ===== MAGIC TEXT & STARS ===== */
@keyframes background-pan {
  from { background-position: 0 center; }
  to { background-position: -200% center; }
}

@keyframes scales {
  from, to { transform: scale(0); }
  50% { transform: scale(1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

h1 > .magic {
  display: inline-block;
  position: relative;
}

h1 > .magic > .magic-star {
  --size: clamp(20px, 1.2vw, 20px);
  animation: scales 700ms ease forwards;
  display: block;
  height: var(--size);
  left: var(--star-left);
  position: absolute;
  top: var(--star-top);
  width: var(--size);
}

h1 > .magic > .magic-star > svg {
  animation: rotate 1000ms linear infinite;
  display: block;
  opacity: .8;
}

h1 > .magic > .magic-star > svg > path {
  fill: var(--custom-red-light);
}

h1 > .magic > .magic-text {
  animation: background-pan 3s linear infinite;
  background: linear-gradient(to right, #dc2626, #ef4444, #fca5a5, #dc2626);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#source-link { top: 60px; }
#source-link > i { color: #5e6ad2; }
#yt-link { top: 10px; }
#yt-link > i { color: #ef5350; }

.meta-link {
  align-items: center;
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
  left: 10px;
  padding: 10px 20px;
  position: fixed;
  text-decoration: none;
  transition: background-color 600ms, border-color 600ms;
  z-index: 10000;
}

.meta-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-link > i,
.meta-link > span {
  height: 20px;
  line-height: 20px;
}

.meta-link > span {
  color: white;
  transition: color 600ms;
}

#user-menu-items { z-index: 9999999999 !important; }
.wt-avatar img { width: 8rem !important; }
.tick-blue { display: flex; width: 2rem; }
.geetest_captcha_offline { color: #000000 !important; }

@media (min-width: 1025px) {
  .w-auth-cover { width: 32%; }
}

/* ===== SLIDER CONTROL COMPONENT ===== */
.slider-target,
.slider-target * {
  touch-action: none;
  user-select: none;
  box-sizing: border-radius;
}

.slider-target { position: relative; }

.slider-base,
.slider-connects {
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
}

.slider-connects { overflow: hidden; z-index: 0; }

.slider-connect,
.slider-origin {
  height: 100%;
  position: absolute;
  right: 0; top: 0;
  transform-origin: 0 0;
  width: 100%;
  will-change: transform;
  z-index: 1;
}

.slider-horizontal { height: 6px; }

.slider-connect {
  background: var(--custom-red-primary);
  cursor: pointer;
}

.slider-handle {
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);
  cursor: grab;
  height: 16px;
  width: 16px;
}

.slider-handle:focus {
  box-shadow: 0 0 0 2px var(--custom-red-primary), 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);
  outline: none;
}

.slider-primary .slider-connect,
.slider-primary .slider-tooltip {
  border-color: var(--custom-red-primary);
  background-color: var(--custom-red-primary);
}

.dark .slider-base { background: #475569; }

.td-croll-modal-bill {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
}

.upload-text-fix {
  word-break: break-word;
  overflow-wrap: break-word;
}

.logo-ck-full { width: 100%; }

/* ===== MARQUEE NOTIFICATION ===== */
.marquee {
  position: fixed;
  top: -2px;
  left: 0;
  width: 100vw;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  z-index: 2147483647;
  pointer-events: none;
}

.marquee span {
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: Arial, sans-serif;
  animation: blink 1.5s infinite;
  white-space: nowrap;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.4; }
}

@media (max-width: 768px) {
  .marquee {
    top: -11px;
    justify-content: flex-start;
    overflow: hidden;
  }

  .marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollMarquee 13s linear infinite;
  }

  @keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }
}

/* ===== BĂNG RÔN / BADGES ===== */
.bang-ron {
  position: relative;
  display: inline-block;
  padding: 8px 15px;
  background: var(--custom-red-primary);
  color: white;
  font-weight: bold;
  border-radius: 4px;
  margin-right: 15px;
}

.bang-ron::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid var(--custom-red-primary);
}

.w-product { width: 100%; }

@media (min-width: 768px) {
  .w-product { width: 60%; }
}

.product-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px !important;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  box-shadow: rgba(20, 2, 8, 0.8) 0px 7px 29px 0px;
}

.asp-detail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

@media (max-width: 768px) {
  .asp-detail {
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: 17px;
  }
}

.asp-detail .swiper-slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  transition: left 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: cover;
}

.asp-detail .swiper-slide.active { left: 0; z-index: 2; }
.asp-detail .swiper-slide.prev { left: -100%; z-index: 1; }
.asp-detail .swiper-slide.next { left: 100%; z-index: 1; }

.swiper-nav {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.swiper-nav i {
  font-size: 25px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 10;
  pointer-events: auto;
}

.swiper-nav i:hover {
  color: #ffffff;
  transform: scale(1.3);
}

.close-zoom {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-zoom:hover { background: rgba(0, 0, 0, 0.8); }
.close-zoom i { color: var(--custom-red-light); font-size: 1.25rem; }

.notfound-img {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.posts-item { position: relative; }

.posts-item.nui-card::before {
  content: "";
  display: block;
  background: #ef4444;
  top: 17px;
  right: 20px;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  box-shadow: -16px 0 #fdbc40, -32px 0 #35cd4b;
  z-index: 1;
  position: absolute;
}

.break-words { word-break: break-word; }
.title-history-puchase { overflow-x: auto; column-gap: 7rem; }
#modal-notify-system { display: none; }

.cali-tuoilon {
  position: fixed;
  inset: 0;
  z-index: 1111;
  overflow: hidden;
  pointer-events: none;
}

.cali-tuoilon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
}

.lavender-slide-img { height: 200px; }

@media (min-width: 768px) {
  .lavender-slide-img { height: 400px; }
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--custom-red-primary) !important;
  opacity: 1 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 10px !important;
  font-weight: bold;
}

.swiper-button-next,
.swiper-button-prev {
  width: 30px !important;
  height: 30px !important;
  background-color: rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  color: white !important;
  transition: background-color 0.25s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--custom-red-primary);
}

#bill-setting {
  background-color: rgba(0, 0, 0, 0.6) !important;
}

#bill-setting .modal-bg {
  display: none !important;
}