      html {
    font-size: 16px; /* 1rem = 16px */
}

/* Tự động giảm cỡ chữ trên điện thoại để web trông thoáng hơn */
@media (max-width: 768px) {
    html { font-size: 14px; } 
}
      body {
        font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
      }
      .stats-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        padding: 16px 8px;
        margin-top: 2rem;
      }
      .stats-col {
        text-align: center;
        padding: 0 4px;
      }
      .stats-col:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
      }
      .stats-number {
        font-size: 1.5rem;
        font-weight: 800;
        color: #facc15; /* yellow-400 */
        line-height: 1.2;
      }
      .stats-label {
        font-size: 0.75rem;
        color: #d1d5db; /* gray-300 */
        margin-top: 4px;
        line-height: 1.25;
      }
      @media (min-width: 768px) {
        .stats-number {
          font-size: 1.875rem; /* text-3xl */
        }
        .stats-label {
          font-size: 0.875rem; /* text-sm */
        }
      }
      @media (max-width: 640px) {
        .stats-container {
          grid-template-columns: repeat(2, 1fr);
          gap: 16px 0;
        }
        .stats-col:not(:last-child) {
          border-right: none;
        }
        .stats-col:nth-child(odd) {
          border-right: 1px solid rgba(255, 255, 255, 0.15);
        }
        .stats-col:nth-child(1), .stats-col:nth-child(2) {
          border-bottom: 1px solid rgba(255, 255, 255, 0.15);
          padding-bottom: 12px;
        }
      }
      .split-card {
        display: flex;
        flex-direction: row;
        min-height: 145px;
        background: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
      }
      .split-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 30px 60px -12px rgba(15, 36, 64, 0.45), 0 10px 20px -5px rgba(15, 36, 64, 0.3) !important;
      }
      /* Tăng hiệu ứng dropshadow và nổi khối khi hover cho các thẻ Benefits */
      .rounded-2xl.border:hover {
        box-shadow: 0 30px 60px -12px rgba(15, 36, 64, 0.45), 0 10px 20px -5px rgba(15, 36, 64, 0.3) !important;
        transform: translateY(-4px);
      }
      .split-card.border-blue-200 {
        border: 1.5px solid #bfdbfe;
      }
      .split-card.border-green-200 {
        border: 1.5px solid #bbf7d0;
      }
      .split-card.border-orange-200 {
        border: 1.5px solid #fed7aa;
      }
      .split-card-info {
        flex: 1;
        padding: 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: #ffffff;
      }
      .split-card-stamp {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        padding: 8px;
      }
      .border-blue-200 .split-card-stamp {
        border-left: 1.5px solid #bfdbfe;
      }
      .border-green-200 .split-card-stamp {
        border-left: 1.5px solid #bbf7d0;
      }
      .border-orange-200 .split-card-stamp {
        border-left: 1.5px solid #fed7aa;
      }
      #scroll-to-top {
        position: fixed;
        bottom: 80px;
        right: 24px;
        z-index: 50;
        padding: 12px;
        background-color: #dc2626;
        color: #ffffff;
        border-radius: 9999px;
        border: none;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(100px);
        opacity: 0;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      #scroll-to-top.visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }
      #scroll-to-top:hover {
        background-color: #b91c1c;
      }
      #scroll-to-top.visible:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      }
      @media (min-width: 768px) {
        #scroll-to-top {
          bottom: 24px;
        }
      }
      /* Lệnh Zoom dành riêng cho ảnh Quy trình và Benefit */
.zoom-container {
    overflow: hidden;
    position: relative;
}

.zoom-container img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Khi di chuột vào ô chứa, ảnh bên trong sẽ phóng to */
.zoom-container:hover img {
    transform: scale(1.2) rotate(2deg) !important;
}
/* Tối ưu container chứa ảnh */
.split-card-stamp {
  padding: 0px !important; /* Bỏ khoảng trắng dư thừa xung quanh ảnh */
  overflow: hidden;
}

/* Hiệu ứng phóng to cực đại cho ảnh khi hover */
.split-card:hover .split-card-stamp img {
  transform: scale(1.1) rotate(-2deg) !important;
}

.split-card-stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Giúp ảnh lấp đầy toàn bộ ô vuông mà không bị méo */
  transition: transform 0.5s ease;
}

      /* --- TỐI ƯU HERO IMAGE: TO HƠN & MƯỢT HƠN --- */
.hero-image-wrapper {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); /* Đậm shadow cho sang */
    background: #000; /* Nền đen để lúc chuyển ảnh không bị lộ khoảng trắng */
    width: 540px; /* Chiều rộng cố định */
    height: 400px; /* Chiều cao cố định */
}

.hero-image-wrapper img {
    /* Quan trọng: Thêm opacity để làm mờ khi đổi ảnh */
    transition: transform 0.6s ease, opacity 0.8s ease-in-out !important;
    display: block;
    width: 100%;
    height: 100%; /* Cố định chiều cao để lấp đầy container */
    object-fit: cover;
}

/* Hiệu ứng Zoom khi di chuột */
.hero-image-wrapper:hover img {
    transform: scale(1.1); /* Phóng to 10% khi di chuột */
}

/* Tăng hiệu ứng dropshadow khi hover các card trong bảng giá */
#pricing .grid > div {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#pricing .grid > div:hover {
    box-shadow: 0 30px 60px -12px rgba(15, 36, 64, 0.45), 0 10px 20px -5px rgba(15, 36, 64, 0.3) !important;
}
      /* FAQ accordion content initial state */
      .faq-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
      }
      
      /* Custom Hero Background styles from otfiz8.atoms.world */
      .hero-bg-gradient {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 50%, #1e3a5f 100%);
        z-index: 1;
      }
      .hero-bg-image {
        position: absolute;
        inset: 0;
        background-image: url('https://khacdauanninh.com/image/hero-banner-stamp-engraving.webp');
        background-size: cover;
        background-position: center;
        opacity: 0.2;
        will-change: transform;
        transform: scale(1.1);
        z-index: 2;
      }
      .hero-bg-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(30, 58, 95, 0.6) 0%, rgba(30, 58, 95, 0) 50%, rgba(30, 58, 95, 0.3) 100%);
        z-index: 3;
      }
      .hero-content {
        position: relative;
        z-index: 10;
      }
      .mobile-action-bar {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        transform: translateY(calc(100% + env(safe-area-inset-bottom)));
        transition: transform 0.28s ease;
      }
      .mobile-action-bar.visible {
        transform: translateY(0);
      }
      .mobile-header {
        transition: transform 0.28s ease, box-shadow 0.28s ease;
      }
      @media (max-width: 1023px) {
        header {
          position: fixed;
          top: 0;
          left: 0;
          right: 0;
          z-index: 50;
        }
        #main-content {
          padding-top: 92px;
          padding-bottom: 96px;
        }
        #scroll-to-top {
          bottom: 96px;
        }
        .mobile-header {
          transform: translateY(-100%);
        }
        .mobile-header.visible {
          transform: translateY(0);
        }
      }
      /* Desktop: Sticky header */
      @media (min-width: 1024px) {
        header {
          position: fixed;
          top: 0;
          left: 0;
          right: 0;
          z-index: 50;
        }
        #main-content {
          padding-top: 86px;
        }
      }
      /* Lệnh cưỡng chế Zoom bằng ID - Không gì chặn được */
#an-ninh-zoom img {
    transition: transform 0.5s ease-in-out !important;
    transform: scale(1) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#an-ninh-zoom:hover img {
    transform: scale(1.2) !important; /* Phóng to 20% */
}

/* Áp dụng tương tự cho tất cả các khối có thuộc tính này */
[data-my-zoom] {
    overflow: hidden !important;
}
[data-my-zoom] img {
    transition: transform 0.5s ease-in-out !important;
}
[data-my-zoom]:hover img {
    transform: scale(1.2) !important;
}
/* Màu đặc trưng cho từng nút (mặc định) */
.social-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0.9; /* Độ trong suốt nhẹ khi không di chuột */
}
.social-btn.youtube { background-color: #FF0000; }
.social-btn.facebook { background-color: #1877F2; }
.social-btn.tiktok { background-color: #000000; }

/* Hiệu ứng khi di chuột vào (Scale to +10%) */
.social-btn:hover {
    transform: scale(1.3);
    opacity: 1; /* Hiện rõ màu khi di chuột vào */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* Hiệu ứng nhịp đập cho nút ĐẶT NGAY */
.btn-pulse {
    animation: pulse-red 2s infinite;
    transition: all 0.3s ease;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Hiệu ứng khi hover (di chuột vào) sẽ đứng yên và đổi màu đậm hơn */
.btn-pulse:hover {
    animation: none; /* Dừng nhịp đập khi di chuột vào */
    background-color: #991b1b !important; /* Đỏ đậm hơn */
    transform: scale(1.3);
}
/* Làm khối stats container sang hơn */
.stats-container {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95), rgba(45, 90, 142, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
}

/* Nổi bật dòng text chạy */
#live-order {
    transition: opacity 0.5s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Trạng thái ẩn mặc định */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trạng thái khi đã cuộn tới */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Tạo hiệu ứng hiện lần lượt từng thẻ một */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Các thẻ trong cùng 1 hàng sẽ hiện chậm dần để tạo sự tinh tế */
.grid > .reveal:nth-child(1) { transition-delay: 0.1s; }
.grid > .reveal:nth-child(2) { transition-delay: 0.2s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.3s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.4s; }
/* style.css */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* Bắt đầu từ thấp hơn một chút */
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); /* Đường cong mượt */
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Hiệu ứng trượt lên mượt mà */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Định nghĩa độ trễ cho từng vị trí để hiện lần lượt */
.grid-container > .reveal:nth-child(1) { transition-delay: 0.1s; }
.grid-container > .reveal:nth-child(2) { transition-delay: 0.2s; }
.grid-container > .reveal:nth-child(3) { transition-delay: 0.3s; }
.grid-container > .reveal:nth-child(4) { transition-delay: 0.4s; }
/* Chỉ cần định nghĩa class, ta sẽ dùng inline style để chỉnh delay cho chính xác 1.4s */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Hiệu ứng trượt lên + Làm mờ (Blur) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(2px); /* Bắt đầu bằng trạng thái mờ */
    transition: all 1s cubic-bezier(0.2, 0.3, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px); /* Kết thúc bằng trạng thái rõ nét */
}
/* Hiệu ứng lật thẻ bảng giá */
.reveal-flip {
    opacity: 0;
    transform: rotateX(-30deg);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-flip.active {
    opacity: 1;
    transform: rotateX(0deg);
}
.reveal, .reveal-flow, .reveal-flip {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto; /* Đảm bảo vẫn bấm được vào nút bên trong */
}
.reveal.active, .reveal-flow.active, .reveal-flip.active {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
}