/* CSS cho máy tính */
@media screen and (min-width: 768px) {
    .swiper-desktop {
        display: block;
    }
    .swiper-mobile {
        display: none;
    }
}

/* CSS cho điện thoại di động */
@media screen and (max-width: 767px) {
    .swiper-desktop {
        display: none;
    }
    .swiper-mobile {
        display: block;
    }
}

/* Thêm đoạn CSS sau vào phần style của bạn */
#searchButton {
    position: relative;
   /* Đảm bảo rằng nút tìm kiếm có vị trí tương đối */
    z-index: 1000;
   /* Đặt giá trị z-index cho nút tìm kiếm */
}
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
   /* Đặt giá trị z-index cho thanh điều hướng */
    background-color: #fff;
   /* Màu nền của thanh điều hướng */
    border-bottom: 1px solid #ddd;
   /* Đường viền dưới của thanh điều hướng */
    padding: 10px;
}
#searchPopover {
    display: none;
    position: fixed;
    bottom: 60px;
   /* Đặt khoảng cách từ bottom sao cho nó nằm trên thanh điều hướng */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
   /* Đặt giá trị z-index cao hơn thanh điều hướng */
    width: 320px;
}
#searchPopover.visible {
    display: block;
}
@media only screen and (max-width: 600px) {
   /* Hiển thị thanh điều hướng trên các màn hình nhỏ hơn 600px (điện thoại di động) */
    .ws-sticky-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background-color: white;
        border-top: 1px solid #ddd;
       /* Thêm đường viền trên thanh điều hướng nếu cần */
        padding: 2px 1px;
        display: flex;
        justify-content: space-between;
        align-items: center;
   }
    .ws-sticky-navbar a {
        text-decoration: none;
        color: #333;
       /* Màu chữ của các liên kết */
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
   }
    .ws-sticky-navbar i {
        font-size: 20px;
        margin-bottom: 5px;
   }
    .ws-sticky-navbar span {
        font-weight: bold;
        font-size: 12px;
   }
}
#dropdownContent {
    position: fixed;
    display: none;
    z-index: 2001;
    max-height: 100vh;
    /* Chiều cao tối đa là chiều cao của cửa sổ */
    overflow: hidden;
    white-space: nowrap;
    /* Ngăn chặn chữ xuống dòng */
}

.el-input--suffix .el-input__inner {
    padding-right: 30px;
}
.el-select .el-input__inner {
    cursor: pointer;
    padding-right: 35px;
}
.el-input--suffix .el-input__inner {
    padding-right: 30px;
}
.el-select .el-input__inner {
    cursor: pointer;
    padding-right: 35px;
}
.el-input__inner {
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: none;
    padding: 0 15px;
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
}
.custom-swal-container {
    z-index: 2012;
}
.tw-text-red-500 {
    --tw-text-opacity: 1;
    color: rgba(48, 184, 242, var(--tw-text-opacity));
}
.tw-font-bold {
    font-weight: 700;
}
.tw-py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.tw-px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.tw-bg-white {
    --tw-bg-opacity: 1;
    background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
}
.tw-mb-4 {
    margin-bottom: 1rem;
}
.tw-relative {
    position: relative;
}
.tw-flex {
    display: flex;
}
.tw-h-10 {
    height: 2.5rem;
}
.tw-items-center {
    align-items: center;
}
.tw-justify-center {
    justify-content: center;
}
.tw-flex {
    display: flex;
}
.tw-justify-center {
    justify-content: center;
}
@media (min-width: 768px) {
    .md\:tw-rounded {
        border-radius: 6rem;
    }
}
.tw-text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}
.tw-bg-white {
    --tw-bg-opacity: 1;
    background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
}
.tw-justify-center {
    justify-content: center;
}
.tw-items-center {
    align-items: center;
}
.tw-w-10 {
    width: 2.5rem;
}
.tw-h-10 {
    height: 2.5rem;
}
.tw-flex {
    display: flex;
}
.tw-absolute {
    position: absolute;
}
.tw-flex {
    display: flex;
}
.tw-items-center {
    align-items: center;
}
.tw-flex {
    display: flex;
}
.tw-items-center {
    align-items: center;
}
.tw-w-full {
    width: 100%;
}
.tw-flex {
    display: flex;
}
.tw-w-full {
    width: 100%;
}
.fade {
    display: none;
}
.fade.show {
    display: flex !important;
}
.open {
    display: block !important;
}

/* index */
.home {
    display: flex;
}

#button-contact-vr {
    position: fixed;
    bottom: 88px;
    z-index: 99999;
    right: 8px;
}

#zalo-vr {
    transition: 1s all;
    -moz-transition: 1s all;
    -webkit-transition: 1s all;
}

.button-contact {
    position: relative;
    margin-top: -5px;
}

#button-contact-vr .button-contact .phone-vr {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transition: visibility 0.5s;
    left: 0;
    bottom: 0;
    display: block;
}

.phone-vr-circle-fill {
    width: 65px;
    height: 65px;
    top: 10px;
    left: 10px;
    position: absolute;
    box-shadow: 0 0 0 0 #c31d1d;
    background-color: rgba(230, 8, 8, 0.7);
    border-radius: 50%;
    border: 2px solid transparent;
    -webkit-animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    transition: all 0.5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animuiion: zoom 1.3s infinite;
    animation: zoom 1.3s infinite;
}

.sungtrai {
    position: absolute;
    z-index: 1;
    left: 0vw;
    bottom: -100px;
}

.nvphai {
    position: absolute;
    z-index: 0;
    right: 0vw;
    bottom: -140px;
}

.pulse {
    animation: pulse 1s infinite ease-in-out alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

#zalo-vr .phone-vr-circle-fill {
    box-shadow: 0 0 0 0 #2196f3;
    background-color: rgba(33, 150, 243, 0.7);
}

#zalo-vr .phone-vr-img-circle {
    background-color: #2196f3;
}

#messenger-vr .phone-vr-circle-fill {
    box-shadow: 0 0 0 0 #ffffff;
    background-color: rgba(255, 255, 255, 0.9);
}

#messenger-vr .phone-vr-img-circle {
    background-color: #ffffff;
}

.phone-vr-img-circle {
    background-color: #e60808;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 25px;
    left: 25px;
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    /* -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out; */
    animation: phone-vr-circle-fill 1s infinite ease-in-out;
}

.phone-vr-img-circle img {
    max-height: 25px;
    max-width: 27px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

.phone-vr-img-circle a {
    display: block;
    line-height: 37px;
}

@keyframes zoom {
    0% {
        transform: scale(0.9);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent;
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
    }
}

@keyframes phone-vr-circle-fill {
    0% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }
    10% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
    }
    20% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
    }
    30% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
    }
    40% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
    }
    50% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }
    100% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
    }
}

/* ==========================================================================
   UNIFIED MODAL DESIGN SYSTEM - THUEROBLOX.COM
   ========================================================================== */

/* 1. Modal Overlay & Backdrop */
.modal.el-overlay,
.el-overlay,
.purchase-modal,
.order-quick-modal,
.ws-unified-overlay,
.modal.fade.show {
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

.modal.fade .modal-dialog {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
  margin: 40px auto !important;
}

/* 2. Modal Dialog Containers - Specific widths */
.modal-dialog.el-overlay-dialog {
  width: 92% !important;
  margin: 40px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-dialog.el-overlay-dialog .el-dialog {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #f1f5f9 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.purchase-modal__dialog {
  width: min(100%, 540px) !important;
  max-width: 540px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 22px 24px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #f1f5f9 !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

.order-quick-modal__dialog {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 0 !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #f1f5f9 !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

.ws-notihomes .el-overlay-dialog {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin: auto !important;
}

/* 3. Modal Header */
.el-dialog__header,
.purchase-modal__header,
.ws-modal-header {
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  margin: 0 !important;
}

.el-dialog__title,
.purchase-modal__title,
.ws-modal-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  text-transform: uppercase !important;
  letter-spacing: -0.2px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1.2 !important;
}

.ws-modal-title.text-danger,
.purchase-modal__title {
  color: #dc2626 !important;
}

/* 4. Unified Modal Close Button (Circular) - DO NOT target .js-close-modal */
.el-dialog__headerbtn,
.purchase-modal__close-btn,
.ws-modal-close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  outline: none !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.el-dialog__headerbtn:hover,
.purchase-modal__close-btn:hover,
.ws-modal-close:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

/* 5. Modal Body */
.el-dialog__body,
.ws-modal-body {
  padding: 18px 20px !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}

/* 6. Form Controls & Inputs inside Modals */
.ws-modal-form-group {
  margin-bottom: 14px !important;
}

.ws-modal-label {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
}

.ws-modal-input,
.el-input__inner,
.el-input__inner2 {
  width: 100% !important;
  height: 42px !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  outline: none !important;
  box-sizing: border-box !important;
  display: block !important;
  transition: all 0.2s ease !important;
}

.ws-modal-input:focus,
.el-input__inner:focus,
.el-input__inner2:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* 7. Unified Action Buttons */
.ws-modal-actions,
.purchase-modal__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.ws-btn-modal,
.purchase-button {
  height: 38px !important;
  padding: 0 16px !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.ws-btn-modal i,
.purchase-button i {
  font-size: 16px !important;
  line-height: 1 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ws-btn-modal span,
.purchase-button span {
  line-height: 1 !important;
  margin: 0 !important;
}

.ws-btn-modal-cancel,
.purchase-button--cancel {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

.ws-btn-modal-cancel:hover,
.purchase-button--cancel:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
}

.ws-btn-modal-primary,
.purchase-button--confirm {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35) !important;
}

.ws-btn-modal-primary:hover,
.purchase-button--confirm:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: #b91c1c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45) !important;
}

.ws-btn-modal-primary:active,
.purchase-button--confirm:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
}

/* 8. Telecom Badges (Nạp thẻ cào) */
.operator-badge {
  height: 48px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 6px !important;
  transition: all .2s ease !important;
  opacity: 0.55 !important;
  filter: grayscale(80%) !important;
}

.operator-badge:hover {
  opacity: 0.9 !important;
  filter: grayscale(20%) !important;
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

.operator-badge.is-active {
  opacity: 1 !important;
  filter: grayscale(0%) !important;
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 1px #dc2626, 0 2px 6px rgba(220, 38, 38, 0.15) !important;
}

/* 9. Prevent iOS / Mobile auto-zoom on input focus */
@media screen and (max-width: 768px) {
  input,
  select,
  textarea,
  .ws-modal-input,
  .el-input__inner,
  .el-input__inner2,
  .el-input input,
  .form-control {
    font-size: 16px !important;
  }
}