/* ==========================================================================
   FOOTER MODERN - MỰC IN SÀI GÒN (TỔNG HỢP TINH CHỈNH HOÀN THIỆN)
   - Chữ "MỰC IN SÀI GÒN" chuẩn đỏ tươi & slogan 100% giống Header
   - Dải bản quyền dưới cùng màu Xanh Navy thương hiệu #253989 chuẩn Header
   - Nút Hotline sửa lỗi hover: số điện thoại sáng trắng rõ nét trên nền đỏ/xanh
   - Hệ thống Icon Social: màu thương hiệu chuẩn sắc nét, nổi bật và đẹp mắt
   ========================================================================== */

#site-footer,
.site-footer-modern,
.site-footer-white {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  margin-top: 0 !important; /* Liền mạch khít chuẩn UX với section cuối */
  border-top: 1px solid #e2e8f0 !important;
}

.site-footer-modern a {
  color: #334155;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Chỉ hover đổi màu đỏ cho các link thông thường, không áp dụng lên nút hotline */
.site-footer-modern a:not(.hotline-pill):not(.social-btn):hover {
  color: #ed1c24 !important;
}

/* ==========================================================================
   TẦNG 1: THANH CAM KẾT VÀNG (USP / TRUST BAR - NỀN SÁNG CAO CẤP)
   ========================================================================== */
.footer-usp-bar {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 14px 0 !important; /* Tinh gọn khít chuẩn UX Desktop */
}

.footer-usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-usp-item:hover {
  transform: translateY(-2px);
  border-color: #ed1c24;
  box-shadow: 0 6px 16px rgba(237, 28, 36, 0.1);
}

.footer-usp-item .usp-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(237, 28, 36, 0.08);
  border: 1px solid rgba(237, 28, 36, 0.2);
  color: #ed1c24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.footer-usp-item:hover .usp-icon {
  transform: scale(1.1);
  background: #ed1c24;
  color: #ffffff;
}

.footer-usp-item .usp-meta {
  display: flex;
  flex-direction: column;
}

.footer-usp-item .usp-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.3px;
}

.footer-usp-item .usp-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   TẦNG 2: THÂN FOOTER 4 CỘT CÂN ĐỐI (MAIN FOOTER GRID - NỀN TRẮNG)
   ========================================================================== */
.main-footer-body {
  padding: 42px 0 32px !important;
  background-color: #ffffff !important;
}

.footer-grid-4col {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1fr 1.1fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Tiêu đề cột */
.footer-col-title {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  margin: 0 0 18px 0 !important;
  padding-bottom: 8px !important;
  position: relative !important;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 42px;
  height: 2.5px;
  background: #ed1c24;
  border-radius: 2px;
}

.footer-col-title .mobile-arrow {
  display: none;
}

/* --- CỘT 1: THÔNG TIN CÔNG TY & LOGO CHUẨN HEADER --- */
.site-footer-modern .footer-brand-header {
  margin-bottom: 14px;
}

.site-footer-modern .footer-brand-header .td-logo-wrap {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-footer-modern .footer-brand-header .td-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 0;
  text-decoration: none !important;
}

.site-footer-modern .footer-brand-header .td-logo-img {
  height: 44px !important;
  width: auto !important;
  max-height: 46px !important;
  object-fit: contain;
  display: block;
}

.site-footer-modern .footer-brand-header .td-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* CHỮ "MỰC IN SÀI GÒN" CHUẨN ĐỎ TƯƠI GIỐNG 100% CHỮ HEADER */
.site-footer-modern .footer-brand-header .td-logo-title,
.site-footer-modern .footer-brand-header .td-logo-title strong {
  color: #ed1c24 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  line-height: 1.1 !important;
}

.site-footer-modern .footer-brand-header .td-logo-slogan {
  color: #4b5563 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  margin-top: 3px !important;
  white-space: nowrap !important;
}

.footer-company-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.footer-company-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #253989 !important;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.footer-about-link:hover {
  gap: 9px;
  color: #ed1c24 !important;
}

.footer-contact-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #475569;
}

.footer-contact-list li i {
  color: #ed1c24;
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-list .contact-text strong {
  color: #0f172a;
}

.footer-contact-list .map-direct-link {
  color: #253989 !important;
  font-size: 11.5px;
  margin-left: 4px;
  font-weight: 700;
}

.footer-contact-list .map-direct-link:hover {
  text-decoration: underline;
  color: #ed1c24 !important;
}

/* --- CỘT 2: TỔNG ĐÀI HỖ TRỢ (SỬA LỖI HOVER KHÔNG THẤY SỐ ĐIỆN THOẠI) --- */
.hotline-block {
  margin-bottom: 16px;
}

.hotline-group-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hotline-group-label i {
  color: #ed1c24;
}

.hotline-numbers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Trạng thái bình thường của nút hotline */
.site-footer-modern a.hotline-pill,
.site-footer-modern .hotline-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 20px;
  color: #ed1c24 !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  width: fit-content;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.site-footer-modern a.hotline-pill *,
.site-footer-modern .hotline-pill * {
  color: #ed1c24 !important;
  transition: color 0.25s ease;
}

.site-footer-modern a.hotline-pill i,
.site-footer-modern .hotline-pill i {
  font-size: 12px;
  color: #ed1c24 !important;
}

/* FIX HOVER: RÊ CHUỘT VÀO NỀN ĐỎ #ED1C24, CHỮ & SỐ ĐIỆN THOẠI CHUYỂN SANG MÀU TRẮNG TINH #FFFFFF SIÊU RÕ NÉT */
.site-footer-modern a.hotline-pill:hover,
.site-footer-modern .hotline-pill:hover {
  background: #ed1c24 !important;
  border-color: #ed1c24 !important;
  color: #ffffff !important;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.35);
}

.site-footer-modern a.hotline-pill:hover *,
.site-footer-modern a.hotline-pill:hover span,
.site-footer-modern a.hotline-pill:hover i,
.site-footer-modern .hotline-pill:hover * {
  color: #ffffff !important;
}

/* Nút Góp ý / Phản ánh: Tông Xanh Navy #253989 */
.site-footer-modern a.hotline-pill.hotline-feedback,
.site-footer-modern .hotline-feedback {
  color: #253989 !important;
  border-color: #253989 !important;
}

.site-footer-modern a.hotline-pill.hotline-feedback *,
.site-footer-modern .hotline-feedback * {
  color: #253989 !important;
}

.site-footer-modern a.hotline-pill.hotline-feedback:hover,
.site-footer-modern .hotline-feedback:hover {
  background: #253989 !important;
  border-color: #253989 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 57, 137, 0.35);
}

.site-footer-modern a.hotline-pill.hotline-feedback:hover *,
.site-footer-modern a.hotline-pill.hotline-feedback:hover span,
.site-footer-modern a.hotline-pill.hotline-feedback:hover i,
.site-footer-modern .hotline-feedback:hover * {
  color: #ffffff !important;
}

/* Khối Thời Gian Làm Việc */
.worktime-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.worktime-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.worktime-title i {
  color: #253989;
}

.worktime-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 12px;
}

.worktime-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
  color: #64748b;
}

.worktime-list li .time {
  color: #0f172a;
  font-weight: 700;
}

.worktime-list li .text-red {
  color: #ed1c24 !important;
  font-weight: 700;
}

/* --- CỘT 3: CHÍNH SÁCH MUA HÀNG & FORM ĐĂNG KÝ ƯU ĐÃI --- */
.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
}

.footer-nav-list li {
  margin-bottom: 7px;
}

.footer-nav-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  transition: all 0.2s ease;
}

.footer-nav-list li a i {
  color: #ed1c24;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.footer-nav-list li a:hover {
  color: #ed1c24 !important;
  transform: translateX(4px);
}

.footer-nav-list li a:hover i {
  transform: translateX(2px);
}

/* Form Đăng Ký Ưu Đãi */
.footer-newsletter-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.newsletter-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.newsletter-title i {
  color: #ed1c24;
}

.newsletter-desc {
  font-size: 11.5px;
  color: #64748b;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.newsletter-form-wrap .wpcf7 form {
  display: flex;
  align-items: stretch;
  position: relative;
  max-width: 100%;
}

.newsletter-form-wrap .wpcf7 form p {
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter-form-wrap .wpcf7 form p:first-of-type {
  flex: 1;
}

.newsletter-form-wrap .wpcf7 form p:first-of-type .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.newsletter-form-wrap input#sdt-dk,
.newsletter-form-wrap input[name="text-462"] {
  width: 100% !important;
  height: 38px !important;
  padding: 0 12px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-right: none !important;
  border-radius: 6px 0 0 6px !important;
  font-size: 12px !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form-wrap input#sdt-dk:focus,
.newsletter-form-wrap input[name="text-462"]:focus {
  border-color: #ed1c24 !important;
  box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.1) !important;
}

.newsletter-form-wrap input#sdt-dk::placeholder,
.newsletter-form-wrap input[name="text-462"]::placeholder {
  color: #94a3b8 !important;
}

.newsletter-form-wrap input#ok-dk,
.newsletter-form-wrap input[type="submit"] {
  height: 38px !important;
  padding: 0 16px !important;
  background: #ed1c24 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 0 6px 6px 0 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.newsletter-form-wrap input#ok-dk:hover,
.newsletter-form-wrap input[type="submit"]:hover {
  background: #c41219 !important;
}

.newsletter-form-wrap .wpcf7-response-output {
  margin: 8px 0 0 0 !important;
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  border-radius: 4px !important;
  line-height: 1.4 !important;
}

.newsletter-form-wrap .wpcf7-not-valid-tip {
  font-size: 11px !important;
  color: #dc2626 !important;
  margin-top: 4px !important;
  display: block !important;
}

/* --- CỘT 4: KẾT NỐI VỚI MỰC IN SÀI GÒN (ICON SẮC NÉT, MÀU CHUẨN ĐẸP) --- */
.social-intro {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none !important;
}

.social-btn svg {
  display: block;
  fill: #ffffff !important;
  color: #ffffff !important;
}

.social-btn span {
  color: #ffffff !important;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.btn-zalo span {
  font-size: 11px;
  letter-spacing: -0.3px;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  color: #ffffff !important;
}

/* Màu sắc chính hãng rực rỡ, sắc nét của từng mạng xã hội */
.btn-facebook  { background: #1877f2 !important; }
.btn-youtube   { background: #ff0000 !important; }
.btn-zalo      { background: #0068ff !important; }
.btn-twitter   { background: #000000 !important; }
.btn-pinterest { background: #e60023 !important; }
.btn-threads   { background: #101010 !important; }
.btn-blockdit  { background: #4a69ff !important; }
.btn-kubo      { background: #7c3aed !important; }

/* --- BẢN ĐỒ GOOGLE MAPS CỘT KẾT NỐI --- */
.footer-map-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  background: #f8fafc;
}

.footer-map-wrap iframe {
  width: 100% !important;
  height: 150px !important;
  display: block;
  border: 0;
}

.bct-badge-wrap {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.bct-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.bct-logo {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
}

.bct-logo:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   TẦNG 3: BẢN QUYỀN (COPYRIGHT BAR - MÀU XANH NAVY THƯƠNG HIỆU #253989 CHUẨN HEADER)
   ========================================================================== */
.copy-right-modern {
  background-color: #253989 !important;
  background: #253989 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 18px 0 !important;
  text-align: center;
}

.copyright-text {
  font-size: 12.5px;
  color: #e2e8f0 !important;
  margin: 0;
  line-height: 1.6;
}

.copyright-text strong {
  color: #ffffff !important;
  font-weight: 800;
}

/* Nút Back to Top */
#site-footer .back-top {
  position: fixed;
  bottom: 25px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: #ed1c24;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.35);
  z-index: 999;
  text-decoration: none;
  transition: all 0.25s ease;
}

#site-footer .back-top:hover {
  background: #c41219 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(237, 28, 36, 0.5);
}

#site-footer .back-top i {
  font-size: 13px;
  margin-bottom: -1px;
}

/* ==========================================================================
   TẦNG 4: TỐI ƯU TOÀN DIỆN CHO MOBILE (<= 768px)
   ========================================================================== */
@media (max-width: 1024px) {
  #site-footer,
  .site-footer-modern,
  .site-footer-white {
    margin-top: 0 !important;
  }
  .footer-usp-bar {
    padding: 12px 0 !important;
  }
  .footer-usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid-4col {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  #site-footer,
  .site-footer-modern,
  .site-footer-white {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .footer-usp-bar {
    padding: 8px 0 10px 0 !important; /* Tối ưu khít chuẩn Mobile, xóa khoảng trắng thừa */
  }

  .footer-usp-grid {
    grid-template-columns: 1fr;
    gap: 8px !important;
  }

  .footer-usp-item {
    padding: 8px 12px !important;
  }

  .footer-grid-4col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-col {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
  }

  .footer-col-company {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
  }

  /* Accordion Title */
  .footer-col-title {
    margin: 0 !important;
    padding: 12px 0 !important;
    cursor: pointer;
    border-bottom: none !important;
    color: #0f172a !important;
  }

  .footer-col-title::after {
    display: none;
  }

  .footer-col-title .mobile-arrow {
    display: inline-block;
    font-size: 12px;
    color: #64748b;
    transition: transform 0.25s ease;
  }

  .footer-col-title.active .mobile-arrow {
    transform: rotate(180deg);
    color: #ed1c24;
  }

  /* Accordion Content Collapse */
  .footer-col-support .footer-col-content,
  .footer-col-policies .footer-col-content,
  .footer-col-social .footer-col-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .footer-col-content.is-open {
    max-height: 1000px !important;
  }
}

/* ==========================================================================
   CỤM LIÊN HỆ & ĐIỀU HƯỚNG CHUẨN UX/UI (PHƯƠNG ÁN 1)
   - DESKTOP: CỘT DỌC NỔI MÉP PHẢI (MESS Ở TRÊN, 6 ICON BÊN DƯỚI)
   - MOBILE: THANH BOTTOM BAR 6 ICON CỐ ĐỊNH CHÂN TRANG + MESS NỔI Ở TRÊN
   ========================================================================== */

/* Ẩn triệt để các nút floating cũ để giải phóng mép trái và tránh xung đột */
.zalo-container,
.telegram-container,
.messer-container,
.viber-container,
#site-footer > a.back-top {
  display: none !important;
}

/* Animations dùng chung */
@keyframes msPulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(237, 28, 36, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(237, 28, 36, 0); }
}
@keyframes msWiggle {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(-12deg); }
  40%, 80% { transform: rotate(12deg); }
}

/* --------------------------------------------------------------------------
   1. GIAO DIỆN DESKTOP (MÀN HÌNH > 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .ms-mobile-bottom-bar,
  .ms-mobile-floating-mess {
    display: none !important;
  }

  .ms-desktop-dock {
    position: fixed;
    right: 22px;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: auto;
  }

  /* Riêng Messenger ở trên (theo ảnh prnt.sc/eeD7pOx3e1Xw) */
  .ms-dock-mess {
    margin-bottom: 8px;
    position: relative;
  }

  .ms-dock-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .ms-dock-item {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    position: relative;
    transition: transform 0.25s ease;
  }

  .ms-dock-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  .ms-dock-item:hover .ms-dock-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }

  .ms-dock-icon img,
  .ms-dock-icon svg {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
  }

  /* Nhãn Tooltip trượt mở sang trái khi hover */
  .ms-dock-label {
    position: absolute;
    right: 54px;
    background: rgba(30, 41, 59, 0.95);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 1;
  }
  .ms-dock-label::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(30, 41, 59, 0.95);
  }
  .ms-dock-item:hover .ms-dock-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  /* NÚT GỌI ĐIỆN 0919 237 257 (NỔI BẬT NHẤT) */
  .ms-dock-item.item-call .ms-dock-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ed1c24, #b71016);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(237, 28, 36, 0.45);
    animation: msPulseRing 2.2s infinite;
    border: 2px solid #ffffff;
  }
  .ms-dock-item.item-call .ms-dock-icon i {
    font-size: 20px;
    color: #ffffff !important;
    animation: msWiggle 2s infinite ease-in-out;
  }
  .ms-dock-item.item-call .ms-dock-label {
    background: #ed1c24;
    font-size: 14px;
    font-weight: 700;
  }
  .ms-dock-item.item-call .ms-dock-label::after {
    border-color: transparent transparent transparent #ed1c24;
  }

  /* Nút Lên Đầu Trang (Back to top) */
  .ms-dock-item.item-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
  .ms-dock-item.item-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .ms-dock-item.item-top .ms-dock-icon {
    width: 40px;
    height: 40px;
    background: #253989;
    color: #ffffff;
  }
  .ms-dock-item.item-top .ms-dock-icon i {
    font-size: 15px;
    color: #ffffff !important;
    transition: transform 0.2s ease;
  }
  .ms-dock-item.item-top:hover .ms-dock-icon i {
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   2. GIAO DIỆN MOBILE (MÀN HÌNH <= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .ms-desktop-dock {
    display: none !important;
  }

  body {
    padding-bottom: 68px !important;
  }

  /* Riêng Messenger nổi độc lập góc phải phía trên thanh bar */
  .ms-mobile-floating-mess {
    position: fixed;
    right: 15px;
    bottom: 74px;
    z-index: 9998;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.06);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
  }
  .ms-mobile-floating-mess:active {
    transform: scale(0.92);
  }
  .ms-mobile-floating-mess svg {
    width: 30px;
    height: 30px;
    display: block;
  }

  /* Thanh Bottom Bar 6 icon cố định đáy Mobile */
  .ms-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #ffffff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #f0f1f5;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 9999;
    padding: 0 2px;
  }

  .ms-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #555555 !important;
    font-size: 10px;
    font-weight: 600;
    position: relative;
    height: 100%;
    padding-top: 4px;
    -webkit-tap-highlight-color: transparent;
  }

  .ms-bar-item img,
  .ms-bar-item svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    margin-bottom: 2px;
  }

  .ms-bar-item span {
    white-space: nowrap;
    letter-spacing: -0.2px;
    line-height: 1.2;
    font-size: 10px;
  }

  /* NÚT GỌI ĐIỆN 0919 237 257 (NHÔ CAO NỔI BẬT NHẤT) */
  .ms-bar-item.item-call-fab {
    position: relative;
    top: -12px;
    height: auto;
    padding-top: 0;
  }
  .ms-fab-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ed1c24, #c41219);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(237, 28, 36, 0.45);
    border: 3px solid #ffffff;
    animation: msPulseRing 2.2s infinite;
    margin-bottom: 2px;
  }
  .ms-fab-circle i {
    font-size: 20px;
    color: #ffffff !important;
    animation: msWiggle 2s infinite ease-in-out;
  }
  .ms-bar-item.item-call-fab span {
    color: #ed1c24 !important;
    font-weight: 800;
    font-size: 10.5px;
  }

  /* Nút Lên Đầu trên Mobile */
  .ms-bar-item.item-top i {
    font-size: 17px;
    color: #253989;
    margin-bottom: 3px;
  }
}

