/* ==========================================================================
   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;
    }

    /*-----------------------TUNG-MOBILE-----------------------*/
    .icon-img-fit {
        width: 28px !important;
        height: 28px !important;
        object-fit: contain;
    }

    .navbar_edit.navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .card_ribbon_edit { font-size: 15px !important; }	
        
    .produc_name_edit {
        font-weight: 700 !important;
        border-bottom: white 1px solid;
        padding-bottom:15px;
        padding-top:15px;
        font-size:30px;
    }

    .txt_mienphi {
        flex-basis: 100%;
        text-align: center;
        font-size: 16px !important;
        padding-top:10px !important;
        color:red !important;
    }

    .txt_data_co_ban { font-size: 20px !important; }
    .card_edit { padding-top: 30px !important; }
    .txt_soan_tin_edit { font-size:20px !important; }
    .data_edit { font-size:40px !important; }
    .price_edit { font-size:20px !important; }
    .tong_chu_ky_cuoc_edit { font-size:15px !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; }

.group-card {
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.group-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

.card-ribbon {
    z-index: 5;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.card-package-title {
    letter-spacing: 0.5px;
    font-weight: 800;
}

.card-data-box {
    background-color: #fcfcfc;
    border-color: #dee2e6 !important;
}

.box-main-title { font-weight: 700; }
.box-sub-title { font-size: 11px; }

.icon-wrapper-zone {
    min-height: 42px;
	flex-wrap: wrap; 
}

.icon-bubble {
    width: 36px;
    height: 36px;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.icon-bubble:hover {
    transform: scale(1.15);
    border-color: var(--theme-color-alt) !important;
}

.icon-img-fit {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.icon-empty-text { font-size: 12px; font-style: italic; }
.feature-list-lines { border-color: #f1f1f1 !important; }
.sms-guide-text { font-size: 14px; }

.btn-sms-action {
    background-color: var(--theme-color-alt) !important;
    border-color: var(--theme-color-alt) !important;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease !important;
}

.btn-sms-action:hover {
    background-color: var(--theme-color-hover) !important;
    border-color: var(--theme-color-hover) !important;
    transform: scale(1.02);
}

.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;
}

/* ===================================================
   GIAO DIỆN NÚT BẤM TAB & TAB CUỘN NGANG THẺ SẢN PHẨM
   =================================================== */
.nav-pills-custom .nav-link {
    color: #495057;
    background-color: #f8f9fa;
    border-radius: 50rem;
    padding: 10px 24px;
    margin: 5px 4px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.nav-pills-custom .nav-link:hover {
    background-color: #e2e6ea;
    color: var(--danger-color);
}

.nav-pills-custom .nav-link.active {
    color: #fff !important;
    background-color: var(--danger-color) !important;
    border-color: var(--danger-color) !important;
    box-shadow: 0 4px 10px rgba(var(--danger-color-rgb), 0.3);
}

.tab-scroll-mobile {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; 
    justify-content: flex-start !important; 
    padding-bottom: 10px; 
    scrollbar-width: none; 
}
.tab-scroll-mobile::-webkit-scrollbar { display: none; }
.tab-scroll-mobile .nav-item { white-space: nowrap; }

/* BỔ SUNG: TRÊN PC / MÀN LỚN THÌ TAB TRỞ LẠI CĂN GIỮA ĐẸP MẮT */
@media (min-width: 768px) {
    .tab-scroll-mobile {
        justify-content: center !important;
        overflow-x: visible;
        padding-bottom: 0;
    }
}

/* BỔ SUNG: CUỘN NGANG THẺ SẢN PHẨM TRÊN ĐIỆN THOẠI */
@media (max-width: 767.98px) {
    .row-scroll-mobile {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 15px; 
        scrollbar-width: none; 
        scroll-snap-type: x mandatory; 
    }
    
    .row-scroll-mobile::-webkit-scrollbar {
        display: none;
    }
    
    .row-scroll-mobile > [class*='col-'] {
        flex: 0 0 82% !important;
        max-width: 82% !important;
        scroll-snap-align: start;
    }
}

/* ==========================================================================
   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); 
    width: 24px;
    border-radius: 10px; 
}

.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-hover { transition: color 0.2s ease-in-out; }
.breadcrumb-hover:hover { color: var(--danger-color) !important; }
.breadcrumb-item + .breadcrumb-item::before {
    margin-top: 1px;
    color: #adb5bd; 
}

.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 (MỚI CẬP NHẬT)
   ========================================================================== */

.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%; }
}

/*--------------CSS TÙNG-------------------*/
.produc_name_edit {
	font-weight: 700 !important;
	border-bottom: white 1px solid;
	padding-bottom:15px;
}
.txt_mienphi {
	flex-basis: 100%;
    text-align: center;
	font-size: 14px !important;
	padding-top:10px !important;
}
.txt_data_co_ban { font-size: 14px !important; }
.price_edit { font-size: 20px; }
.data_edit { font-size: 30px; }
.card_edit { padding-top: 30px !important; }
.txt_soan_tin_edit { font-size: 17px ; }

/* GỘP CLASS CHO NÚT BẤM */
.btn_chitiet_edit, .btn_edit {
	width:100% !important;
	font-size:15px !important;
	text-align:center;
	margin-top:5px;	
}

.custom-pink-header {
    margin-top: -2.6rem !important;   
    margin-left: -1.5rem !important; 
    margin-right: -1.5rem !important;
	margin-bottom: 0.5rem !important;
    padding: 2.5rem 1.5rem 0.1rem 1.5rem; 
    background-color: var(--bg-pink-lighter); 
    border-top-left-radius: calc(var(--bs-card-inner-border-radius, 0.375rem) - 1px);
    border-top-right-radius: calc(var(--bs-card-inner-border-radius, 0.375rem) - 1px);
}

/* ==========================================================================
   CẤU HÌNH CHO Ô CHẴN - TÔNG MÀU XANH LÁ
   ========================================================================== */
.group-card.the-chan { border: 1px solid var(--green-color) !important; }
.group-card.the-chan .custom-pink-header { background-color: var(--green-bg-light) !important; }
.group-card.the-chan .card-ribbon { background-color: var(--green-color) !important; }
.group-card.the-chan .custom-pink-header h3,
.group-card.the-chan .custom-pink-header .text-danger {
    color: var(--green-color-dark) !important; 
}




