/* ====== 1. CẤU TRÚC CHUNG ====== */
.nt-box {
    border: none;
    padding: 30px;
    border-radius: 16px;
    background: #f8faff; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
}
.nt-box h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====== 2. GIAO DIỆN BẢNG GIÁ COMBO (3 CỘT) ====== */
.nt-pricing-table {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch; 
}

/* --- CẤU TRÚC THẺ (CARD) --- */
.nt-pricing-col {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.nt-pricing-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- PHẦN ĐẦU (HEADER) --- */
.nt-col-header {
    padding: 30px 20px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.nt-plan-name {
    font-size: 16px; 
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.nt-old-price {
    font-size: 15px;
    color: #b2bec3;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}
.nt-new-price {
    font-size: 34px; 
    font-weight: 800;
    color: #2d3436;
    line-height: 1.1;
    display: block;
}
.nt-save-label {
    background: #ffeaa7;
    color: #d35400;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
    text-transform: uppercase;
}

/* --- MÀU SẮC RIÊNG CHO TỪNG GÓI --- */

/* 1. GÓI CƠ BẢN (Màu Đen Nhẹ) */
.nt-pricing-col:nth-child(1) {
    border: 2px solid #2d3436; 
}
.nt-col-header.header-basic {
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
}
.nt-col-header.header-basic .nt-plan-name { color: #2d3436; }
/* Nút bấm gói cơ bản */
.nt-pricing-col:nth-child(1) .nt-select-btn {
    background: #2d3436; 
    color: #fff;
}

/* 2. GÓI TIẾT KIỆM (Màu Xanh Ngọc) */
.nt-pricing-col:nth-child(2) {
    border: 2px solid #00b894; 
}
.nt-col-header.header-saving {
    background: #f0fdf4; 
    border-bottom: 1px solid #d1f2e0;
}
.nt-col-header.header-saving .nt-plan-name { color: #00b894; }
.nt-col-header.header-saving .nt-new-price { color: #00b894; }
/* Nút bấm gói tiết kiệm */
.nt-pricing-col:nth-child(2) .nt-select-btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

/* 3. GÓI SIÊU TIẾT KIỆM (Màu Cam Đỏ) */
.nt-pricing-col.best-value {
    border: 2px solid #e74c3c; 
    z-index: 10;
}
.nt-pricing-col.best-value .nt-col-header {
    background: #fff5f5;
    border-bottom: 1px dashed #e74c3c;
}
.nt-pricing-col.best-value .nt-plan-name { color: #e74c3c; }
.nt-pricing-col.best-value .nt-new-price { color: #e74c3c; }
/* Nút bấm gói VIP */
.nt-pricing-col.best-value .nt-select-btn {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
}
.nt-badge-best {
    position: absolute; top: 0; right: 0;
    background: #e74c3c; color: #fff;
    padding: 5px 15px; font-size: 11px; font-weight: bold;
    border-bottom-left-radius: 12px; text-transform: uppercase;
}

/* --- PHẦN THÂN (LIST) --- */
.nt-col-body {
    padding: 20px;
    flex-grow: 1;
    background: #fff;
}
.nt-col-body ul {
    list-style: none; padding: 0; margin: 0;
}
.nt-col-body li {
    margin-bottom: 15px; 
    font-size: 16px;     
    color: #000000;      
    font-weight: 500;    
    display: flex;
    align-items: center;
}
/* Dấu tích xanh */
.nt-col-body li::before {
    content: "✓";
    display: inline-flex; justify-content: center; align-items: center;
    width: 24px; height: 24px; 
    background: #e3f9e5; color: #27ae60;
    border-radius: 50%; margin-right: 12px;
    font-size: 14px; font-weight: bold; flex-shrink: 0;
}
/* Dấu X xám */
.nt-col-body li.disabled { 
    color: #999; 
    text-decoration: line-through; 
}
.nt-col-body li.disabled::before {
    content: "✕"; background: #f1f2f6; color: #b2bec3;
    text-decoration: none;
}

/* --- PHẦN CHÂN (NÚT) --- */
.nt-col-footer {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f9f9f9;
}
.nt-select-btn {
    display: block; width: 100%; padding: 14px;
    border: none; border-radius: 50px;
    color: #fff; font-weight: 700; font-size: 16px; 
    cursor: pointer; text-transform: uppercase;
    transition: transform 0.2s;
}
.nt-select-btn:hover { transform: scale(1.03); opacity: 0.9; }

/* ====== 3. GIAO DIỆN NẠP TIỀN THƯỜNG ====== */
.nt-classic-table {
    width: 100%; border-collapse: collapse;
    margin-bottom: 20px; background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nt-classic-table thead th {
    background-color: #4169e1 !important; color: #ffffff !important;
    padding: 12px; text-align: center; font-weight: bold;
    border: 1px solid #ccc; text-transform: uppercase;
}
.nt-classic-table tbody td {
    padding: 12px; border: 1px solid #ddd;
    text-align: center; color: #333; font-size: 14px;
}

/* KHUNG QR CHIA 2 CỘT */
.nt-qr-box {
    display: flex; gap: 30px; margin-top: 20px;
    border-top: 1px dashed #ddd; padding-top: 20px;
    align-items: flex-start;
}
.nt-qr-img { flex: 0 0 220px; text-align: center; }
.nt-qr-img img {
    max-width: 100%; border: 1px solid #eee;
    padding: 5px; background: #fff; border-radius: 8px;
}
.nt-qr-info { flex: 1; }

.nt-table-info {
    width: 100%; border-collapse: collapse;
    border: 1px solid #ddd; background: #fff;
}
.nt-table-info th {
    width: 35%; background: #f9f9f9; padding: 10px 15px;
    border: 1px solid #ddd; text-align: left; color: #555;
    font-weight: bold; text-transform: uppercase; font-size: 13px;
}
.nt-table-info td {
    padding: 10px 15px; border: 1px solid #ddd;
    color: #333; font-weight: 600; text-align: left; font-size: 14px;
}
.nt-text-danger { color: #d63031; }
.nt-txn-code { color: #d63031; font-weight: 800; font-size: 16px; }

.nt-support {
    background: #fff3cd; color: #856404; padding: 12px;
    margin-top: 15px; border: 1px solid #ffeeba;
    text-align: center; font-weight: bold; border-radius: 6px;
}
.nt-return-button {
    display: inline-block; margin-top: 20px;
    background: #0984e3; color: #fff !important;
    padding: 12px 25px; text-decoration: none;
    border-radius: 5px; font-weight: bold;
    text-transform: uppercase; transition: 0.2s;
}
.nt-return-button:hover { background: #0069d9; }

.nt-smart-btn-placeholder { color: #636e72; font-style: italic; font-size: 14px; }
.nt-downloader-placeholder {
    margin-top: 15px; padding: 20px; border: 2px dashed #15aded;
    border-radius: 8px; background: #cce7d1; text-align: center; display: none;
}
.nap-btn {
    display: inline-block; padding: 10px 20px; background: #0984e3;
    color: #fff !important; border-radius: 6px; text-decoration: none;
    font-weight: bold; border:none; cursor: pointer; font-size: 14px;
}
.nap-btn:hover{background-color:#fb5a00 !important}
.nt-countdown-spinner-box svg { animation: spin 2s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nt-pricing-col.best-value { transform: none; margin-bottom: 20px; }
    .nt-pricing-col { max-width: 100%; margin-bottom: 20px; }
    .nt-qr-box { flex-direction: column; }
    .nt-qr-img { margin: 0 auto 15px; }
    .nt-table-info th, .nt-table-info td { font-size: 12px; padding: 8px; }
}

/* Căn chỉnh lại thẻ li để văn bản chảy đẹp hơn */
.nt-col-body li {
    display: block !important; /* Cho phép văn bản tự do chảy và xuống hàng */
    padding-left: 32px; /* Chừa chỗ cho dấu tích */
    position: relative;
    line-height: 1.6; /* Khoảng cách dòng chuẩn để không bị dính chữ */
    margin-bottom: 12px;
    text-align: left;
}

/* Cố định icon dấu tích xanh ở đầu dòng 1 */
.nt-col-body li::before {
    position: absolute;
    left: 0;
    top: 0; /* Luôn bắt đầu từ đỉnh của dòng chữ đầu tiên */
}

/* =========================================
   FIX LỖI NÚT ĐĂNG NHẬP (THEME MY LOGIN)
   Ngăn theme Flatsome làm nút bị trong suốt
   ========================================= */
.tml-submit-wrap input[type="submit"],
button.tml-button {
    background-color: #0073aa !important; /* Màu xanh dương chuẩn */
    color: #ffffff !important;            /* Chữ màu trắng */
    border: 1px solid #0073aa !important; /* Viền xanh */
    opacity: 1 !important;                /* Không được mờ/trong suốt */
    font-weight: bold !important;
    text-transform: uppercase;
    padding: 10px 30px !important;
    height: auto !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Hiệu ứng khi di chuột vào nút Đăng nhập */
.tml-submit-wrap input[type="submit"]:hover,
button.tml-button:hover {
    background-color: #005177 !important; /* Màu xanh đậm hơn */
    color: #fff !important;
    transform: translateY(-1px);
}

/* =================================================================
   POPUP MUA HÀNG VÃNG LAI (GUEST CHECKOUT) - BẢN FULL MODERN
   ================================================================= */

/* 1. KHUNG SƯỜN & HIỆU ỨNG (Giữ lại từ bản cũ để Popup hoạt động) */
.nt-modal {
    display: none; /* Mặc định ẩn */
    position: fixed; z-index: 99999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); /* Nền đen mờ */
    backdrop-filter: blur(4px); /* Làm mờ hậu cảnh */
}

/* Animation hiện ra */
@keyframes ntPopIn { 
    from {transform: scale(0.9); opacity:0;} 
    to {transform: scale(1); opacity:1;} 
}

.nt-close-modal {
    color: #95a5a6; position: absolute; right: 20px; top: 15px;
    font-size: 32px; font-weight: bold; cursor: pointer; z-index: 100; line-height: 1;
    transition: 0.2s;
}
.nt-close-modal:hover { color: #e74c3c; transform: rotate(90deg); }

/* 2. GIAO DIỆN HIỆN ĐẠI (Code mới) */

/* Khung nội dung chính */
.nt-modal-content.nt-modern-popup {
    background-color: #f8f9fa; /* Màu nền tổng thể sáng nhẹ */
    margin: 8vh auto; /* Cách top 8% */
    width: 95%; max-width: 850px; /* Độ rộng chuẩn */
    border-radius: 20px; /* Bo góc tròn trịa */
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: ntPopIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); /* Hiệu ứng nảy nhẹ */
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

/* Header Popup */
.nt-popup-header {
    text-align: center;
    padding: 35px 20px 10px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.nt-popup-header h3 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.nt-popup-header p {
    color: #718096;
    font-size: 15px;
    margin: 0;
}

/* Layout 2 Cột */
.nt-modal-actions {
    display: flex;
    padding: 30px 40px 50px;
    gap: 30px;
    background: #fff;
    align-items: stretch;
}

/* Thẻ Card (Cột) */
.nt-action-col {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex; 
    flex-direction: column;
}

/* Hiệu ứng Hover Card */
.nt-action-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* --- Style Riêng: Thành viên --- */
.nt-col-member:hover { border-top: 4px solid #3498db; }
.nt-col-member .nt-card-icon { background: #ebf8ff; color: #3182ce; }

/* --- Style Riêng: Mua Nhanh (Nổi bật) --- */
.nt-col-guest {
    border: 2px solid #fff5f5;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
/* Viền đỏ nhẹ làm điểm nhấn cho Guest */
.nt-col-guest { border-color: #fc8181; } 

.nt-col-guest:hover { 
    box-shadow: 0 15px 30px rgba(229, 62, 62, 0.15);
    transform: translateY(-5px);
}
.nt-col-guest .nt-card-icon { background: #fff5f5; color: #e53e3e; }

/* Icon Tròn */
.nt-card-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    transition: 0.3s;
}

/* Tiêu đề & Chữ */
.nt-action-col h4 {
    font-size: 18px; font-weight: 700; color: #2d3748; margin: 0 0 5px;
}
.nt-sub-text {
    font-size: 13px; color: #a0aec0; margin-bottom: 20px; font-style: italic;
}

/* Danh sách lợi ích */
.nt-benefit-list {
    list-style: none; padding: 0; margin: 0 0 25px; text-align: left; padding-left: 10px; flex-grow: 1;
}
.nt-benefit-list li {
    font-size: 14px; color: #4a5568; margin-bottom: 10px; position: relative; padding-left: 24px;
    line-height: 1.4;
}
.nt-benefit-list li::before {
    content: "✔"; color: #38a169; position: absolute; left: 0; font-weight: bold; font-size: 16px;
}

/* Badge "Nhanh nhất" */
.nt-badge-fast {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #e53e3e; color: #fff;
    padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(229, 62, 62, 0.3);
}

/* Nút bấm (Buttons) */
.nt-action-col button {
    width: 100%; padding: 14px;
    border-radius: 8px; font-weight: 700; font-size: 15px;
    cursor: pointer; transition: 0.2s; border: none; text-transform: uppercase;
    margin-top: auto; /* Đẩy nút xuống đáy */
}

/* Nút Đăng nhập */
.nt-btn-login-trigger {
    background: #edf2f7; color: #4a5568;
}
.nt-btn-login-trigger:hover { background: #cbd5e0; color: #2d3748; }

/* Nút Tiếp tục (Gradient đẹp) */
#nt-redirect-checkout {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}
#nt-redirect-checkout:hover {
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.6);
    transform: translateY(-2px);
}

/* Divider (Chữ HOẶC) */
.nt-divider-modern {
    display: flex; align-items: center; justify-content: center;
    position: relative; width: 40px; margin: 0 -15px; z-index: 10;
}
.nt-divider-modern span {
    background: #fff; color: #cbd5e0; font-weight: bold; font-size: 12px;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid #f7fafc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .nt-modal-actions { flex-direction: column; gap: 25px; padding: 20px 20px 30px; }
    .nt-divider-modern { display: none; }
    .nt-modern-popup { width: 92%; margin: 10vh auto; }
    .nt-popup-header h3 { font-size: 20px; }
    .nt-action-col { padding: 20px; }
}
/* =======================================================
   FIX LỖI KHÔNG CUỘN ĐƯỢC TRÊN MOBILE & TỐI ƯU HIỂN THỊ
   ======================================================= */

/* 1. Kích hoạt thanh cuộn cho toàn bộ màn hình mờ */
.nt-modal {
    overflow-y: auto !important; /* Bắt buộc hiện thanh cuộn nếu dài */
    -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iPhone */
    padding-bottom: 50px; /* Khoảng thở dưới cùng để không bị sát mép */
}

/* 2. Tinh chỉnh riêng cho Mobile để vừa vặn màn hình hơn */
@media (max-width: 768px) {
    /* Đẩy popup lên cao hơn và bỏ giới hạn chiều cao */
    .nt-modal-content.nt-modern-popup {
        margin: 30px auto !important; /* Cách top 30px thôi (cũ là 10vh ~ 80px) */
        width: 90% !important;
        height: auto !important;
        overflow: visible !important; /* Để bóng đổ không bị cắt */
    }

    /* Thu nhỏ Header */
    .nt-popup-header {
        padding: 15px 15px 5px !important;
    }
    .nt-popup-header h3 { font-size: 18px !important; margin-bottom: 2px !important; }
    .nt-popup-header p { font-size: 13px !important; }

    /* Thu nhỏ khoảng cách giữa 2 lựa chọn */
    .nt-modal-actions {
        padding: 10px 15px 20px !important;
        gap: 12px !important; /* Giảm khe hở giữa 2 ô */
    }

    /* Thu nhỏ từng ô (Card) */
    .nt-action-col {
        padding: 15px !important;
        min-height: auto !important; /* Bỏ chiều cao tối thiểu */
    }

    /* Thu nhỏ Icon cho gọn */
    .nt-card-icon {
        width: 45px !important; 
        height: 45px !important; 
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    /* Thu nhỏ chữ tiêu đề ô */
    .nt-action-col h4 { font-size: 16px !important; }
    .nt-sub-text { margin-bottom: 8px !important; font-size: 12px !important; }

    /* Thu gọn danh sách lợi ích */
    .nt-benefit-list { margin: 0 0 15px !important; }
    .nt-benefit-list li { 
        margin-bottom: 4px !important; 
        font-size: 13px !important; 
        line-height: 1.3 !important;
    }

    /* Nút đóng (X) nhỏ lại chút */
    .nt-close-modal {
        top: 10px !important;
        right: 15px !important;
        font-size: 28px !important;
    }
}
