/* ==========================================================================
   BẢNG MÀU CHỦ ĐẠO (CSS VARIABLES) - SỬA MÀU Ở ĐÂY SẼ ÁP DỤNG TOÀN WEB
   ========================================================================== */
:root {
    /* ==========================================================================
       1. MÀU THƯƠNG HIỆU CHÍNH (Tone Đỏ Viettel)
       ========================================================================== */
    --theme-color: #ee0033;         /* Linh hồn web: Viền menu con, icon menu, chấm slide active, thanh header ghim, nút chức năng chính */
    --theme-color-alt: #ee002d;     /* Vạch kẻ viền trái Banner, nền mặc định của nút Đăng ký SMS */
    --theme-color-dark: #c40000;    /* Đỏ sậm: Pha với theme-color tạo dải màu gradient sang trọng cho Menu Header */
    --theme-color-hover: #cc0026;   /* Kích hoạt khi hover vào nút Đăng ký SMS (tạo cảm giác nổi 3D) */
    --theme-color-mobile: #cc002b;  /* Nền đỏ đặc khối dành riêng cho menu xổ xuống trên Mobile */
	--theme-color-mobile-light: #b30019;   /* Đỏ vừa để làm dải màu mượt hơn nếu dùng Gradient */
    --theme-color-rgb: 238, 0, 51;  /* Mã RGB: Dùng để tạo lớp kính mờ (glassmorphism) cho Header và bóng đổ menu PC */
    --theme-color-dark-rgb: 196, 0, 0; /* Mã RGB: Đổ bóng cho thanh Menu Header khi cuộn trang */

    /* ==========================================================================
       2. MÀU NHẤN/ĐIỂM XUYẾT (Tone Vàng)
       ========================================================================== */
    --accent-color: #ffcc00;        /* Nổi bật trên nền đỏ: Viền dưới Menu, màu icon/chữ khi Active/Hover, gạch chân menu PC, thanh progress bar Banner */

    /* ==========================================================================
       3. MÀU CẢNH BÁO / ĐANG CHỌN (Tone Đỏ Bootstrap)
       ========================================================================== */
    --danger-color: #dc3545;        /* Chữ khi hover Breadcrumb, text giá tiền/cảnh báo, nền nút Tab đang chọn, số người xem (FOMO) */
    --danger-color-rgb: 220, 53, 69;/* Mã RGB: Tạo hiệu ứng bóng đổ tỏa sáng nhấp nháy (pulse) cho nút Copy cú pháp */

    /* ==========================================================================
       4. MÀU NỀN HỒNG NHẠT
       ========================================================================== */
    --bg-pink-light: #fff5f6;       /* Nền hover cho menu con trên PC, nền các dòng bảng thông số, nền trong cùng hộp "Cú pháp đăng ký" */
    --bg-pink-lighter: #ffe5e9;     /* Nền khối bo tròn (chứa tên gói cước) ở phần trên cùng của Thẻ sản phẩm */
    
    /* ==========================================================================
       5. MÀU XANH LÁ (Dành riêng cho Ô CHẴN)
       ========================================================================== */
    --green-color: #28a745;         /* Viền thẻ gói cước chẵn, nhãn dán (Ribbon Hot/Khuyên dùng), viền hộp thông báo FOMO */
    --green-color-dark: #198754;    /* Màu chữ tên gói cước và giá tiền bên trong khối header bo tròn của thẻ gói cước chẵn */
    --green-bg-light: #e8f5e9;      /* Màu nền xanh nhạt, thay thế nền hồng tại khối header bo tròn của thẻ gói cước chẵn */
}

/* ==========================================================================
   CẤU HÌNH HỆ THỐNG CỐT LÕI & NỀN TRANG
   ========================================================================== */
body {
    font-size: 16px;
    background-color: #f4f6f9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   THANH HEADER CHÍNH (VIETTEL PREMIUM + HIỆU ỨNG KÍNH MỜ)
   ========================================================================== */
.bg-viettel { border-bottom: 1px solid var(--accent-color) !important; }

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1050; 
    box-shadow: 0 6px 20px rgba(var(--theme-color-dark-rgb), 0.18) !important; 
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .bg-viettel {
        background: linear-gradient(135deg, rgba(var(--theme-color-rgb), 0.96) 0%, rgba(var(--theme-color-dark-rgb), 0.96) 100%) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@media (max-width: 991px) {
    .bg-viettel {
        background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* ==========================================================================
   CSS ĐỒNG BỘ GIAO DIỆN MENU CAO CẤP - CSS3 GPU ANIMATION
   ========================================================================== */
.offcanvas-body::-webkit-scrollbar { width: 0; display: none; }
.offcanvas-body { -ms-overflow-style: none; scrollbar-width: none; }
.dropdown-toggle::after { display: none !important; }

.menu-arrow, .menu-arrow-sub {
    font-size: 0.85em;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-nav .nav-link {
    color: #ffffff !important; 
    font-weight: 600;
    font-size: 14px;
    padding: 10px 10px !important;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.navbar-nav .dropdown-menu {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border: none;
    margin: 0;
    padding: 0;
}

/* --- GIAO DIỆN MÁY TÍNH (PC >= 992px) --- */
@media (min-width: 992px) {
    .navbar-nav > .nav-item > .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 2px;
        left: 50%;
        background-color: var(--accent-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .navbar-nav > .nav-item > .nav-link:hover,
    .navbar-nav > .nav-item > .nav-link.active {
        color: var(--accent-color) !important;
    }
    
    .navbar-nav > .nav-item > .nav-link:hover::after,
    .navbar-nav > .nav-item > .nav-link.active::after {
        width: 75%; 
    }

    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 110%; 
        left: 0;
        background-color: #ffffff;
        min-width: 240px; 
        padding: 0; 
        border-radius: 8px;
        border-top: 3px solid var(--theme-color); 
        box-shadow: 0 15px 40px rgba(var(--theme-color-rgb), 0.08); 
        z-index: 1000;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
	
    .navbar-nav .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -11px; 
        left: 25px; 
        border-width: 0 8px 8px 8px;
        border-style: solid;
        border-color: transparent transparent var(--theme-color) transparent;
    }

    .navbar-nav .dropdown:hover > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        top: 100%;
    }

    .dropdown-item {
        font-weight: 500;
        font-size: 14px;
        color: #444444 !important; 
        padding: 12px 20px !important; 
        border-bottom: 1px solid #f2f2f2; 
        transition: all 0.25s ease;
        display: block;
        position: relative; 
        text-transform: uppercase;
    }
	
    .dropdown-item:last-child {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }
	
    .dropdown-item .icon-sub {
        color: var(--theme-color);
        transition: all 0.25s ease;
        opacity: 0.7; 
    }
	
    .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background-color: var(--theme-color);
        transform: scaleY(0); 
        transition: transform 0.2s ease;
    }

    .dropdown-item:hover,
	.dropdown-item.active	{
        background-color: var(--bg-pink-light) !important; 
        color: var(--theme-color) !important;
        padding-left: 28px !important; 
    }

    .dropdown-item:hover::before { transform: scaleY(1); }
    .dropdown-item:hover .icon-sub { opacity: 1; }

    .dropdown-submenu { position: relative; }
    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 95%; 
    }
    .dropdown-submenu:hover > .dropdown-menu {
        left: 100%;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* --- GIAO DIỆN ĐIỆN THOẠI (Mobile < 992px) --- */
@media (max-width: 991px) {
	.offcanvas {
        width: 82vw !important;
        max-width: 320px !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.25) !important;
        
        /* MÀU NỀN TOÀN BỘ SLIDE MENU */
        background-color: var(--theme-color-mobile) !important;
        
        /* NỀN CHUYỂN MÀU GRADIENT TỪ TRÊN XUỐNG */
        /* background: linear-gradient(180deg, var(--theme-color-mobile-light) 0%, var(--theme-color-mobile) 100%) !important; */
    }
    
    .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        padding: 0 !important;
        height: 56px !important; 
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        text-transform: uppercase;
        overflow: hidden;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link.active-mobile {
        color: var(--accent-color) !important;
    }

	.navbar-nav .dropdown-menu {
		background-color: rgba(0, 0, 0, 0.15) !important; 
		position: static !important;
		float: none !important;
		border-radius: 0 !important;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
	}

    .navbar-nav .dropdown-menu.show-mobile {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-nav .dropdown-item {
        color: #ffffff !important;
        font-weight: 500;
        font-size: 14px;
        padding: 13px 15px !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        transition: color 0.2s ease, padding-left 0.3s ease;
        white-space: normal;
        text-transform: uppercase;
    }
    
    .dropdown-item .icon-sub { color: var(--accent-color); }

	.navbar-nav .dropdown-item:hover,
	.navbar-nav .dropdown-item:active,
	.navbar-nav .dropdown-item.active {
		background-color: transparent !important;
		color: var(--accent-color) !important;
		padding-left: 22px !important; 
	}
	
    .navbar-nav .menu-arrow,
    .navbar-nav .menu-arrow-sub {
        width: 60px !important;
        height: 100% !important; 
        display: flex !important;      
        align-items: center;           
        justify-content: center;       
        margin: 0 -10px 0 0 !important;
        padding: 0 !important;
    }
	
    .navbar-nav .menu-left-group {
        display: flex;
        align-items: center;
    }
    .navbar-nav .menu-icon-mobile {
        width: 28px; 
        text-align: left;
        flex-shrink: 0;
    }
    .navbar-nav .menu-text-mobile {
        white-space: normal;
    }
	
    .navbar-nav .nav-link.active i,
    .navbar-nav .nav-link:hover i,
    .navbar-nav .nav-link:focus i,
    .navbar-nav .nav-link[aria-expanded="true"] i,
    .dropdown-menu .dropdown-item.active i,
    .dropdown-menu .dropdown-item:hover i,
    .dropdown-menu .dropdown-item:focus i {
        color: inherit !important;
    }
}

/* ==========================================================================
   THANH TÌM KIẾM DẠNG DROPDOWN PANEL (TRƯỢT XUỐNG DƯỚI)
   ========================================================================== */
@media (min-width: 992px) {
    .search-dropdown-panel {
        position: absolute;
        top: 130%; 
        right: 0;
        width: 320px; 
        background-color: #ffffff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        border-top: 3px solid var(--accent-color); 
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1050;
    }

    .search-dropdown-panel::before {
        content: '';
        position: absolute;
        top: -10px;
        right: 15px;
        border-width: 0 10px 10px 10px;
        border-style: solid;
        border-color: transparent transparent var(--accent-color) transparent;
    }

    .search-dropdown-panel.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .search-dropdown-panel {
        display: block !important;
        position: relative;
        width: 100%;
        margin-top: 15px;
        margin-bottom: 20px;
        padding: 20px 0 10px 0;
        border-top: 1px dashed rgba(255, 255, 255, 0.4); 
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    #SearchForm {
        background-color: #ffffff; 
        border-radius: 50px; 
        padding: 4px; 
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); 
    }

    #SearchInput {
        background-color: transparent !important; 
        border: none !important;
        font-size: 16px !important; 
        padding-left: 15px;
        color: #333333 !important;
    }

    #SearchInput::placeholder { color: #999999 !important; }

    #SearchForm .btn {
        background-color: transparent !important; 
        color: var(--theme-color) !important; 
        border-radius: 50px !important; 
        padding: 0 20px !important;
        border: none !important;
        box-shadow: none !important; 
    }
	
    .navbar-nav #SearchTrigger { display: none !important; }
    
    .navbar-nav #SearchBox {
        width: 100% !important;
        padding: 15px 0 !important;
        display: block !important;
        position: static !important;
    }
}

/* ==========================================================================
   TRANG CHỦ (HOME PAGE STYLES)
   ========================================================================== */
.home-banner { border-left: 6px solid var(--theme-color-alt); }
.section-title { color: #333; }
.title-line { width: 60px; height: 3px; bottom: 0; }


.product-content-detail {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
}

.product-content-detail .lead {
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.product-content-detail h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--danger-color); 
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 12px;
}

.product-content-detail h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background-color: var(--danger-color);
    border-radius: 2px;
}

.product-content-detail ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}
.product-content-detail ul li {
    margin-bottom: 0.5rem;
    list-style-type: square; 
}

.product-content-detail .note-box {
    background-color: #fff3cd; 
    border-left: 4px solid var(--accent-color); 
    padding: 15px 20px;
    border-radius: 4px;
    margin: 1.5rem 0;
}
.product-content-detail .note-box p {
    margin: 0;
    color: #664d03;
    font-size: 0.95rem;
}

.product-content-detail table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}
.product-content-detail table th, 
.product-content-detail table td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

/* ==========================================================================
   KHUNG THÔNG BÁO NGƯỜI ĐĂNG KÝ (SOCIAL PROOF / FOMO)
   ========================================================================== */
.fomo-box { border-color: var(--green-color) !important; }
.fomo-text { font-size: 0.95rem; color: #0f5132; }
.fomo-text strong { color: #0a3622; }
.fomo-text strong.text-danger { color: var(--danger-color) !important; }

@keyframes pulseLive {
    0%   { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.live-dot {
    width: 12px;
    height: 12px;
    background-color: #79df9c; 
    border-radius: 50%;
    display: inline-block;
    animation: pulseLive 2s infinite;
}

/* ==========================================================================
   1. TRƯỢT NGANG TRÊN ĐIỆN THOẠI (Dùng chung cho TẤT CẢ các mục)
   ========================================================================== */
@media (max-width: 991px) {
    .mobile-horizontal-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important; 
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;  
        -ms-overflow-style: none !important;  
    }
    .mobile-horizontal-scroll::-webkit-scrollbar {
        display: none !important; 
    }
}

/* ==========================================================================
   2. TRƯỢT NGANG TRÊN MÁY TÍNH (Chỉ áp dụng cho mục nào CÓ MŨI TÊN)
   ========================================================================== */
@media (min-width: 992px) {
    .pc-horizontal-scroll {
        display: flex !important;
        flex-wrap: nowrap !important; /* Lệnh này ép không cho rớt hàng trên PC */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;  
        -ms-overflow-style: none !important; 
        cursor: grab; 
    }
    .pc-horizontal-scroll::-webkit-scrollbar {
        display: none !important; 
    }
    .pc-horizontal-scroll:active,
    .active-dragging {
        cursor: grabbing !important;
        user-select: none;
    }
}

/* ==========================================================================
   2. ÉP TỶ LỆ LỘ THẺ (VẪN GIỮ NGUYÊN PADDING GỐC CỦA BOOTSTRAP)
   ========================================================================== */
.scroll-snap-item {
    /*scroll-snap-align: start !important; 
    scroll-snap-stop: always !important;*/
    /*scroll-snap-stop: normal !important;*/
}

/* Trên Điện thoại (Mobile): Rộng 45% (Hiện 2 thẻ to đẹp + lộ thẻ 3) */
@media (max-width: 767px) {
    .custom-slider-col {
        flex: 0 0 45% !important; 
        width: 45% !important;
        max-width: 45% !important;
    }
}

/* Trên Tablet (iPad): Rộng 31% (Hiện 3 thẻ + lộ thẻ 4) */
@media (min-width: 768px) and (max-width: 991px) {
    .custom-slider-col {
        flex: 0 0 31% !important; 
        width: 31% !important;
        max-width: 31% !important;
    }
}

/* ==========================================================================
   3. KÉO THẢ CHUỘT TRÊN MÁY TÍNH (DRAG TO SCROLL)
   ========================================================================== */
.pc-horizontal-scroll {
    cursor: grab;
    /*scroll-snap-type: x mandatory;*/
}
.pc-horizontal-scroll:active,
.active-dragging {
    cursor: grabbing !important;
    user-select: none;
}

/* ==========================================================================
   4. TẮT HIỆU ỨNG TRỄ CỦA LAZYLOAD TRONG KHUNG TRƯỢT
   ========================================================================== */
.mobile-horizontal-scroll .lazy-card,
.mobile-horizontal-scroll .lazyload,
.mobile-horizontal-scroll img,
.pc-horizontal-scroll .lazy-card,
.pc-horizontal-scroll .lazyload,
.pc-horizontal-scroll img {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
}

/* ==========================================================================
   5. MENU 4 TAB DƯỚI CHÂN TRANG DI ĐỘNG (FIXED STICKY BOTTOM NAV)
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 9999; /* Luôn nổi lên trên cùng mọi thành phần */
    padding-bottom: env(safe-area-inset-bottom); /* Chống đè rãnh màn hình iPhone */
}

.nav-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b !important; 
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    width: 25%;
    height: 100%;
    transition: all 0.2s ease;
}

.nav-bottom-item .icon-nav {
    font-size: 18px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

/* Sáng đèn cho Tab khi cuộn đến vùng tương ứng */
.nav-bottom-item.active-nav {
    color: var(--theme-color, #ee002d) !important; 
}
.nav-bottom-item.active-nav .icon-nav {
    transform: translateY(-2px) scale(1.1); /* Nảy icon nhẹ lên cho sinh động */
}

.row-section-title {
    font-size: 18px;
    letter-spacing: 0.3px;
    border-left: 4px solid var(--theme-color, #ee002d);
    padding-left: 10px;
}

/* ==========================================================================
   6. DẤU CHẤM, MŨI TÊN, TAB PILLS
   ========================================================================== */
.custom-slider-dots { gap: 8px; }
.slider-dot { width: 8px; height: 8px; background-color: #e2e8f0; border-radius: 50%; transition: all 0.2s ease; }
.slider-dot.active { background-color: var(--theme-color); transform: scale(1.3); }

/* Nút mũi tên */
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: 1px solid #ddd; width: 40px; height: 40px; border-radius: 50%; z-index: 10; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.nav-arrow:hover { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }
.prev-arrow { left: -20px; }
.next-arrow { right: -20px; }

/* Nút Tab (Pills) tự động rớt dòng */
.nav-pills-custom { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nav-pills-custom .nav-item { margin: 0; flex: 0 0 auto; }
.nav-pills-custom .nav-link { width: 100%; color: #495057; background-color: #f8f9fa; border-radius: 50rem; padding: 8px 16px; font-weight: 600; font-size: 0.85rem; border: 1px solid #dee2e6; transition: all 0.3s ease; white-space: nowrap; display: flex; justify-content: center; align-items: center; }
.nav-pills-custom .nav-link:hover { background-color: #e2e6ea; color: var(--theme-color); }
.nav-pills-custom .nav-link.active { color: #ffffff !important; background-color: var(--theme-color) !important; border-color: var(--theme-color) !important; box-shadow: 0 4px 10px rgba(var(--theme-color-rgb), 0.3); }

@media (min-width: 768px) {
    .nav-pills-custom { gap: 12px; }
    .nav-pills-custom .nav-link { padding: 10px 24px; font-size: 0.95rem; }
}

/* Cuộn ngang các nút Tab (Pills) trên mobile */
.tab-scroll-mobile { display: flex; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; justify-content: flex-start !important; padding-bottom: 10px; }
.tab-scroll-mobile .nav-item { white-space: nowrap; }

@media (min-width: 768px) {
    .tab-scroll-mobile { justify-content: center !important; overflow-x: visible; padding-bottom: 0; }
}

/* ==========================================================================
   SECTION TITLE - TIÊU ĐỀ MỤC HOME
   ========================================================================== */
.section-title {
    font-size: 1.4rem;
    color: #1f2937;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 1.5rem; 
    letter-spacing: 0.2px;
}

/* Gạch chân dải màu Gradient (Đỏ sang Vàng) */
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; 
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color) 0%, var(--accent-color) 100%);
    border-radius: 50px; 
}


/* Tối ưu riêng cho Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.25rem; 
        padding-bottom: 12px;
        margin-bottom: 1.5rem;
    }
    .section-title::after {
        width: 70px; 
    }
}

/* ==========================================================================
   TÙY CHỈNH BANNER TRANG CHỦ (ZOOM + PROGRESS BAR)
   ========================================================================== */
.myHeroSlider {
    border-radius: 8px;
    overflow: hidden; 
}

.banner-img-custom {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 6s ease-in-out !important; 
    transform: scale(1); 
}

@media (max-width: 991px) {
    .banner-img-custom { height: 220px; }
}

/* BỔ SUNG: CĂN CHỈNH KÍCH THƯỚC BANNER CHO MOBILE */
@media (max-width: 768px) {
    .banner-img-custom {
        height: 100%; 
        min-height: 180px; 
        object-fit: cover; 
        border-radius: 4px; 
    }
}

.myHeroSlider .swiper-slide-active .banner-img-custom {
    transform: scale(1.05);
}

.myHeroSlider .swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.4); 
    height: 2px !important; 
    bottom: 0 !important; 
    top: auto !important; 
}

.myHeroSlider .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: var(--accent-color) !important; 
}

/* GỘP CLASS CHO BÀI VIẾT VÀ SẢN PHẨM */
.post-content img, .product-content img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain; 
    display: block; 
    margin: 10px auto; 
}
.post-content iframe, .product-content iframe {
    max-width: 100% !important;
}
.post-content p, .post-content span,
.product-content p, .product-content span {
    background-color: transparent !important;
}

/* ==========================================================================
   TIN KHUYẾN MẠI TRANG CHỦ (SWIPER CAROUSEL & HOVER)
   ========================================================================== */
.promo-section .swiper-pagination-bullet {
    background-color: #cccccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.promo-section .swiper-pagination-bullet-active {
    background-color: var(--theme-color); 
    transform: scale(1.3);
}

.promo-section .card-img-top {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.promo-section .card:hover .card-img-top {
    transform: scale(1.08); 
}

/* ==========================================================================
   Style cho thanh lọc nhanh PRODUCT
   ========================================================================== */
.btn-outline-secondary {
    border: 1px solid #dee2e6;
    color: #6c757d;
}
.btn-outline-secondary:hover {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}
.btn-outline-danger.active {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: #fff !important;
}

/* ==========================================================================
   TAB CÁC GÓI CƯỚC & GÓI LIÊN QUAN
   ========================================================================== */        
.tab-product-section .swiper-pagination-bullet {
    background-color: #cccccc;
    opacity: 1;
    transition: all 0.3s ease;
}
.tab-product-section .swiper-pagination-bullet-active,
.related-product-section .swiper-pagination-bullet-active {
    background-color: var(--theme-color) !important;
    width: 24px !important;
    border-radius: 10px !important;
}

.relatedSwiper .swiper-slide > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   TRANG TRÍ BẢNG THÔNG SỐ
   ========================================================================== */
.custom-table-wrapper {
    border-radius: 12px; 
    border: 1px solid #e9ecef;
}
.custom-beautiful-table th {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    background-color: #f8f9fa !important;
}
.custom-beautiful-table td {
    padding: 1rem 0.5rem; 
    border-color: #f1f3f5; 
}
.custom-beautiful-table tbody tr:hover td {
    background-color: var(--bg-pink-light) !important; 
    transition: background-color 0.2s ease;
}
.select-all {
    user-select: all; 
    -webkit-user-select: all;
}

/* ==========================================================================
   STYLE KHỐI SIDEBAR ĐĂNG KÝ SMS (PRODUCT DETAIL)
   ========================================================================== */
.sticky-sidebar-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease;
}
.fw-black { font-weight: 900; }
.syntax-box {
    background-color: var(--bg-pink-light); 
    border: 1px solid var(--bg-pink-lighter);
}
.border-dashed { border-style: dashed !important; }
.btn-copy-syntax {
    width: 32px; 
    height: 32px; 
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pulse {
    animation: pulse-danger-effect 2s infinite;
}
@keyframes pulse-danger-effect {
    0%   { box-shadow: 0 0 0 0 rgba(var(--danger-color-rgb), 0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(var(--danger-color-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--danger-color-rgb), 0); }
}

@media (max-width: 991.98px) {
    .mobile-sticky-register {
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        z-index: 1040;
        border-top: 1px solid #f1f3f5;
        transform: translateY(120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    }
    .mobile-sticky-register.show-on-scroll {
        transform: translateY(0); 
        opacity: 1;
        visibility: visible;
    }
}

.btn-register-sms {
    touch-action: manipulation; 
    -webkit-tap-highlight-color: transparent; 
    user-select: none; 
    -webkit-user-select: none;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.1s ease !important;
}
.btn-register-sms:active {
    transform: scale(0.94) !important; 
    filter: brightness(0.85); 
}

/* ==========================================================================
   THANH DANH MỤC & NỘI DUNG GIỚI THIỆU
   ========================================================================== */
/* ==========================================================================
   BREADCRUMB - GIAO DIỆN HIỆN ĐẠI
   ========================================================================== */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    font-size: 1rem; 
}

/* 1. Mũi tên ngăn cách */
.breadcrumb-item + .breadcrumb-item::before {
    content: "\f054"; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #adb5bd;
    font-size: 0.75rem;
    padding: 0 0.6rem;
    vertical-align: middle; 
}

/* 2. Link Trang chủ */
.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

.breadcrumb-item a i {
    transition: transform 0.2s ease;
}

/* 3. Hiệu ứng Hover */
.breadcrumb-item a:hover {
    color: var(--theme-color);
    text-decoration: none !important;
}

/* Hiệu ứng phóng to icon nhe nhẹ */
.breadcrumb-item a:hover i {
    transform: scale(1.15); 
}

/* Gạch chân phần chữ*/
.breadcrumb-item a:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* 4. Mục đang chọn (Trang hiện tại) */
.breadcrumb-item.active span {
    color: var(--theme-color-dark) !important; 
    font-weight: 700; 
}

.content-detail-web img {
    max-width: 100% !important; 
    height: auto !important;    
    display: block !important;  
    margin: 1.5rem auto !important; 
    border-radius: 8px;         
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}
.content-detail-web iframe {
    max-width: 100% !important;
    margin: 1rem auto !important;
    display: block !important;
}

/* =========================================
   GIAO DIỆN FOOTER
========================================= */
.footer-custom { font-family: system-ui, -apple-system, sans-serif; }
/*.footer-custom .text-viettel { color: var(--theme-color) !important; }*/
.footer-custom .bg-viettel { background-color: var(--theme-color) !important; }
.footer-logo { max-height: 50px; }
.footer-desc {
    font-size: 0.95rem;
    color: #b0b3b8;
    text-align: justify;
    line-height: 1.6;
}
.footer-heading { font-size: 1.05rem; letter-spacing: 0.5px; }
.footer-heading-line { width: 35px; height: 2px; bottom: 0; left: 0; }
.footer-info-text { font-size: 0.95rem; letter-spacing: 0.3px; }
.footer-list { font-size: 0.9rem; color: #b0b3b8; }
.footer-list-icon { width: 15px; font-size: 0.95rem; }
.footer-link { color: #b0b3b8; transition: all 0.2s ease; }
.footer-link:hover {
    color: var(--theme-color) !important;
    padding-left: 4px;
}
.footer-divider { border-color: rgba(255, 255, 255, 0.08); }
.footer-copyright { font-size: 0.825rem; color: #8a8d91; letter-spacing: 0.3px; }

/* =========================================
   NÚT BACK TO TOP HIỆN ĐẠI
========================================= */
.btn-backtotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff1a48 0%, var(--theme-color) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.4);
    z-index: 1030;
    cursor: pointer;
    text-align: center;
    line-height: 48px;
    font-size: 1.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-backtotop.show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}
.btn-backtotop:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 22px rgba(var(--theme-color-rgb), 0.6);
    background: linear-gradient(135deg, #ff335c 0%, #e6002f 100%);
    color: #ffffff;
}
.btn-backtotop:hover i { animation: bounceUp 0.8s infinite alternate; }
@keyframes bounceUp {
    0% { transform: translateY(2px); }
    100% { transform: translateY(-2px); }
}

/* =========================================
   GIAO DIỆN TRANG LỖI 404
========================================= */
.icon-404 { font-size: 6rem; opacity: 0.9; }
.text-404-title { color: var(--theme-color); letter-spacing: 5px; }
.text-404-desc { font-size: 1.05rem; }
.btn-404-home {
    background: linear-gradient(135deg, #ff1a48 0%, var(--theme-color) 100%);
    border: none;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-404-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--theme-color-rgb), 0.4) !important;
    color: #ffffff;
}

/* =========================================
   HIỆU ỨNG LAZY LOAD THẺ GÓI CƯỚC
========================================= */
.lazy-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; 
}

.lazy-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Vô hiệu hóa hiệu ứng ẩn thẻ nếu nó nằm trong bất kỳ slider SWIPER */
.swiper .lazy-card,
.swiper-wrapper .lazy-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Thẻ ở trang hỗ trợ nằm trong Row ngang, cần đảm bảo nó hiện đúng */
.lazy-card.card {
    display: flex !important;
}

/* =========================================================
   FIX LỖI Ô VUÔNG MỜ CỦA NÚT TẮT SWEETALERT2
   ========================================================= */
body .swal2-container .swal2-close:focus,
body .swal2-container .swal2-close:active,
body .swal2-container .swal2-close:hover,
body .swal2-container .swal2-close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}


/* ==========================================================================
   GIAO DIỆN KHỐI THÔNG SỐ & NÚT SMS CHI TIẾT SẢN PHẨM
   ========================================================================== */

.bg-danger-light  { background-color: rgba(238, 0, 51, 0.06) !important; }
.bg-primary-light { background-color: rgba(13, 110, 253, 0.06) !important; }
.bg-success-light { background-color: rgba(25, 135, 84, 0.06) !important; }

.spec-icon-circle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-label {
    font-size: 0.8rem !important;
}

.pkg-spec-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.pkg-spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.06) !important;
}

/* Khung cú pháp sạch sẽ, không màu nền đỏ thừa */
.pkg-syntax-clean {
    background-color: #fdfdfd !important;
    border: 1px solid #e9ecef !important;
}
.pkg-syntax-clean .select-all-text {
    user-select: all;
    background-color: rgba(238, 0, 51, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

/* NÚT BẤM SMS NÂNG CAO */
.quick-sms-btn {
    background: linear-gradient(90deg, var(--theme-color), #ff2a55) !important;
    border: none !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.quick-sms-btn:active {
    transform: scale(0.985) !important;
}
.quick-sms-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: quickSmsShine 3s infinite;
}
@keyframes quickSmsShine {
    0% { left: -100%; }
    18% { left: 200%; }
    100% { left: 200%; }
}

/* ==========================================================================
   TỐI ƯU ĐỘ NHẠY NÚT BẤM TRÊN MOBILE STICKY
   ========================================================================== */
.action-btn-mobile a {
    /* Ép trình duyệt bỏ qua độ trễ 300ms chờ double-tap zoom */
    touch-action: manipulation !important; 
    
    /* Ngăn chặn hiệu ứng viền đen chớp lên khi chạm trên Android */
    -webkit-tap-highlight-color: transparent !important; 
    
    /* Gợi ý cho trình duyệt đây là nút bấm thuần túy, tránh bẫy Hover của Safari */
    cursor: pointer !important;
}

/* ==========================================================================
   KHỐI 1: PHẦN GỢI Ý CHỌN GÓI CƯỚC THEO ĐỐI TƯỢNG (HOME SUGGEST)
   ========================================================================== */
.home-suggest-section {
    padding: 20px 0 40px 0;
}

/* --- Cột bên trái: Tiêu đề & Mẹo chọn gói --- */
.suggest-left-title {
    font-size: 28px;
    font-weight: 800;
    color: #2d3748;
    text-transform: uppercase;
    line-height: 1.4;
    position: relative;
    padding-left: 18px;
}
.suggest-left-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 80%;
    width: 6px;
    background: var(--theme-color);
    border-radius: 10px;
}

/* --- Cột bên phải: Các thẻ đối tượng dạng hộp nằm ngang --- */
.suggest-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 25px;
    margin-bottom: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    display: flex;
    align-items: flex-start; /* Ép icon luôn cố định ở đỉnh, không bị đẩy xuống khi chữ dài */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.suggest-card:hover {
    transform: translateX(10px);
    border-left: 4px solid var(--theme-color);
    box-shadow: 0 12px 25px rgba(var(--theme-color-rgb), 0.08);
}

/* Vòng tròn bọc icon của phần gợi ý đối tượng */
.suggest-icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(var(--theme-color-rgb), 0.08);
    color: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    margin-right: 20px;
    transition: all 0.3s ease;
}
.suggest-card:hover .suggest-icon-wrapper {
    background: var(--theme-color);
    color: #ffffff;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 15px rgba(var(--theme-color-rgb), 0.2);
}

.suggest-content h4 {
    font-size: 18px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 8px;
}

/* Xóa gạch chân mặc định của thẻ <a> chứa nhãn dán */
.suggest-content p a {
    text-decoration: none !important;
    display: inline-block;
}

/* Nhãn dán (Badge) làm nổi bật tên gói cước */
.suggest-badge {
    display: inline-block;
    background-color: var(--theme-color);
    color: #ffffff !important; /* Ép màu trắng để không bị ảnh hưởng bởi thẻ a */
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-right: 5px;
    box-shadow: 0 3px 6px rgba(var(--theme-color-rgb), 0.2);
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng chuyển động nảy mượt mà */
}

/* Hiệu ứng lướt chuột (Hover) - Nảy khối 3D và đậm màu hơn */
.suggest-content p a:hover .suggest-badge {
    background-color: var(--theme-color-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(var(--theme-color-rgb), 0.4);
}

/* Hiệu ứng khi bấm click (Active) - Lún xuống tạo cảm giác bấm vật lý */
.suggest-content p a:active .suggest-badge {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 4px rgba(var(--theme-color-rgb), 0.2);
    background-color: var(--theme-color-hover);
}


/* ==========================================================================
   KHỐI 2: PHẦN BANNER GIỮA TRANG CHỦ & ẢNH CAM KẾT DƯỚI CÙNG
   ========================================================================== */
.home-middle-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}
.home-middle-banner:hover {
    transform: scale(1.008);
}

.benefit-img-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
}
.benefit-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.benefit-img-container:hover img {
    transform: scale(1.02);
}


/* ==========================================================================
   KHỐI 3: PHẦN LÝ DO LỰA CHỌN & CAM KẾT UY TÍN (HOME BENEFIT)
   ========================================================================== */
.home-benefit-section {
    padding: 40px 0 60px 0;
}

.benefit-main-title {
    font-size: 26px;
    font-weight: 800;
    color: #2d3748;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Nâng cấp các dòng cam kết thành các khối Card độc lập để kết hợp với hiệu ứng lazy-card */
.benefit-row-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.benefit-row-item:last-of-type {
    margin-bottom: 0;
}

/* Hiệu ứng nảy khối 3D mượt mà đồng bộ chuyển động toàn website */
.benefit-row-item:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--theme-color-rgb), 0.2);
    box-shadow: 0 12px 25px rgba(var(--theme-color-rgb), 0.08);
}

/* Vòng tròn bọc icon của khối cam kết */
.benefit-icon-shield {
    width: 52px;
    height: 52px;
    background: rgba(var(--theme-color-rgb), 0.08);
    color: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    margin-right: 18px;
    transition: all 0.3s ease;
}
.benefit-row-item:hover .benefit-icon-shield {
    transform: scale(1.1);
    background: var(--theme-color);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(var(--theme-color-rgb), 0.2);
}

.benefit-item-text h4 {
    font-size: 16.5px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}
.benefit-item-text p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Khối hộp thông báo cam kết màu hồng nhạt dưới đáy cột */
.benefit-commit-alert {
    background: #fff5f6;
    border-left: 4px solid var(--theme-color);
    border-radius: 0 12px 12px 0;
    padding: 20px;
    margin-top: 25px;
}
.benefit-commit-alert h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.benefit-commit-alert p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   SECTION HƯỚNG DẪN SIM MỚI (HOME NEW SIM) - ĐÃ TỐI ƯU GIAO DIỆN & HIỆU ỨNG
   ========================================================================== */
.home-newsim-section {
    padding: 0px 0 0px 0;
}

.home-newsim-section .section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px !important;
}

/* --- HỘP GIẢI ĐÁP (Q&A) --- */
.sim-alert-box {
    background: #fffcfc; 
    border: 1px solid rgba(238, 0, 51, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sim-alert-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(238, 0, 51, 0.08);
}
.sim-alert-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(var(--theme-color-rgb), 0.25);
}

/* --- KHỐI THẺ 3 BƯỚC --- */
.sim-step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px 20px 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 15px; 
}
.sim-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--theme-color-rgb), 0.08);
    border-color: rgba(var(--theme-color-rgb), 0.15);
}
.sim-step-number {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--theme-color) 0%, #ff2a55 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(var(--theme-color-rgb), 0.3);
    border: 3px solid #ffffff;
}

/* ==========================================================================
   THIẾT KẾ BẢNG GÓI CƯỚC SIM MỚI (TABLE UI CAO CẤP)
   ========================================================================== */
.sim-table-wrapper {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden; /* Rất quan trọng để bo tròn được màu nền của Header */
    padding: 0; 
}

.sim-custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

/* ĐỔI MÀU HEADER SANG ĐỎ GRADIENT SANG TRỌNG */
.sim-custom-table thead th {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 14.5px;
    text-transform: uppercase;
    padding: 16px 20px;
    border: none;
    letter-spacing: 0.5px;
}

.sim-custom-table tbody tr {
    transition: background-color 0.3s ease;
}

.sim-custom-table tbody td {
    padding: 18px 20px;
    font-size: 14.5px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #4a5568;
    transition: background-color 0.2s ease;
}

/* Hiệu ứng sọc hàng xen kẽ (Zebra) nhẹ nhàng */
.sim-custom-table tbody tr:nth-child(even) td {
    background-color: #fafbfc;
}

/* Hiệu ứng Highlight đổi màu hồng mờ khi lướt chuột qua từng hàng (Trên PC) */
.sim-custom-table tbody tr:hover td {
    background-color: rgba(238, 0, 51, 0.03) !important;
}
.sim-custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Nút ĐĂNG KÝ trong bảng */
.btn-sim-reg {
    display: inline-block;
    background: linear-gradient(135deg, var(--theme-color) 0%, #d6002f 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 10px rgba(238, 0, 51, 0.25);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    letter-spacing: 0.5px;
}
.btn-sim-reg:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 15px rgba(238, 0, 51, 0.4);
    background: var(--theme-color-dark);
}

/* 1. Xóa gạch chân mặc định của thẻ a bọc ngoài */
.sim-custom-table tbody td:first-child a {
    text-decoration: none !important;
    display: inline-block;
}

/* 2. Kích hoạt thuộc tính chuyển động (Animation) cho cục Badge đỏ */
.sim-custom-table tbody td:first-child a .badge {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 6px rgba(238, 0, 51, 0.2);
}

/* 3. Lướt chuột (Hover) - Nảy khối 3D, phóng to nhẹ và đậm màu lên */
.sim-custom-table tbody td:first-child a:hover .badge {
    background-color: var(--theme-color-dark) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(238, 0, 51, 0.4);
}

/* 4. Khi bấm (Active) - Lún xuống tạo cảm giác vật lý */
.sim-custom-table tbody td:first-child a:active .badge {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 4px rgba(238, 0, 51, 0.2);
    background-color: var(--theme-color-hover) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE: BIẾN BẢNG THÀNH CÁC CARD 3D TRÊN ĐIỆN THOẠI
   ========================================================================== */
@media (max-width: 767px) {
    /* Chỉnh hộp cảnh báo trên ĐT */
    .sim-alert-box { padding: 18px; }
    .sim-alert-box h4 { font-size: 17.5px; }
    .sim-alert-box p { font-size: 14.5px; text-align: justify; }

    /* Hủy viền và nền của khung bọc bảng */
    .sim-table-wrapper {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }
    
    /* Ẩn Header Bảng */
    .sim-custom-table thead {
        display: none;
    }

    /* Biến các hàng (tr) thành Khối hộp Card 3D */
    .sim-custom-table tbody tr {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid rgba(0,0,0,0.04);
        box-shadow: 0 5px 18px rgba(0,0,0,0.04);
        margin-bottom: 20px;
        padding: 20px;
        position: relative; /* Dùng làm gốc tọa độ cho giá tiền */
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    /* Hiệu ứng nảy Card siêu xịn khi lướt (Touch/Hover) trên Mobile */
    .sim-custom-table tbody tr:hover,
    .sim-custom-table tbody tr:active {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(238, 0, 51, 0.1);
        border-color: rgba(238, 0, 51, 0.2);
    }

    /* Bỏ màu sọc xen kẽ trên điện thoại */
    .sim-custom-table tbody tr:nth-child(even) td,
    .sim-custom-table tbody tr:hover td {
        background-color: transparent !important;
    }

    /* Ô 1: Tên gói */
    .sim-custom-table tbody td:nth-child(1) {
        padding: 0 0 12px 0;
        border-bottom: none;
    }

    /* Ô 2: Giá tiền (Treo ở góc trên cùng bên phải) */
    .sim-custom-table tbody td:nth-child(2) {
        position: absolute;
        top: 22px;
        right: 20px;
        padding: 0;
        border-bottom: none;
        font-size: 18px !important;
    }

    /* Ô 3: Nội dung chi tiết (Nằm giữa, có nét đứt) */
    .sim-custom-table tbody td:nth-child(3) {
        padding: 12px 0;
        border-top: 1px dashed #cbd5e1;
        border-bottom: none;
    }

    /* Ô 4: Nút đăng ký (Kéo dài 100%) */
    .sim-custom-table tbody td:nth-child(4) {
        padding: 10px 0 0 0;
        border-bottom: none;
    }
    .sim-custom-table tbody td:nth-child(4) .btn-sim-reg {
        display: block;
        width: 100%;
        padding: 12px 0;
        font-size: 15px;
    }
}

/* Khối lưu ý cuối cùng */
.sim-note-box {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 5px solid #d97706;
    border-radius: 10px;
    padding: 18px 22px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* ==========================================================================
   SECTION HƯỚNG DẪN 4 CÁCH ĐĂNG KÝ (PRODUCT DETAIL GUIDE)
   ========================================================================== */
.pd-guide-wrapper {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    padding: 35px 30px;
    margin-top: 10px;
}

.pd-guide-title {
    font-size: 26px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.pd-guide-intro {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

/* Khung bọc hình ảnh */
.pd-guide-img-box {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}
.pd-guide-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pd-guide-img-box:hover img {
    transform: scale(1.02);
}

/* Các thẻ list cách đăng ký */
.pd-guide-step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 18px;
    border-radius: 16px;
    background: #fdfdfd;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pd-guide-step-item:last-child {
    margin-bottom: 0;
}
.pd-guide-step-item:hover {
    background: #ffffff;
    border-color: rgba(var(--theme-color-rgb), 0.2);
    box-shadow: 0 8px 20px rgba(var(--theme-color-rgb), 0.08);
    transform: translateX(8px); /* Trượt nhẹ sang phải */
}

/* Icon tròn */
.pd-guide-step-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: rgba(var(--theme-color-rgb), 0.08);
    color: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 18px;
    transition: all 0.3s ease;
}
.pd-guide-step-item:hover .pd-guide-step-icon {
    background: var(--theme-color);
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(var(--theme-color-rgb), 0.3);
    transform: scale(1.1);
}

.pd-guide-step-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}
.pd-guide-step-content p {
    font-size: 14.5px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .pd-guide-wrapper { padding: 25px 20px; }
    .pd-guide-title { font-size: 22px; }
    .pd-guide-step-item { padding: 15px; }
}

/* ==========================================================================
   PRODUCT_CARD - PREMIUM LIGHT UI
   ========================================================================== */
.unified-white-card {
    background: #ffffff !important;
    border-radius: 14px;
    border: 1px solid #e2e8f0 !important; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
    /* ĐỔ BÓNG SIÊU NỔI KHỐI */
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.08), 
                0 8px 12px -6px rgba(0, 0, 0, 0.04),
                0 0 1px 0 rgba(0, 0, 0, 0.15) !important;
                
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.3s ease;
}

/* Hiệu ứng nâng khối nhẹ nhàng khi di chuột vào (PC) */
.unified-white-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--theme-color-rgb), 0.35) !important;
    box-shadow: 0 22px 35px -5px rgba(0, 0, 0, 0.12), 
                0 12px 15px -5px rgba(0, 0, 0, 0.06) !important;
}

.unified-white-card .card-body {
    padding: 12px 14px 18px 14px !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column; 
}

/* 1. TÊN GÓI */
.unified-white-card h3.package-code-box { 
    margin: 0 !important; 
    padding: 0 !important;
    line-height: 0 !important;
    text-align: center;
}

.unified-white-card .badge-code-top {
    display: inline-block;
    padding: 6px 26px;
    font-size: 18px; 
    color: #000000 !important; 
    font-weight: 800 !important; 
    background-color: #f8fafc; 
    
    /* Viền 1px */
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    letter-spacing: 0.5px;
    
    margin-top: -1px !important;
    vertical-align: top;
    line-height: 1.2 !important;
    
    /* Bóng đổ nhẹ tạo độ nổi khối 3D mềm mại cho nhãn */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 2. TEXT DUNG LƯỢNG DATA */
.unified-white-card .theme-text-color { color: var(--theme-color) !important; }
.unified-white-card .data-main-val {
    font-size: 30px;
    font-weight: 700 !important;
    line-height: 1.2;
}

/* Chữ màu đen dính sát liền kề */
.unified-white-card .data-slash-text {
    font-size: 17px;
    color: #000000 !important;
    font-weight: 700 !important;
    margin-left: 0 !important;
}

/* =========================================================
   3. KHU VỰC ICON KHUYẾN MẠI (ĐÃ THÊM LẠI HIỆU ỨNG BONG BÓNG) 
   ========================================================= */
.unified-white-card .icon-zone-wrapper {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 12px;
}
.unified-white-card .txt-mienphi-label { font-size: 11px; color: #555555; letter-spacing: 0.5px; }
.unified-white-card .icon-zone { min-height: 34px; }

/* BONG BÓNG ICON CAO CẤP */
.unified-white-card .icon-bubble { 
    width: 32px; 
    height: 32px; 
    border-radius: 50% !important; 
    background-color: #ffffff !important; 
    border: 1px solid #e2e8f0 !important; 
    padding: 3px !important; 
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unified-white-card .icon-bubble:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08) !important;
}
.unified-white-card .icon-bubble img { width: 100%; height: 100%; object-fit: contain; }

.unified-white-card .data-circle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 32px;
    border-radius: 30px; 
    background-color: rgba(var(--theme-color-rgb), 0.08); 
    color: var(--theme-color); 
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(var(--theme-color-rgb), 0.2);
    letter-spacing: 0.5px;
}

/* 4. GIÁ TIỀN GÓI CƯỚC */
.unified-white-card .price-zone { color: #000000 !important; }
.unified-white-card .price-amount { font-size: 20px; }
.unified-white-card .price-cycle { font-size: 14px; }

/* 5. HỆ THỐNG NÚT BẤM (PC) */
.unified-white-card .btn-register-modern {
    background-color: var(--theme-color) !important;
    border: none !important;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), 0.22) !important;
    transition: all 0.2s ease;
}
.unified-white-card .btn-register-modern:hover {
    background-color: var(--theme-color-hover) !important;
    transform: scale(1.02);
    color: #ffffff !important;
}

.unified-white-card .btn-detail-modern {
    background: transparent !important;
    color: #4a5568 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.unified-white-card .btn-detail-modern:hover {
    border-color: var(--theme-color) !important;
    color: var(--theme-color) !important;
    background-color: rgba(var(--theme-color-rgb), 0.03) !important;
}

.unified-white-card .block-card-link { cursor: pointer; }

/* ==========================================================================
   TỐI ƯU GIAO DIỆN DI ĐỘNG (MOBILE VUỐT NGANG 43vw)
   ========================================================================== */
@media (max-width: 767px) {
    .scroll-snap-item { 
        flex: 0 0 43vw !important; 
        width: 43vw !important; 
        max-width: 43vw !important; 
    }
    
    .unified-white-card {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07) !important;
    }
    
    .unified-white-card .card-body { 
        padding: 10px 8px 14px 8px !important; 
    }
    
    /* Tên gói trên mobile mảnh */
    .unified-white-card .badge-code-top { 
        padding: 4px 16px; 
        font-size: 14px; 
        border-left: 1px solid #e2e8f0 !important;
        border-right: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .unified-white-card .data-main-val { font-size: 25px; }
    .unified-white-card .data-slash-text { font-size: 13px !important; } 
    
    .unified-white-card .price-amount { font-size: 15px; }
    .unified-white-card .price-cycle { font-size: 11px; }
    
    .unified-white-card .icon-zone-wrapper { min-height: 48px; } 
    
    /* Icon Bong Bóng trên Mobile */
    .unified-white-card .icon-bubble { 
        width: 26px; 
        height: 26px; 
        padding: 2px !important;
    } 

    .unified-white-card .data-circle-badge {
        height: 26px;
        padding: 0 12px;
        font-size: 11px;
    }
    
    .unified-white-card .btn-register-modern { 
        font-size: 12px; 
        padding: 6px 0 !important; 
        width: 82% !important; 
        margin: 0 auto;
    }
}
