/* ==========================================================================
   CNP ENHANCEMENTS V2.5 - DARK CINEMA EDITORIAL DESIGN SYSTEM
   Phong cách thiết kế: Tối giản, sang trọng, chuẩn điện ảnh (Netflix / Apple TV+)
   - Sửa triệt để lỗi z-index & độ tương phản trên trang chủ (#tab-home, #latest-movie-grid)
   - Sửa lỗi tràn lề trái menu Hẹn giờ trên Mobile (#lm-audio-view & #bottom-music-player)
   - Kệ "Tiếp Tục Thưởng Thức" & Thanh Phát Tiếp Ngay trong Modal chuẩn từng giây
   - Hệ thống Điểm Danh 7 Ngày + Nhiệm Vụ Nghe/Xem Đủ 30 Phút Mỗi Ngày
   - Bộ Chọn Mã Giảm Giá (Voucher Picker Modal) chuyên nghiệp tại Bước 4
   - Thanh Cảm Xúc 2x2 chuẩn bố cục & phân tách số liệu theo tác giả
   ========================================================================== */

:root {
    --cnp-surface-1: #121316;
    --cnp-surface-2: #181a1f;
    --cnp-surface-3: #20232a;
    --cnp-border-subtle: rgba(255, 255, 255, 0.09);
    --cnp-border-hover: rgba(255, 255, 255, 0.2);
    --cnp-text-primary: #ffffff;
    --cnp-text-secondary: #b4b8c2;
    --cnp-text-muted: #7e8594;
    --cnp-brand-red: #e50914;
    --cnp-brand-red-soft: rgba(229, 9, 20, 0.16);
    --cnp-vip-gold: #e5b842;
    --cnp-vip-gold-soft: rgba(229, 184, 66, 0.16);
    --cnp-radius-sm: 6px;
    --cnp-radius-md: 10px;
    --cnp-radius-lg: 14px;
}

/* Bảo vệ chống tràn ngang toàn diện trên màn hình điện thoại Mobile & iOS Safari */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.link-modal-overlay {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.link-modal-box {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Hiệu ứng rung cảnh báo khi bấm nút mà chưa nhập chữ */
@keyframes cnpShakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.cnp-input-error-shake {
    animation: cnpShakeError 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* ==========================================================================
   SỬA TRIỆT ĐỂ LỖI LỚP PHỦ Z-INDEX TRÊN TRANG CHỦ (#TAB-HOME & #LATEST-MOVIE-GRID)
   Đảm bảo toàn bộ thẻ phim Mới Nhất, Đang Xem Dở & Top 10 nổi trên ::before/::after
   ========================================================================== */
#latest-movie-grid,
.movie-category .movie-grid,
.movie-category .category-header,
#cnp-continue-watching-mount,
#cnp-top10-trending-mount,
.cnp-continue-shelf,
.cnp-top10-section {
    position: relative !important;
    z-index: 5 !important;
}

.movie-category .movie-card {
    position: relative;
    z-index: 6;
}

/* ==========================================================================
   MODULE 1.1: THANH NGANG BỘ ĐANG NGHE GẦN NHẤT TRÊN TRANG CHỦ & BANNER MODAL
   Thiết kế 1 thanh ngang gọn gàng hiển thị đầy đủ Ảnh + Tên + Phần + Mốc giây
   (Không có mục riêng "Bộ Nghe Gần Đây Nhất", không khung dọc, không nút xóa)
   ========================================================================== */
#cnp-continue-watching-mount {
    margin: 0 0 24px 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.cnp-recent-horizontal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(24, 26, 33, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52);
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.22s ease,
                background 0.22s ease,
                box-shadow 0.22s ease;
}

.cnp-recent-horizontal-bar:hover {
    transform: translateY(-2px);
    background: rgba(30, 33, 42, 0.96);
    border-color: rgba(229, 9, 20, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.68);
}

.cnp-rhb-thumb-wrap {
    position: relative;
    width: 54px;
    height: 70px;
    border-radius: 9px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cnp-rhb-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cnp-rhb-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cnp-rhb-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnp-rhb-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.3;
}

.cnp-rhb-part-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #f8fafc;
}

.cnp-rhb-part-tag i {
    color: #e50914;
    font-size: 12px;
}

.cnp-rhb-dot {
    color: #64748b;
}

.cnp-rhb-time {
    font-weight: 600;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.cnp-rhb-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 2px;
}

.cnp-rhb-progress-fill {
    height: 100%;
    background: #e50914;
    border-radius: 99px;
    transition: width 0.3s ease;
}

.cnp-rhb-action-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 99px;
    background: #e50914;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cnp-recent-horizontal-bar:hover .cnp-rhb-action-btn {
    background: #ff1420;
}

.cnp-continue-indicator {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(229, 9, 20, 0.16);
    border: 1px solid rgba(229, 9, 20, 0.38);
    color: #ff6b72;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Banner Phát Tiếp Ngay bên trong cửa sổ phim (#link-modal-overlay) */
.cnp-modal-resume-banner {
    margin: 0 0 14px 0;
    padding: 11px 14px;
    border-radius: var(--cnp-radius-md);
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.16) 0%, rgba(24, 26, 33, 0.95) 100%);
    border: 1px solid rgba(229, 9, 20, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cnp-modal-resume-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #f3f4f6;
    line-height: 1.4;
}

.cnp-modal-resume-info i {
    color: #ff6b72;
    font-size: 16px;
}

.cnp-modal-resume-btn {
    background: var(--cnp-brand-red);
    border: none;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 99px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.cnp-modal-resume-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   MODULE 1.2 & 1.3: SLEEP TIMER (HẸN GIỜ TẮT) & THANH CÔNG CỤ VIDEO NHANH
   Sửa triệt để lỗi tràn lề trái trên Mobile (Ảnh 2)
   ========================================================================== */
.cnp-sleep-timer-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cnp-sleep-btn {
    background: var(--cnp-surface-2);
    border: 1px solid var(--cnp-border-subtle);
    color: var(--cnp-text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--cnp-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cnp-sleep-btn:hover {
    color: var(--cnp-text-primary);
    border-color: var(--cnp-border-hover);
    background: var(--cnp-surface-3);
}

.cnp-sleep-btn.active {
    background: var(--cnp-vip-gold-soft);
    border-color: rgba(212, 168, 56, 0.45);
    color: var(--cnp-vip-gold);
}

.cnp-sleep-popover {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 215px;
    max-width: calc(100vw - 24px);
    background: #16181d;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--cnp-radius-md);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.88);
    padding: 8px;
    z-index: 100010;
    display: none;
}

.cnp-sleep-popover.open {
    display: block;
}

.cnp-sleep-popover.drop-down {
    bottom: auto;
    top: calc(100% + 8px);
}

.cnp-sleep-popover.align-left {
    left: 0 !important;
    right: auto !important;
}

.cnp-sleep-popover-head {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--cnp-text-secondary);
    padding: 6px 10px;
    border-bottom: 1px solid var(--cnp-border-subtle);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cnp-sleep-opt {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--cnp-text-primary);
    font-size: 13px;
    padding: 8px 10px;
    border-radius: var(--cnp-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease;
}

.cnp-sleep-opt:hover {
    background: var(--cnp-surface-3);
}

.cnp-sleep-opt.selected {
    color: var(--cnp-vip-gold);
    font-weight: 600;
    background: var(--cnp-vip-gold-soft);
}

/* Thanh điều khiển nhanh cho Video Player */
.cnp-video-quickbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--cnp-surface-1);
    border: 1px solid var(--cnp-border-subtle);
    border-radius: var(--cnp-radius-md);
}

.cnp-vq-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cnp-vq-btn {
    background: var(--cnp-surface-2);
    border: 1px solid var(--cnp-border-subtle);
    color: var(--cnp-text-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: var(--cnp-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
}

.cnp-vq-btn:hover {
    background: var(--cnp-surface-3);
    border-color: var(--cnp-border-hover);
}

.cnp-vq-btn.active {
    background: var(--cnp-brand-red-soft);
    border-color: rgba(229, 9, 20, 0.45);
    color: #ff6b72;
}

/* ==========================================================================
   MODULE 2: BIỂU CẢM (2X2 KHÔNG RỚT DÒNG - ẢNH 5), BÌNH LUẬN THẬT & ĐẠN MẠC
   ========================================================================== */
.cnp-reactions-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 14px;
    width: 100%;
}

.cnp-react-btn {
    background: var(--cnp-surface-2);
    border: 1px solid var(--cnp-border-subtle);
    border-radius: 8px;
    padding: 9px 11px;
    color: var(--cnp-text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 0;
}

.cnp-react-btn-left {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
}

.cnp-react-btn i {
    font-size: 13.5px;
    color: var(--cnp-text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.cnp-react-btn:hover {
    background: var(--cnp-surface-3);
    border-color: var(--cnp-border-hover);
    color: var(--cnp-text-primary);
}

.cnp-react-btn.reacted {
    background: var(--cnp-brand-red-soft);
    border-color: rgba(229, 9, 20, 0.5);
    color: var(--cnp-text-primary);
}

.cnp-react-btn.reacted i {
    color: var(--cnp-brand-red);
    transform: scale(1.12);
}

.cnp-react-count {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--cnp-text-primary);
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 7px;
    border-radius: 99px;
    flex-shrink: 0;
}

.cnp-react-btn.reacted .cnp-react-count {
    background: rgba(229, 9, 20, 0.28);
    color: #ffffff;
}

/* Khung Bình luận theo từng bộ phim */
.cnp-movie-comments-section {
    margin: 28px 0;
    padding: 22px;
    background: var(--cnp-surface-1);
    border: 1px solid var(--cnp-border-subtle);
    border-radius: var(--cnp-radius-lg);
}

.cnp-mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cnp-border-subtle);
    flex-wrap: wrap;
    gap: 10px;
}

.cnp-mc-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--cnp-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.cnp-mc-title i {
    color: var(--cnp-brand-red);
}

.cnp-mc-count-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--cnp-surface-3);
    color: var(--cnp-text-primary);
}

.cnp-mc-quicktags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cnp-mc-tag-chip {
    background: var(--cnp-surface-2);
    border: 1px solid var(--cnp-border-subtle);
    color: var(--cnp-text-secondary);
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cnp-mc-tag-chip:hover {
    color: var(--cnp-text-primary);
    border-color: var(--cnp-border-hover);
    background: var(--cnp-surface-3);
}

.cnp-mc-form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.cnp-mc-input {
    flex: 1;
    background: var(--cnp-surface-2);
    border: 1px solid var(--cnp-border-subtle);
    border-radius: var(--cnp-radius-sm);
    color: var(--cnp-text-primary);
    font-size: 13.5px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cnp-mc-input:focus {
    border-color: rgba(255, 255, 255, 0.32);
}

.cnp-mc-submit-btn {
    background: var(--cnp-brand-red);
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 0 18px;
    border-radius: var(--cnp-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.cnp-mc-submit-btn:hover {
    opacity: 0.9;
}

.cnp-mc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.cnp-mc-list::-webkit-scrollbar {
    width: 5px;
}

.cnp-mc-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 3px;
}

.cnp-mc-empty {
    padding: 24px 16px;
    border-radius: var(--cnp-radius-md);
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    text-align: center;
    color: var(--cnp-text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
}

.cnp-mc-empty i {
    display: block;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

.cnp-mc-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: var(--cnp-surface-2);
    border: 1px solid var(--cnp-border-subtle);
    border-radius: var(--cnp-radius-md);
}

.cnp-mc-item.is-vip-comment {
    border-color: rgba(212, 168, 56, 0.32);
    background: linear-gradient(180deg, rgba(212, 168, 56, 0.06) 0%, var(--cnp-surface-2) 100%);
}

.cnp-mc-item.is-admin-comment {
    border-color: rgba(229, 9, 20, 0.38);
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.08) 0%, var(--cnp-surface-2) 100%);
}

.cnp-mc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cnp-surface-3);
    border: 1px solid var(--cnp-border-hover);
    color: var(--cnp-text-primary);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.cnp-mc-item.is-vip-comment .cnp-mc-avatar {
    border-color: var(--cnp-vip-gold);
    color: var(--cnp-vip-gold);
}

.cnp-mc-avatar.is-admin-avatar,
.cnp-mc-reply-avatar.is-admin-avatar {
    background: rgba(229, 9, 20, 0.16);
    border-color: rgba(229, 9, 20, 0.65);
    color: #ff4d4f;
}

.cnp-mc-body {
    flex: 1;
    min-width: 0;
}

.cnp-mc-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cnp-mc-username {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cnp-text-primary);
}

.cnp-mc-item.is-vip-comment .cnp-mc-username {
    color: var(--cnp-vip-gold);
}

.cnp-mc-badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 5px;
    background: rgba(229, 9, 20, 0.18);
    color: #ff5c61;
    border: 1px solid rgba(229, 9, 20, 0.48);
}

.cnp-mc-badge-admin i {
    font-size: 10px;
}

.cnp-mc-badge-vip {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--cnp-vip-gold-soft);
    color: var(--cnp-vip-gold);
    border: 1px solid rgba(212, 168, 56, 0.35);
}

.cnp-mc-badge-rank {
    font-size: 10.5px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cnp-text-secondary);
}

.cnp-mc-time {
    font-size: 11px;
    color: var(--cnp-text-muted);
    margin-left: auto;
}

.cnp-mc-content-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.cnp-mc-text {
    font-size: 13.5px;
    color: #e5e7eb;
    line-height: 1.5;
    word-break: break-word;
    flex: 1;
}

.cnp-mc-like-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cnp-text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.cnp-mc-like-btn:hover {
    background: rgba(229, 9, 20, 0.14);
    color: #fca5a5;
    border-color: rgba(229, 9, 20, 0.35);
}

.cnp-mc-like-btn.liked {
    background: rgba(229, 9, 20, 0.2);
    color: #ff6b72;
    border-color: rgba(229, 9, 20, 0.5);
}

.cnp-mc-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.cnp-mc-reply-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cnp-text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.cnp-mc-reply-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.cnp-mc-reply-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: cnpFadeIn 0.2s ease-out;
}

.cnp-mc-reply-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--cnp-text-secondary);
    margin-bottom: 6px;
}

.cnp-mc-reply-box-header span b {
    color: #60a5fa;
}

.cnp-mc-reply-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cnp-mc-reply-input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--cnp-text-primary);
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
    transition: all 0.2s ease;
}

.cnp-mc-reply-input:focus {
    border-color: rgba(229, 9, 20, 0.65);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

.cnp-mc-reply-send-btn {
    background: var(--cnp-brand-red);
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: opacity 0.18s;
}

.cnp-mc-reply-send-btn:hover {
    opacity: 0.9;
}

.cnp-mc-reply-cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--cnp-text-muted);
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s;
}

.cnp-mc-reply-cancel-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Danh sách phản hồi nối tiếp (Nested Replies List) */
.cnp-mc-replies-list {
    margin-top: 10px;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cnp-mc-reply-item {
    display: flex;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.15s ease;
}

.cnp-mc-reply-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.cnp-mc-reply-item.is-vip-comment {
    border-color: rgba(212, 168, 56, 0.22);
    background: linear-gradient(180deg, rgba(212, 168, 56, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.cnp-mc-reply-item.is-admin-comment {
    border-color: rgba(229, 9, 20, 0.34);
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.cnp-mc-reply-item.is-admin-comment:hover {
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.cnp-mc-reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cnp-surface-3);
    border: 1px solid var(--cnp-border-hover);
    color: var(--cnp-text-primary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.cnp-mc-reply-item.is-vip-comment .cnp-mc-reply-avatar {
    border-color: var(--cnp-vip-gold);
    color: var(--cnp-vip-gold);
}

.cnp-mc-reply-body {
    flex: 1;
    min-width: 0;
}

.cnp-mc-mention {
    color: #60a5fa;
    font-weight: 600;
    font-size: 12px;
    margin-right: 4px;
    background: rgba(96, 165, 250, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
}

.cnp-mc-mention.is-admin-mention {
    color: #ff6b6f;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.cnp-mc-reply-text {
    font-size: 13px;
    color: #e5e7eb;
    line-height: 1.45;
    word-break: break-word;
    margin-top: 3px;
}

.cnp-mc-reply-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cnp-mc-reply-actions .cnp-mc-like-btn,
.cnp-mc-reply-actions .cnp-mc-reply-toggle-btn {
    font-size: 10.5px;
    padding: 2px 8px;
}

/* Lớp Đạn Mạc (Danmaku) trên khung Video */
.lm-video-player-wrapper {
    position: relative;
}

.cnp-danmaku-layer {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 32%;
    overflow: hidden;
    pointer-events: none;
    z-index: 8;
}

.cnp-danmaku-item {
    position: absolute;
    right: -100%;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
    padding: 2px 8px;
    border-radius: 4px;
    animation: cnpDanmakuFly 9s linear forwards;
    will-change: transform;
}

.cnp-danmaku-item.is-vip {
    color: #f5d061;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 168, 56, 0.35);
}

@keyframes cnpDanmakuFly {
    0% {
        transform: translate3d(100%, 0, 0);
        right: 0;
    }
    100% {
        transform: translate3d(-120vw, 0, 0);
        right: 100%;
    }
}

/* ==========================================================================
   MODULE 3: BẢNG XẾP HẠNG TOP 10 THỊNH HÀNH, TỦ PHIM & BỘ LỌC NHANH
   ========================================================================== */
.cnp-top10-section {
    margin: 28px 0;
    padding: 22px;
    background: rgba(18, 19, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--cnp-radius-lg);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cnp-top10-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.cnp-top10-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cnp-top10-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.cnp-top10-tabs {
    display: flex;
    background: var(--cnp-surface-2);
    padding: 3px;
    border-radius: var(--cnp-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    gap: 4px;
}

.cnp-top10-tab {
    background: transparent;
    border: none;
    color: #d1d5db;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cnp-top10-tab:hover {
    color: #ffffff;
}

.cnp-top10-tab.active {
    background: var(--cnp-brand-red);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.cnp-top10-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 2px 10px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.cnp-top10-row::-webkit-scrollbar {
    height: 5px;
}

.cnp-top10-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.cnp-top10-card {
    flex: 0 0 185px;
    background: #1b1d24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--cnp-radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cnp-top10-card:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 184, 66, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.cnp-top10-poster-wrap {
    position: relative;
    width: 100%;
    height: 235px;
    background: #0d0e11;
    overflow: hidden;
}

.cnp-top10-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cnp-top10-card:hover .cnp-top10-poster {
    transform: scale(1.04);
}

.cnp-top10-rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: var(--cnp-radius-sm);
    background: rgba(18, 19, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cnp-top10-rank-badge.rank-1 {
    background: var(--cnp-brand-red);
    border-color: var(--cnp-brand-red);
    color: #ffffff;
}

.cnp-top10-rank-badge.rank-2 {
    background: #2b2f3a;
    border-color: var(--cnp-vip-gold);
    color: var(--cnp-vip-gold);
}

.cnp-top10-rank-badge.rank-3 {
    background: #252830;
    border-color: #d97706;
    color: #fbbf24;
}

.cnp-top10-media-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(12, 13, 16, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cnp-top10-info {
    padding: 10px 12px;
}

.cnp-top10-movie-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.cnp-top10-metric {
    font-size: 11.5px;
    color: #d1d5db !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Thanh Bộ Lọc Nhanh (Quick Filter Pills) */
.cnp-quick-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px 0;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.cnp-quick-filter-bar::-webkit-scrollbar {
    height: 0;
}

.cnp-qf-pill {
    background: var(--cnp-surface-2);
    border: 1px solid var(--cnp-border-subtle);
    color: var(--cnp-text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
}

.cnp-qf-pill:hover {
    color: var(--cnp-text-primary);
    border-color: var(--cnp-border-hover);
    background: var(--cnp-surface-3);
}

.cnp-qf-pill.active {
    background: var(--cnp-text-primary);
    color: #0b0b0c;
    border-color: var(--cnp-text-primary);
}

/* Nút Lưu Phim (Bookmark) trong Modal */
.lm-stat-btn.bookmarked i {
    color: var(--cnp-vip-gold);
}

/* ==========================================================================
   MODULE 4: ĐIỂM DANH 7 NGÀY & NHIỆM VỤ NGHE 30 PHÚT (GIAO DIỆN SỰ KIỆN VIP FESTIVAL)
   Màu VÀNG hoàng kim cao cấp, tuyệt đối không đỏ, khoảng cách header đồng đều 100%
   ========================================================================== */

/* 1. Chuẩn hóa thanh công cụ Header Right đồng đều 16px, loại bỏ mọi margin lệch */
#header .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

#header .header-right > *,
#header .header-no-ads-wrapper,
#header .header-no-ads-btn,
#header .cnp-header-checkin-btn,
#header .notification-wrapper,
#header #header-crown-status,
#header #menu-btn {
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
}

#header .header-no-ads-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
}

/* Nút Lịch Điểm Danh Sự Kiện - Màu VÀNG Hoàng Kim (#f5c518), Tuyệt Đối Không Đỏ */
#header .cnp-header-checkin-btn {
    position: relative !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(245, 197, 24, 0.12) !important;
    border: 1px solid rgba(245, 197, 24, 0.45) !important;
    color: #f5c518 !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 8px rgba(245, 197, 24, 0.15) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#header .cnp-header-checkin-btn i {
    color: #f5c518 !important;
    font-size: 15px !important;
}

#header .cnp-header-checkin-btn:hover {
    background: rgba(245, 197, 24, 0.22) !important;
    border-color: #f5c518 !important;
    color: #fef08a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(245, 197, 24, 0.35) !important;
}

/* Chấm thông báo trên nút Điểm danh - Màu VÀNG, Tuyệt Đối Không Đỏ */
#header .cnp-checkin-dot {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: #f5c518 !important;
    border: 2px solid #0b0b0c !important;
    box-shadow: 0 0 6px rgba(245, 197, 24, 0.9) !important;
}

#header .notification-wrapper {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

#header .notification-wrapper > i {
    font-size: 23px !important;
}

/* Đảm bảo bảng Tắt Quảng Cáo và Chuông Thông Báo hiển thị mượt mà không bao giờ bị đơ/khựng */
.header-no-ads-panel {
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s !important;
}
.header-no-ads-panel.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.notif-panel {
    background: #11141c !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s !important;
}
.notif-panel.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.notif-panel .notif-header {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.notif-panel .notif-body {
    max-height: 380px !important;
    overflow-y: auto !important;
}

#header #header-crown-status {
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 23px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#header #header-crown-status[style*="display: none"],
#header #header-crown-status[style*="display:none"] {
    display: none !important;
}

#header #header-crown-status.is-visible {
    display: inline-flex !important;
}

/* Màu sắc chính xác chuẩn theo từng cấp bậc VIP của người dùng */
#header #header-crown-status.crown-bronze,
#header #header-crown-status.crown-bronze-max {
    color: #cd7f32 !important;
    filter: drop-shadow(0 0 6px rgba(205, 127, 50, 0.75)) !important;
}
#header #header-crown-status.crown-silver,
#header #header-crown-status.crown-silver-max {
    color: #e2e8f0 !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85)) !important;
}
#header #header-crown-status.crown-gold,
#header #header-crown-status.crown-gold-max {
    color: #ffd700 !important;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)) !important;
    animation: pulseGold 2s infinite !important;
}
#header #header-crown-status.crown-diamond,
#header #header-crown-status.crown-diamond-max {
    color: #00f2ff !important;
    filter: drop-shadow(0 0 12px rgba(0, 242, 255, 0.95)) !important;
    animation: pulseGlow 1.5s infinite alternate !important;
}
#header #header-crown-status.crown-ruby,
#header #header-crown-status.crown-ruby-max,
#header #header-crown-status.crown-red {
    color: #ff0055 !important;
    filter: drop-shadow(0 0 14px rgba(255, 0, 85, 0.95)) !important;
    animation: redCrownGlow 2s infinite alternate !important;
}

#header #menu-btn {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 23px !important;
    cursor: pointer !important;
}

@media (max-width: 768px) {
    header#header {
        padding: calc(13px + env(safe-area-inset-top, 0px)) 16px 13px 16px !important;
        min-height: 62px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    #header .header-left {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        gap: 10px !important;
    }
    #header .logo-forge-wrapper {
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    #header .custom-img-logo {
        width: 32px !important;
        height: 32px !important;
    }
    #header .logo-text {
        font-size: 20px !important;
        font-weight: 800 !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
    }
    #header .header-right {
        gap: 11px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
    #header .header-no-ads-btn,
    #header .cnp-header-checkin-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
    }
    #header .cnp-header-checkin-btn i {
        font-size: 15px !important;
    }
    #header .notification-wrapper,
    #header #header-crown-status,
    #header #menu-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 21px !important;
    }
    #header .notification-wrapper > i {
        font-size: 21px !important;
    }
}

@media (max-width: 480px) {
    header#header {
        padding: calc(11px + env(safe-area-inset-top, 0px)) 12px 11px 12px !important;
        min-height: 58px !important;
    }
    #header .header-left {
        gap: 8px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    #header .logo-forge-wrapper {
        width: 36px !important;
        height: 36px !important;
    }
    #header .custom-img-logo {
        width: 30px !important;
        height: 30px !important;
    }
    #header .logo-text {
        font-size: 18px !important;
        font-weight: 800 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    #header .header-right {
        gap: 8px !important;
    }
    #header .header-no-ads-btn,
    #header .cnp-header-checkin-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14.5px !important;
    }
    #header .cnp-header-checkin-btn i {
        font-size: 14.5px !important;
    }
    #header .notification-wrapper,
    #header #header-crown-status,
    #header #menu-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }
    #header .notification-wrapper > i {
        font-size: 20px !important;
    }
    .hero-content h1.hero-main-title {
        font-size: 1.62rem !important;
        line-height: 1.3 !important;
        margin: 0 0 12px 0 !important;
    }
    .hero-content p.hero-description {
        font-size: 0.94rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 380px) {
    header#header {
        padding: calc(10px + env(safe-area-inset-top, 0px)) 8px 10px 8px !important;
        min-height: 56px !important;
    }
    #header .header-left {
        gap: 6px !important;
    }
    #header .logo-forge-wrapper {
        width: 34px !important;
        height: 34px !important;
    }
    #header .custom-img-logo {
        width: 28px !important;
        height: 28px !important;
    }
    #header .logo-text {
        font-size: 16.5px !important;
    }
    #header .header-right {
        gap: 6px !important;
    }
    #header .header-no-ads-btn,
    #header .cnp-header-checkin-btn {
        width: 33px !important;
        height: 33px !important;
        font-size: 14px !important;
    }
    #header .cnp-header-checkin-btn i {
        font-size: 14px !important;
    }
    #header .notification-wrapper,
    #header #header-crown-status,
    #header #menu-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 19px !important;
    }
    #header .notification-wrapper > i {
        font-size: 19px !important;
    }
}

/* Overlay mượt mà với hiệu ứng mờ kính & tắt/mở không bao giờ bị khựng */
.cnp-checkin-modal-overlay,
.cnp-voucher-picker-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 10, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 100025;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, visibility;
}

.cnp-voucher-picker-modal-overlay {
    z-index: 100030;
}

.cnp-checkin-modal-overlay.show,
.cnp-voucher-picker-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cnp-checkin-modal-box {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: 86vh;
    max-height: calc(86dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 22px;
    padding: 18px 18px 15px 18px;
    box-sizing: border-box;
    background-color: #0b0f19;
    border: 1px solid rgba(245, 197, 24, 0.45);
    border-top: 1px solid rgba(255, 235, 160, 0.75);
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(245, 197, 24, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: scale(0.95) translateY(12px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.cnp-checkin-modal-box::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Background image - gentle blur, vivid presence */
.cnp-checkin-modal-box::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background-image: url('https://i.postimg.cc/FsD8c8LY/CNP-VIP-event-background.png'), url('/assets/cnp-vip-event-bg.png');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    opacity: 0.65;
    filter: blur(2.5px);
    transform: scale(1.03);
    z-index: 0;
    pointer-events: none;
}

/* Soft dark gradient to make text razor-sharp without drowning the image */
.cnp-checkin-modal-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.40) 0%, rgba(6, 8, 14, 0.58) 50%, rgba(4, 5, 10, 0.76) 100%);
    z-index: 1;
    pointer-events: none;
}

.cnp-checkin-modal-box > * {
    position: relative;
    z-index: 2;
}

.cnp-checkin-modal-overlay.show .cnp-checkin-modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cnp-checkin-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 10;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-checkin-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

/* Header Sự Kiện Festival */
.cnp-event-hero-head {
    padding-right: 36px;
    margin-bottom: 12px;
}

.cnp-event-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 99px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.25), rgba(217, 119, 6, 0.3));
    border: 1px solid rgba(245, 197, 24, 0.55);
    border-top: 1px solid rgba(255, 235, 160, 0.75);
    color: #fef08a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.2);
    backdrop-filter: blur(8px);
}

.cnp-event-ribbon i {
    color: #f5c518;
    font-size: 10px;
}

.cnp-event-main-title {
    margin: 0 0 5px 0;
    font-size: 16.5px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cnp-event-subtitle {
    margin: 0;
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Khung Nhiệm Vụ 30 Phút - iOS Glass Card */
.cnp-daily-mission-card {
    position: relative;
    margin: 0 0 11px 0;
    padding: 12px 14px;
    border-radius: 15px;
    background: rgba(14, 18, 28, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-daily-mission-card.completed {
    border-color: rgba(16, 185, 129, 0.5);
    border-top-color: rgba(52, 211, 153, 0.65);
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 185, 129, 0.15);
}

.cnp-mission-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.cnp-mission-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cnp-mission-title i {
    color: #f5c518;
    font-size: 15px;
    filter: drop-shadow(0 0 6px rgba(245, 197, 24, 0.6));
}

.cnp-daily-mission-card.completed .cnp-mission-title i {
    color: #10b981;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.cnp-mission-time-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(245, 197, 24, 0.14);
    color: #fef08a;
    border: 1px solid rgba(245, 197, 24, 0.35);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.cnp-daily-mission-card.completed .cnp-mission-time-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.45);
}

.cnp-mission-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 9px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cnp-mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d97706, #f5c518);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.6);
    transition: width 0.35s ease;
}

.cnp-daily-mission-card.completed .cnp-mission-progress-fill {
    background: linear-gradient(90deg, #059669, #10b981);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.cnp-mission-sub {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
}

/* Khung Hành Trình Sự Kiện - iOS Glass Card */
.cnp-event-milestones-box {
    background: rgba(14, 18, 28, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 11px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.cnp-event-milestones-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.cnp-event-milestones-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 7px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cnp-event-milestones-title i {
    color: #f5c518;
}

.cnp-event-milestones-pill {
    font-size: 11px;
    font-weight: 700;
    color: #fef08a;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.3);
    padding: 3px 10px;
    border-radius: 99px;
    backdrop-filter: blur(8px);
}

/* Lưới 6 Ngày Đầu Tiên (1 -> 6) */
.cnp-event-days-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 5px !important;
    margin-bottom: 10px !important;
}

.cnp-event-day-cell {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 7px 2px 6px 2px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-event-day-cell.claimed {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
    border-top-color: rgba(52, 211, 153, 0.6);
}

.cnp-event-day-cell.today-active {
    background: rgba(245, 197, 24, 0.2);
    border-color: rgba(245, 197, 24, 0.65);
    border-top-color: rgba(255, 235, 150, 0.85);
    box-shadow: 0 0 14px rgba(245, 197, 24, 0.3);
    transform: translateY(-2px);
}

.cnp-event-day-label {
    font-size: 10px;
    font-weight: 700;
    color: #e2e8f0;
}

.cnp-event-day-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.cnp-event-day-cell.claimed .cnp-event-day-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

.cnp-event-day-cell.today-active .cnp-event-day-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.7);
}

.cnp-event-day-sub {
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
}

.cnp-event-day-cell.claimed .cnp-event-day-sub {
    color: #34d399;
}

.cnp-event-day-cell.today-active .cnp-event-day-sub {
    color: #fef08a;
    font-weight: 700;
}

/* Thẻ Mốc Ngày 7 - Grand Reward Card (VIP Event Pass phong cách iOS) */
.cnp-event-grand-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.18) 0%, rgba(217, 119, 6, 0.24) 100%);
    border: 1px solid rgba(245, 197, 24, 0.45);
    border-top: 1px solid rgba(255, 235, 150, 0.65);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.cnp-event-grand-card.claimed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.24) 100%);
    border-color: rgba(16, 185, 129, 0.5);
    border-top-color: rgba(52, 211, 153, 0.65);
}

.cnp-event-grand-card.ready {
    border-color: #f5c518;
    border-top-color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 197, 24, 0.3);
}

.cnp-event-grand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cnp-event-grand-tagline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cnp-event-grand-card.claimed .cnp-event-grand-tagline {
    color: #a7f3d0;
}

.cnp-event-grand-badge-wrap {
    flex-shrink: 0;
}

.cnp-grand-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
}

.cnp-grand-tag.claimed {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
}

.cnp-grand-tag.ready {
    background: #f5c518;
    border: 1px solid #f5c518;
    color: #111318;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.6);
}

.cnp-grand-tag.locked {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
}

.cnp-event-grand-body {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cnp-event-grand-emblem {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.cnp-grand-voucher-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.22s ease;
}

.cnp-event-grand-card:hover .cnp-grand-voucher-img {
    transform: scale(1.08);
}

.cnp-event-grand-card.claimed .cnp-event-grand-emblem {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    border-top-color: rgba(52, 211, 153, 0.7);
    color: #34d399;
}

.cnp-event-grand-text {
    min-width: 0;
    flex: 1 1 auto;
}

.cnp-event-grand-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2px 0;
    line-height: 1.3;
    word-break: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cnp-event-grand-desc {
    font-size: 10.5px;
    color: #cbd5e1;
    line-height: 1.35;
    word-break: break-word;
}

/* Trạng Thái Chân Hộp Thoại */
.cnp-checkin-status-bar {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cnp-checkin-status-bar.completed {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-top: 1px solid rgba(52, 211, 153, 0.55);
    color: #34d399;
}

.cnp-checkin-status-bar.in-progress {
    background: rgba(245, 197, 24, 0.14);
    border: 1px solid rgba(245, 197, 24, 0.35);
    border-top: 1px solid rgba(255, 235, 150, 0.55);
    color: #fef08a;
}

.cnp-checkin-status-bar.cooldown {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-top: 1px solid rgba(255, 215, 140, 0.5);
    color: #fde68a;
}

.cnp-checkin-status-bar.login-prompt {
    background: #f5c518;
    border: none;
    color: #111318;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
    transition: all 0.2s ease;
}

.cnp-checkin-status-bar.login-prompt:hover {
    background: #eab308;
    transform: translateY(-1px);
}

/* Nút Đóng Bảng Sự Kiện phong cách iOS Capsule */
.cnp-event-close-btn {
    width: 100%;
    margin-top: 9px;
    padding: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-event-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Ví Mã Giảm Giá trong Modal Điểm Danh */
.cnp-voucher-wallet-box {
    position: relative;
    z-index: 1;
    margin: 0 0 12px 0;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(14, 18, 28, 0.55);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(12px);
}

.cnp-voucher-wallet-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #a7f3d0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cnp-voucher-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 11px;
    background: rgba(18, 24, 38, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.35);
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.cnp-voucher-ticket:hover {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(22, 30, 48, 0.9);
}

.cnp-voucher-ticket:last-child {
    margin-bottom: 0;
}

.cnp-voucher-ticket-media {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnp-voucher-mini-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.cnp-voucher-ticket-body {
    flex: 1;
    min-width: 0;
}

.cnp-voucher-code-text {
    font-family: monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cnp-voucher-sub-text {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

.cnp-voucher-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cnp-voucher-btn-use {
    border: none;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    background: #10b981;
    color: #ffffff;
    transition: background 0.18s ease;
}

.cnp-voucher-btn-use:hover {
    background: #059669;
}

.cnp-cooldown-banner {
    position: relative;
    z-index: 1;
    margin: 0 0 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fde68a;
    font-size: 12px;
    line-height: 1.45;
}

/* Nút Đóng tối giản */
.cnp-checkin-close-bottom-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cnp-checkin-close-bottom-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.cnp-checkin-action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.cnp-checkin-action-btn.mission-pending {
    background: linear-gradient(135deg, #262a36, #1b1e28);
    border: 1px solid rgba(245, 197, 24, 0.35);
    color: #fde68a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.cnp-checkin-action-btn:disabled {
    background: rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    box-shadow: none;
    cursor: default;
}

/* ==========================================================================
   MODULE 5: BỘ CHỌN MÃ GIẢM GIÁ TẠI BƯỚC 4 (#TAB-PREMIUM)
   Mượt mà 60fps, tối giản, mở lên biết ngay có mã giảm giá hay không
   ========================================================================== */
.cnp-step4-voucher-box {
    margin: 0 0 14px 0;
    padding: 12px 15px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(245, 197, 24, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(245, 197, 24, 0.28);
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-step4-voucher-box.has-applied {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(16, 185, 129, 0.45);
}

.cnp-step4-selector-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cnp-step4-selector-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.cnp-step4-ticket-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(245, 197, 24, 0.15);
    border: 1px solid rgba(245, 197, 24, 0.35);
    color: #f5c518;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cnp-step4-ticket-preview {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.cnp-step4-voucher-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
    transition: transform 0.22s ease;
}

.cnp-step4-voucher-box:hover .cnp-step4-voucher-img {
    transform: scale(1.08);
}

.cnp-pvc-tag-green {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.cnp-pvc-tag-gray {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cnp-step4-selector-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.cnp-step4-selector-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.cnp-step4-voucher-box.has-applied .cnp-step4-selector-sub {
    color: #6ee7b7;
    font-weight: 600;
}

.cnp-step4-selector-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cnp-step4-open-picker-btn {
    background: linear-gradient(135deg, #f5c518, #e5990c);
    color: #0b0b0c;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.25);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease, box-shadow 0.2s ease;
}

.cnp-step4-open-picker-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 197, 24, 0.36);
}

.cnp-step4-open-picker-btn:active {
    transform: translateY(0);
}

.cnp-voucher-remove-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cnp-voucher-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

/* Hộp thoại kiểm tra / chọn Mã Giảm Giá chuẩn .global-modal-box mượt mà */
.cnp-voucher-picker-box {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #181b22 0%, #101216 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    padding: 32px 26px 26px 26px;
    position: relative;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9),
                0 0 0 1px rgba(255, 255, 255, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(0.92) translateY(16px);
    opacity: 0;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    box-sizing: border-box;
}

.cnp-voucher-picker-modal-overlay.show .cnp-voucher-picker-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cnp-vp-hero-badge {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnp-vp-hero-voucher-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(245, 197, 24, 0.4));
    animation: cnpVoucherFloat 3s ease-in-out infinite alternate;
}

@keyframes cnpVoucherFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-4px) rotate(1.5deg); }
}

.cnp-vp-no-voucher-showcase {
    position: relative;
    display: inline-block;
    margin: 0 auto 16px auto;
}

.cnp-vp-preview-voucher-img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)) grayscale(25%) opacity(0.85);
    transition: all 0.3s ease;
}

.cnp-vp-lock-pill {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(245, 197, 24, 0.45);
    color: #fef08a;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cnp-vp-modal-title {
    position: relative;
    z-index: 1;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.cnp-vp-modal-desc {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.cnp-vp-tickets-list {
    position: relative;
    z-index: 1;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 2px;
    scrollbar-width: thin;
}

.cnp-vp-ticket-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.08) 0%, rgba(18, 22, 32, 0.88) 100%);
    border: 1px solid rgba(245, 197, 24, 0.28);
    border-top: 1px solid rgba(255, 235, 160, 0.45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    margin-bottom: 10px;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-vp-ticket-card:hover {
    border-color: rgba(245, 197, 24, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cnp-vp-ticket-card.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(14, 20, 28, 0.92) 100%);
    border-color: rgba(16, 185, 129, 0.55);
    border-top-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
}

.cnp-vp-ticket-art {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnp-vp-ticket-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

.cnp-vp-info {
    flex: 1;
    min-width: 0;
}

.cnp-vp-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.3;
}

.cnp-vp-code {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: #fef08a;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cnp-vp-ticket-card.selected .cnp-vp-code {
    color: #34d399;
}

.cnp-vp-sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.cnp-vp-btn-wrap {
    flex-shrink: 0;
}

.cnp-vp-apply-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 99px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-vp-apply-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.cnp-vp-no-voucher-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    margin-top: 6px;
}

.cnp-vp-goto-event-btn {
    width: 100%;
    max-width: 270px;
    background: linear-gradient(135deg, #f5c518, #d97706);
    color: #111318;
    border: none;
    border-radius: 99px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.35);
    transition: all 0.22s ease;
}

.cnp-vp-goto-event-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.45);
}

.cnp-vp-close-pill-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-vp-close-pill-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE MOBILE & SỬA LỖI TRÀN KHUNG HÌNH TRÊN ĐIỆN THOẠI (ẢNH 2, 3, 5)
   ========================================================================== */
@media (max-width: 768px) {
    .cnp-top10-section,
    .cnp-movie-comments-section {
        padding: 14px;
    }
    .cnp-checkin-modal-box {
        width: calc(100% - 24px) !important;
        max-width: 440px !important;
        max-height: 90vh !important;
        padding: 22px 20px 18px 20px !important;
        margin: auto !important;
        border-radius: 22px !important;
    }
    .cnp-voucher-picker-box {
        padding: 22px 20px 18px 20px;
        border-radius: 22px;
    }
    .cnp-streak-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .cnp-event-days-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    .cnp-event-day-cell {
        padding: 8px 3px 7px 3px !important;
        border-radius: 10px !important;
        gap: 4px !important;
    }
    .cnp-event-day-label {
        font-size: 11px !important;
    }
    .cnp-event-day-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
    }
    .cnp-event-day-sub {
        font-size: 9.5px !important;
    }
    .cnp-day7-grand-ticket,
    .cnp-event-grand-card {
        padding: 12px 14px !important;
        border-radius: 14px !important;
        gap: 12px !important;
    }
    .cnp-event-hero-head {
        padding-right: 36px !important;
        margin-bottom: 12px !important;
    }
    .cnp-event-ribbon {
        font-size: 11px !important;
        padding: 4px 12px !important;
        margin-bottom: 6px !important;
    }
    .cnp-event-main-title {
        font-size: 19px !important;
        font-weight: 800 !important;
        margin-bottom: 6px !important;
    }
    .cnp-event-subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    .cnp-daily-mission-card {
        padding: 13px 15px !important;
        margin-bottom: 12px !important;
    }
    .cnp-mission-title {
        font-size: 13.5px !important;
    }
    .cnp-mission-time-badge {
        font-size: 12px !important;
        padding: 3px 10px !important;
    }
    .cnp-event-milestones-box {
        padding: 13px 15px !important;
        margin-bottom: 12px !important;
    }
    .cnp-event-milestones-title {
        font-size: 13.5px !important;
    }
    .cnp-event-milestones-pill {
        font-size: 12px !important;
        padding: 3px 10px !important;
    }
    .cnp-checkin-status-bar {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
    .cnp-event-close-btn {
        padding: 12px !important;
        font-size: 13.5px !important;
        margin-top: 10px !important;
    }
    .cnp-step4-ticket-preview {
        width: 44px !important;
        height: 44px !important;
    }
    .cnp-vp-ticket-card {
        padding: 12px 14px !important;
        gap: 12px !important;
    }
    .cnp-vp-ticket-art {
        width: 50px !important;
        height: 50px !important;
    }
    .cnp-vp-title {
        font-size: 14px !important;
    }
    .cnp-vp-code {
        font-size: 12px !important;
    }
    .cnp-vp-sub {
        font-size: 11px !important;
    }
    .cnp-vp-apply-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    .cnp-event-grand-state {
        align-self: flex-end !important;
    }
    .cnp-top10-card {
        flex: 0 0 160px;
    }
    .cnp-top10-poster-wrap {
        height: 210px;
    }
    .cnp-reactions-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .cnp-mc-form {
        flex-direction: column;
    }
    .cnp-mc-submit-btn {
        padding: 12px;
        justify-content: center;
    }

    /* Sửa triệt để lỗi menu Hẹn giờ bị tràn lề phải & gây lệch lề trái trong Modal (#lm-audio-view) */
    #lm-audio-view .lm-view-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        position: relative !important;
    }

    #lm-audio-view .cnp-sleep-timer-wrap {
        position: relative !important;
        margin-left: auto !important;
    }

    #lm-audio-view .cnp-sleep-popover.drop-down {
        right: 0 !important;
        left: auto !important;
        width: 215px !important;
        max-width: calc(100vw - 28px) !important;
        box-sizing: border-box !important;
    }

    /* Nút Phần trong Danh Sách Audio: To rõ, đẫy đà, bề thế chuẩn gốc */
    .ss-btn {
        padding: 13px 18px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .ss-btn-status {
        font-size: 13.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Căn chỉnh thanh Tiếp Tục Nghe (.cnp-recent-horizontal-bar) gọn gàng trên mobile */
    .cnp-recent-horizontal-bar {
        gap: 10px !important;
        padding: 8px 10px !important;
    }
    .cnp-rhb-thumb-wrap {
        width: 46px !important;
        height: 58px !important;
    }
    .cnp-rhb-action-btn {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }

    /* Tối ưu Banner sự kiện nạp tiền: Kích thước to đẹp chuẩn gốc, không đè tìm kiếm & chữ Hero trên mọi PWA */
    #top-right-event-banner {
        top: calc(136px + env(safe-area-inset-top, 0px)) !important;
        right: calc(12px + env(safe-area-inset-right, 0px)) !important;
        width: 90% !important;
        max-width: 175px !important;
        z-index: 998 !important;
    }
    .event-banner-label {
        font-size: 10px !important;
        padding: 3px 12px !important;
        top: -10px !important;
    }
    .event-close-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 13px !important;
        top: -7px !important;
        right: -7px !important;
    }

    /* Tiêu đề trang chủ & câu chào: Tỷ lệ vừa vặn, không bị phóng đại quá mức gây gãy chữ */
    .hero-content {
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .hero-content h1.hero-main-title {
        font-size: 1.82rem !important;
        font-weight: 800 !important;
        line-height: 1.32 !important;
        letter-spacing: -0.2px !important;
        margin: 0 0 14px 0 !important;
    }
    .hero-username-clean {
        display: inline !important;
        word-break: normal !important;
    }
    .hero-content p.hero-description {
        font-size: 0.98rem !important;
        line-height: 1.55 !important;
        margin: 0 0 20px 0 !important;
    }

    /* Căn giữa bảng Hội viên / Tắt quảng cáo & Chuông thông báo trên mobile chống tràn lề & hiển thị tức thì mượt mà */
    .header-no-ads-panel {
        position: fixed !important;
        top: calc(68px + env(safe-area-inset-top, 0px)) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px) scale(0.96) !important;
        width: calc(100vw - 24px) !important;
        max-width: 350px !important;
        max-height: calc(100dvh - 88px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        padding: 18px 16px !important;
        border-radius: 18px !important;
        background: #11141c !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
        z-index: 100030 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s !important;
    }
    .header-no-ads-panel.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
        display: block !important;
    }
    .header-no-ads-panel::before {
        display: none !important;
    }
    .notif-panel {
        position: fixed !important;
        top: calc(68px + env(safe-area-inset-top, 0px)) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px) scale(0.96) !important;
        width: calc(100vw - 24px) !important;
        max-width: 350px !important;
        max-height: calc(100dvh - 88px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
        border-radius: 18px !important;
        background: #11141c !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
        z-index: 100030 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        overflow: hidden !important;
        transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s !important;
    }
    .notif-panel.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
        display: block !important;
    }
    .notif-panel::before {
        display: none !important;
    }

    /* Sửa triệt để lỗi nút Hẹn giờ (.cnp-sleep-btn) đè lên tiêu đề phim (#ap-movie-title) trên Mobile */
    #bottom-music-player .bmp-left {
        padding-right: 146px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #bottom-music-player .bmp-info {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    #bottom-music-player #ap-movie-title {
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    #bottom-music-player .bmp-right {
        top: 10px !important;
        right: 10px !important;
        gap: 5px !important;
    }

    #bottom-music-player .cnp-sleep-btn {
        padding: 5px 8px !important;
        font-size: 11.5px !important;
    }

    #bottom-music-player .cnp-sleep-btn:not(.active) span {
        display: none !important;
    }
}

/* ============================================================
   TÍNH NĂNG XÓA TÀI KHOẢN VĨNH VIỄN (APPLE & GOOGLE COMPLIANT)
   ============================================================ */
.cnp-danger-zone-card {
    margin-top: 30px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 68, 68, 0.03);
    border: 1px solid rgba(255, 68, 68, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.cnp-danger-zone-card:hover {
    border-color: rgba(255, 68, 68, 0.35);
    background: rgba(255, 68, 68, 0.05);
}

.cnp-danger-zone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cnp-danger-zone-header i {
    color: #ff5252;
    font-size: 15px;
}

.cnp-danger-zone-header span {
    color: #ff5252;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cnp-danger-zone-desc {
    color: #888899;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.btn-account-delete-trigger {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 82, 82, 0.35);
    color: #ff6b6b;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-account-delete-trigger:hover {
    background: rgba(255, 82, 82, 0.12);
    border-color: #ff5252;
    color: #ff5252;
    transform: translateY(-1px);
}

/* Modal Xác Nhận Xóa Tài Khoản */
.cnp-delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cnp-delete-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.cnp-delete-modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #141722;
    border-radius: 20px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 68, 68, 0.15);
    padding: 28px 24px 24px 24px;
    box-sizing: border-box;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.cnp-delete-modal-overlay.show .cnp-delete-modal-box {
    transform: translateY(0) scale(1);
}

.cnp-delete-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #aaa;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cnp-delete-close-x:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.cnp-delete-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.cnp-delete-warning-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.12);
    border: 2px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    animation: cnpPulseDanger 2s infinite;
}

@keyframes cnpPulseDanger {
    0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(255, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

.cnp-delete-modal-header h3 {
    margin: 0 0 6px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.cnp-delete-subtitle {
    margin: 0;
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 500;
}

/* Khung chính sách chi tiết */
.cnp-delete-policy-box {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cnp-policy-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #c0c0d0;
    line-height: 1.5;
}

.cnp-policy-item i {
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
    color: #ff9800;
}

.cnp-policy-item.danger-note {
    background: rgba(255, 68, 68, 0.08);
    border: 1px dashed rgba(255, 68, 68, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    color: #ff8585;
}

.cnp-policy-item.danger-note i {
    color: #ff4444;
}

.cnp-policy-item strong {
    color: #fff;
}

/* Ô checkbox xác nhận */
.cnp-delete-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #e0e0ee;
    line-height: 1.45;
}

.cnp-delete-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: #ff4444;
    cursor: pointer;
    flex-shrink: 0;
}

/* Khung nút bấm */
.cnp-delete-actions-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Nút HỦY BỎ NỔI BẬT */
.cnp-btn-delete-cancel {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(0, 114, 255, 0.4);
    transition: all 0.25s ease;
}

.cnp-btn-delete-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 114, 255, 0.55);
}

/* Nút XÁC NHẬN XÓA */
.cnp-btn-delete-confirm {
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    background: transparent;
    border: 1.5px solid rgba(255, 68, 68, 0.35);
    color: #888899;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.cnp-btn-delete-confirm.active {
    opacity: 1;
    cursor: pointer;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(255, 75, 43, 0.35);
}

.cnp-btn-delete-confirm.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 75, 43, 0.5);
}

/* ==========================================================================
   TRUNG TÂM TRỢ GIÚP & LIÊN HỆ (.cnp-support-*) — MATTE SCIENTIFIC UI
   ========================================================================== */
#tab-contact .cnp-support-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#tab-contact .cnp-support-header-area {
    margin-bottom: 22px;
    transition: padding-right 0.25s ease;
}

#tab-contact .cnp-support-header-area .section-title {
    margin-bottom: 14px;
}

@media (min-width: 980px) {
    body:has(#top-right-event-banner.show-event) #tab-contact .cnp-support-header-area {
        padding-right: 248px;
    }
}

/* Dải SLA trạng thái CSKH & cảnh báo bảo mật */
.cnp-support-sla-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    background: #12141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.cnp-support-sla-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #d1d5db;
    font-weight: 500;
}

.cnp-support-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
    flex-shrink: 0;
}

.cnp-support-sla-divider {
    color: rgba(255, 255, 255, 0.18);
}

.cnp-support-security-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #9ca3af;
}

.cnp-support-security-note i {
    color: #eab308;
    font-size: 13px;
}

/* Thanh Tự Chẩn Đoán & Sửa Lỗi 1 Chạm */
.cnp-quickfix-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #101219;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 14px;
}

.cnp-quickfix-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cnp-quickfix-label i {
    color: #d1d5db;
}

.cnp-quickfix-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cnp-support-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #1a1d28;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.cnp-support-tool-btn:hover {
    background: #222634;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cnp-support-tool-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cnp-support-tool-btn.is-compact {
    padding: 5px 10px;
    font-size: 12px;
}

/* Bố cục 2 cột khoa học */
.cnp-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 40px;
}

.cnp-support-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Card nền matte chuẩn kỹ thuật */
.cnp-support-card {
    background: #12141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    box-sizing: border-box;
    min-width: 0;
}

.cnp-support-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cnp-support-card-head > :first-child {
    flex: 1 1 175px;
    min-width: 0;
}

.cnp-support-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.35;
}

.cnp-support-card-title i {
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
}

.cnp-support-card-title i.is-primary-icon {
    color: #e50914;
}

.cnp-support-card-sub {
    margin: 4px 0 0 0;
    font-size: 12.5px;
    color: #8b92a2;
    line-height: 1.45;
}

/* Chip nhận diện thành viên trong Form */
.cnp-support-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #181b25;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #d1d5db;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.cnp-support-guest-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #171a24;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Form fields */
.cnp-support-field {
    margin-bottom: 14px;
}

.cnp-support-field label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.cnp-support-char-count {
    font-size: 11.5px;
    color: #8b92a2;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.cnp-support-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cnp-support-control {
    width: 100%;
    box-sizing: border-box;
    background: #0b0d13;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    color: #f3f4f6;
    padding: 10px 12px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.cnp-support-control:focus {
    border-color: rgba(255, 255, 255, 0.34);
    background: #0e1017;
}

.cnp-support-control::placeholder {
    color: #6b7280;
}

select.cnp-support-control {
    cursor: pointer;
}

textarea.cnp-support-control {
    min-height: 112px;
    resize: vertical;
    line-height: 1.55;
}

.cnp-support-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #8b92a2;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.cnp-support-hint i {
    margin-top: 2px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Vùng đính kèm ảnh nén */
.cnp-upload-box {
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: #0e1017;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 16px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.cnp-upload-box:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.cnp-upload-trigger {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    box-sizing: border-box;
}

.cnp-upload-trigger-left {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 180px;
    min-width: 0;
}

.cnp-upload-trigger-left i {
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
}

.cnp-upload-trigger-sub {
    font-size: 11.5px;
    color: #6b7280;
    white-space: nowrap;
}

.cnp-upload-preview {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cnp-upload-preview.is-visible {
    display: flex;
}

.cnp-upload-preview-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cnp-upload-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.cnp-upload-meta {
    min-width: 0;
}

.cnp-upload-filename {
    font-size: 12.5px;
    color: #f3f4f6;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.cnp-upload-filesize {
    font-size: 11.5px;
    color: #34d399;
    margin-top: 2px;
}

.cnp-upload-remove {
    background: #1f2430;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 28px;
    height: 28px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cnp-upload-remove:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

/* Nút Gửi Chính (Chỉ giữ 1 điểm nhấn đỏ duy nhất) */
.cnp-support-submit-btn {
    width: 100%;
    padding: 12.5px 18px;
    border-radius: 10px;
    background: #e50914;
    color: #ffffff;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.cnp-support-submit-btn:hover {
    background: #c90812;
    transform: translateY(-1px);
}

.cnp-support-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Badges semantic dịu mắt */
.cnp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.cnp-badge-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.cnp-badge-replied {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.cnp-badge-urgent {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.cnp-badge-vip {
    background: rgba(250, 204, 21, 0.10);
    color: #eab308;
    border: 1px solid rgba(250, 204, 21, 0.22);
}

.cnp-badge-neutral {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Danh sách Phiếu Hỗ Trợ Của Tôi */
.cnp-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 390px;
    overflow-y: auto;
    padding-right: 4px;
}

.cnp-ticket-list::-webkit-scrollbar {
    width: 4px;
}

.cnp-ticket-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.cnp-ticket-item {
    background: #161923;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 13px 14px;
}

.cnp-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.cnp-ticket-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.cnp-ticket-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    color: #9ca3af;
}

.cnp-ticket-time {
    font-size: 11.5px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.cnp-ticket-body {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-line;
}

.cnp-ticket-reply-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: #0e1118;
    border-left: 2px solid #10b981;
    border-radius: 0 8px 8px 0;
}

.cnp-ticket-reply-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
}

.cnp-ticket-reply-text {
    font-size: 13px;
    color: #e5e7eb;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-line;
}

.cnp-support-empty {
    text-align: center;
    padding: 26px 14px;
    color: #8b92a2;
    font-size: 13px;
    background: #0f1118;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

/* FAQ Search, Filter Chips & Accordion */
.cnp-faq-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.cnp-faq-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 13px;
    pointer-events: none;
}

.cnp-faq-search-input {
    width: 100%;
    box-sizing: border-box;
    background: #0b0d13;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    color: #f3f4f6;
    padding: 9px 12px 9px 34px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s ease;
}

.cnp-faq-search-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.cnp-faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.cnp-faq-chip {
    background: #181b25;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.cnp-faq-chip:hover {
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.18);
}

.cnp-faq-chip.active {
    background: #f3f4f6;
    color: #11131a;
    border-color: #f3f4f6;
}

.cnp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cnp-faq-item {
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.18s ease;
}

.cnp-faq-item[open] {
    border-color: rgba(255, 255, 255, 0.16);
}

.cnp-faq-summary {
    list-style: none;
    padding: 13px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e5e7eb;
    user-select: none;
}

.cnp-faq-summary::-webkit-details-marker {
    display: none;
}

.cnp-faq-summary-left {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
}

.cnp-faq-tag {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 5px;
    flex-shrink: 0;
}

.cnp-faq-chevron {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cnp-faq-item[open] .cnp-faq-chevron {
    transform: rotate(180deg);
    color: #e5e7eb;
}

.cnp-faq-answer {
    padding: 0 14px 14px 14px;
    font-size: 13px;
    color: #a9b1c0;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 11px;
}

.cnp-faq-answer p {
    margin: 0 0 6px 0;
}

.cnp-faq-answer p:last-child {
    margin-bottom: 0;
}

.cnp-faq-answer strong {
    color: #e5e7eb;
}

/* Kênh Liên Hệ Trực Tiếp Gọn Sắc Nét (Không nền mờ) */
.cnp-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.cnp-channel-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #161923;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    min-width: 0;
}

.cnp-channel-card:hover {
    background: #1c202d;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.cnp-channel-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: #10121a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cnp-channel-icon.is-tele { color: #2aabee; }
.cnp-channel-icon.is-zalo { color: #3b82f6; }
.cnp-channel-icon.is-fb { color: #60a5fa; }
.cnp-channel-icon.is-mail { color: #f87171; }

.cnp-channel-text {
    min-width: 0;
}

.cnp-channel-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.3;
}

.cnp-channel-handle {
    font-size: 12px;
    color: #8b92a2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnp-video-guide-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #171a24;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.cnp-video-guide-link:hover {
    background: #1e2230;
    border-color: rgba(255, 255, 255, 0.2);
}

.cnp-video-guide-left {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 180px;
    min-width: 0;
}

.cnp-video-guide-left i {
    color: #e50914;
    font-size: 16px;
}

@media (max-width: 960px) {
    .cnp-support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .cnp-support-card {
        padding: 16px;
    }
    .cnp-support-input-row,
    .cnp-channel-grid {
        grid-template-columns: 1fr;
    }
    .cnp-support-sla-bar {
        padding: 11px 13px;
    }
    .cnp-quickfix-actions {
        width: 100%;
    }
    .cnp-support-tool-btn {
        flex: 1 1 auto;
    }
}

/* ================= SUPPORT CENTER V2: TOPIC CARDS, 3-IMAGE R2 UPLOAD, SVG BRANDS, 24H LOCK, LIGHTBOX ================= */
.cnp-cooldown-banner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    box-sizing: border-box;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.28);
    margin-bottom: 16px;
}

.cnp-cooldown-banner > div {
    flex: 1;
    min-width: 0;
}

.cnp-cooldown-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.cnp-cooldown-title {
    font-size: 13px;
    font-weight: 700;
    color: #fde68a;
    margin-bottom: 2px;
}

.cnp-cooldown-desc {
    font-size: 12.5px;
    color: #d1d5db;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

/* Bộ Chọn Chủ Đề Hỗ Trợ Dạng Mở Rộng Mượt (Custom Animated Dropdown) */
.cnp-topic-picker {
    position: relative;
}

.cnp-topic-trigger {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 11px;
    background: #101219;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f3f4f6;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    min-width: 0;
}

.cnp-topic-trigger:hover {
    background: #151822;
    border-color: rgba(255, 255, 255, 0.24);
}

.cnp-topic-picker.is-open .cnp-topic-trigger,
.cnp-topic-trigger:focus-visible {
    outline: none;
    background: #151822;
    border-color: rgba(229, 9, 20, 0.72);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.14);
}

.cnp-topic-trigger .cnp-topic-icon {
    width: 34px;
    height: 34px;
    background: rgba(229, 9, 20, 0.14);
    border-color: rgba(229, 9, 20, 0.34);
    color: #fca5a5;
}

.cnp-topic-trigger .cnp-topic-info {
    flex: 1;
    min-width: 0;
}

.cnp-topic-trigger-action {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cnp-topic-trigger-hint {
    font-size: 11.5px;
    font-weight: 600;
    color: #8b92a2;
    transition: color 0.16s ease;
}

.cnp-topic-trigger:hover .cnp-topic-trigger-hint,
.cnp-topic-picker.is-open .cnp-topic-trigger-hint {
    color: #cbd5e1;
}

.cnp-topic-chevron {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #181c28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cnp-topic-picker.is-open .cnp-topic-chevron {
    transform: rotate(180deg);
    background: rgba(229, 9, 20, 0.16);
    border-color: rgba(229, 9, 20, 0.38);
    color: #fca5a5;
}

.cnp-topic-drawer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
    transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, margin-top 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cnp-topic-picker.is-open .cnp-topic-drawer {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 8px;
    pointer-events: auto;
}

.cnp-topic-drawer-inner {
    min-height: 0;
    overflow: hidden;
}

.cnp-topic-drawer-panel {
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    padding: 8px;
    box-sizing: border-box;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(-8px);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cnp-topic-picker.is-open .cnp-topic-drawer-panel {
    transform: translateY(0);
}

.cnp-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cnp-topic-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #101219;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
    min-width: 0;
}

.cnp-topic-card.is-wide {
    grid-column: 1 / -1;
}

.cnp-topic-card:hover {
    background: #171b26;
    border-color: rgba(255, 255, 255, 0.22);
}

.cnp-topic-card.is-selected {
    background: rgba(229, 9, 20, 0.1);
    border-color: #e50914;
    box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.3);
}

.cnp-topic-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #171a24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.cnp-topic-card.is-selected .cnp-topic-icon {
    background: rgba(229, 9, 20, 0.16);
    border-color: rgba(229, 9, 20, 0.35);
    color: #fca5a5;
}

.cnp-topic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.cnp-topic-check {
    margin-left: auto;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #e50914;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.cnp-topic-card.is-selected .cnp-topic-check {
    opacity: 1;
    transform: scale(1);
}

.cnp-topic-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.cnp-topic-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.cnp-topic-tag[hidden] {
    display: none;
}

.cnp-topic-sub {
    font-size: 11px;
    color: #8b92a2;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Đính kèm tối đa 3 ảnh R2 */
.cnp-upload-count-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    white-space: nowrap;
}

.cnp-upload-count-pill.has-files {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.32);
    color: #34d399;
}

.cnp-upload-privacy-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    font-size: 11px;
    color: #8b92a2;
    line-height: 1.4;
}

.cnp-upload-privacy-note i {
    color: #34d399;
    font-size: 11px;
    flex-shrink: 0;
}

.cnp-upload-grid {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cnp-upload-grid.is-visible {
    display: grid;
}

.cnp-upload-slot {
    position: relative;
    border-radius: 8px;
    background: #141722;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cnp-upload-slot-thumb {
    width: 100%;
    height: 76px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    background: #0a0c12;
}

.cnp-upload-slot-meta {
    padding: 5px 7px;
    font-size: 10.5px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.cnp-upload-slot-size {
    color: #34d399;
    font-weight: 600;
    white-space: nowrap;
}

.cnp-upload-slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(11, 13, 19, 0.85);
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cnp-upload-slot-remove:hover {
    background: #e50914;
    border-color: #e50914;
}

.cnp-upload-add-slot {
    min-height: 102px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: #11131b;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.cnp-upload-add-slot:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #f3f4f6;
    background: #171a25;
}

.cnp-support-submit-btn.is-locked {
    background: #232734;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cnp-support-submit-btn.is-locked:hover {
    background: #232734;
    transform: none;
}

/* Logo chính thức cho Kênh liên hệ trực tiếp */
.cnp-channel-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Thumbnail ảnh R2 trong Lịch sử phiếu User */
.cnp-ticket-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.cnp-ticket-thumb-btn {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: #0b0d13;
    width: 62px;
    height: 48px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.cnp-ticket-thumb-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.cnp-ticket-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.cnp-ticket-reauth-btn {
    margin-top: 10px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #e50914;
    color: #ffffff;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cnp-ticket-reauth-btn:hover {
    background: #c90812;
}

/* Mục Xem Ảnh trong Quản Lý Cấp Cao Admin */
.cnp-admin-img-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 7px;
    background: #1a2234;
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.cnp-admin-img-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #ffffff;
}

.cnp-admin-img-panel {
    background: #0d1018;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
}

.cnp-admin-img-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 10px;
}

.cnp-admin-img-hint {
    font-size: 11px;
    font-weight: 500;
    color: #8b92a2;
}

.cnp-admin-img-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cnp-admin-img-card {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #05070c;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4 / 3;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.cnp-admin-img-card:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.cnp-admin-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Shared Multi-Image Lightbox */
.cnp-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(6, 8, 12, 0.94);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
}

.cnp-lightbox-overlay.show {
    display: flex;
}

.cnp-lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) calc(18px + env(safe-area-inset-right, 0px)) 12px calc(18px + env(safe-area-inset-left, 0px));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 18, 26, 0.9);
}

.cnp-lightbox-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cnp-lightbox-title {
    font-size: 14px;
    font-weight: 700;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnp-lightbox-counter {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.cnp-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cnp-lightbox-btn {
    padding: 7px 12px;
    border-radius: 8px;
    background: #1b202d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cnp-lightbox-btn:hover {
    background: #252b3b;
    color: #ffffff;
}

.cnp-lightbox-btn.is-close {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
}

.cnp-lightbox-lock-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

#admin-reply-modal .global-modal-box {
    max-height: 90vh;
    max-height: calc(90dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
}

.cnp-lightbox-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px calc(56px + env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) calc(56px + env(safe-area-inset-left, 0px));
    overflow: hidden;
    min-height: 0;
}

.cnp-lightbox-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.cnp-lightbox-frame img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.cnp-lightbox-shield {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.cnp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(22, 26, 36, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.16s ease;
}

.cnp-lightbox-nav:hover {
    background: #e50914;
}

.cnp-lightbox-nav.is-prev { left: 14px; }
.cnp-lightbox-nav.is-next { right: 14px; }

@media (max-width: 540px) {
    .cnp-support-card-head {
        gap: 10px;
    }
    .cnp-support-user-pill {
        font-size: 11.5px;
        padding: 4px 10px;
    }
    .cnp-topic-trigger {
        padding: 9px 11px;
        gap: 9px;
    }
    .cnp-topic-trigger-hint {
        display: none;
    }
    .cnp-topic-grid {
        grid-template-columns: 1fr;
    }
    .cnp-topic-card.is-wide {
        grid-column: auto;
    }
    .cnp-upload-grid,
    .cnp-admin-img-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cnp-admin-img-head {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    #admin-reply-modal .global-modal-box {
        padding: 24px 16px 20px;
        width: 95vw;
    }
    .cnp-lightbox-topbar {
        padding: calc(10px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) 10px calc(12px + env(safe-area-inset-left, 0px));
        gap: 8px;
    }
    .cnp-lightbox-title {
        font-size: 13px;
    }
    .cnp-lightbox-lock-pill {
        font-size: 11px;
        padding: 4px 8px;
    }
    .cnp-lightbox-stage {
        padding: 14px calc(14px + env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px));
    }
}

/* ================= LOGIN SECURITY LOCK 6H & ATTEMPT METER ================= */
@keyframes cnpInputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.auth-input.is-error-shake {
    border-color: rgba(239, 68, 68, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
    animation: cnpInputShake 0.36s ease;
}

.cnp-login-sec-panel {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 14px 16px;
    margin: -4px 0 18px 0;
    background: rgba(17, 20, 30, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #f59e0b;
    color: #e5e7eb;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cnp-login-sec-panel.is-warning {
    border-color: rgba(245, 158, 11, 0.34);
    border-left-color: #f59e0b;
    background: rgba(24, 21, 16, 0.94);
}

.cnp-login-sec-panel.is-critical {
    border-color: rgba(239, 68, 68, 0.42);
    border-left-color: #ef4444;
    background: rgba(28, 17, 20, 0.95);
}

.cnp-login-sec-panel.is-locked {
    border-color: rgba(229, 9, 20, 0.44);
    border-left-color: #e50914;
    background: rgba(24, 15, 19, 0.96);
}

.cnp-login-sec-panel.is-unlocked {
    border-color: rgba(16, 185, 129, 0.36);
    border-left-color: #10b981;
    background: rgba(15, 24, 21, 0.95);
}

.cnp-sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
}

.cnp-sec-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 180px;
    min-width: 0;
}

.cnp-sec-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.cnp-login-sec-panel.is-critical .cnp-sec-icon,
.cnp-login-sec-panel.is-locked .cnp-sec-icon {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.32);
}

.cnp-login-sec-panel.is-unlocked .cnp-sec-icon {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.32);
}

.cnp-sec-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.35;
}

.cnp-sec-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.cnp-login-sec-panel.is-critical .cnp-sec-badge,
.cnp-login-sec-panel.is-locked .cnp-sec-badge {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.32);
}

.cnp-login-sec-panel.is-unlocked .cnp-sec-badge {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.cnp-attempt-meter {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 11px 0 9px 0;
}

.cnp-attempt-seg {
    height: 5px;
    border-radius: 999px;
    background: #232837;
    transition: background 0.2s ease;
}

.cnp-attempt-seg.is-used {
    background: #f59e0b;
}

.cnp-login-sec-panel.is-critical .cnp-attempt-seg.is-used,
.cnp-login-sec-panel.is-locked .cnp-attempt-seg.is-used {
    background: #ef4444;
}

.cnp-sec-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #cbd5e1;
}

.cnp-sec-desc strong {
    color: #ffffff;
}

.cnp-sec-account-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
    font-weight: 600;
    font-size: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.cnp-lock-timer-box {
    margin-top: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(9, 11, 17, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
}

.cnp-lock-timer-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cnp-lock-timer-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cnp-lock-countdown {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    font-weight: 800;
    color: #f87171;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.cnp-lock-unlock-at {
    text-align: right;
    font-size: 11.5px;
    color: #9ca3af;
    line-height: 1.4;
}

.cnp-lock-unlock-at strong {
    display: block;
    color: #e5e7eb;
    font-weight: 600;
}

.cnp-sec-actions {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cnp-sec-link-btn {
    padding: 6px 11px;
    border-radius: 7px;
    background: #1a1e2b;
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cnp-sec-link-btn:hover {
    background: #232838;
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.auth-btn.is-temp-locked,
.auth-btn.is-temp-locked:hover {
    background: #1a1e29 !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    cursor: not-allowed;
    font-size: 14.5px;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0.02em;
}

/* Modal Khóa Tạm 6 Giờ */
.cnp-lock-modal-summary {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0d1018;
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-align: left;
    box-sizing: border-box;
}

.cnp-lock-modal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    padding: 6px 0;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cnp-lock-modal-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cnp-lock-modal-row span {
    color: #9ca3af;
}

.cnp-lock-modal-row strong {
    color: #f3f4f6;
    font-weight: 600;
}

.cnp-lock-modal-timer {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 15px;
    font-weight: 800;
    color: #f87171 !important;
    letter-spacing: 0.05em;
}

.cnp-lock-modal-note {
    margin: 12px 0 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #9ca3af;
    text-align: left;
}

.cnp-lock-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}

.cnp-lock-modal-btn-secondary {
    flex: 1 1 130px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #1b202d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.cnp-lock-modal-btn-secondary:hover {
    background: #252b3b;
    border-color: rgba(255, 255, 255, 0.24);
}

.cnp-lock-modal-footer .modal-btn {
    flex: 1 1 130px;
    margin-top: 0 !important;
}

/* Admin User Lock Badges & Unlock Button */
.cnp-admin-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.cnp-admin-lock-badge.is-temp {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.cnp-admin-lock-badge.is-permanent {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.32);
}

.cnp-admin-lock-badge.is-warn {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 540px) {
    .cnp-login-sec-panel {
        padding: 12px 13px;
    }
    .cnp-lock-timer-box {
        padding: 9px 10px;
    }
    .cnp-lock-unlock-at {
        text-align: left;
    }
    .cnp-lock-countdown {
        font-size: 18px;
    }
}

/* ==========================================================================
   VÀI LỜI NGỎ TỪ ADMIN & BẢNG VINH DANH TOP 10 (EDITORIAL OBSIDIAN)
   ========================================================================== */
.admin-intro-wrapper {
    padding: 18px 4% 26px 4%;
}

.cnp-founder-honor-shell {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.96fr);
    gap: 22px;
    align-items: stretch;
}

.cnp-founder-card,
.cnp-honor-card {
    min-width: 0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Khối trái: Tâm thư Admin */
.cnp-founder-card {
    background: linear-gradient(165deg, #13151b 0%, #0c0d12 100%);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-left: 3px solid #e50914;
    padding: 28px 30px 24px 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.cnp-founder-head {
    margin-bottom: 16px;
}

.cnp-founder-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.cnp-founder-eyebrow-bar {
    width: 16px;
    height: 2px;
    background: #e50914;
    border-radius: 2px;
}

.cnp-founder-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.cnp-founder-title span {
    color: #f43f5e;
}

.cnp-founder-body {
    display: flex;
    flex-direction: column;
    gap: 13px;
    color: #cbd5e1;
    font-size: 14.8px;
    line-height: 1.72;
    margin-bottom: 18px;
}

.cnp-founder-body p {
    margin: 0;
    text-align: left;
}

.cnp-founder-body strong {
    color: #ffffff;
    font-weight: 700;
}

.cnp-founder-inline-link {
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(244, 63, 94, 0.75);
    padding: 0 1px;
    margin: 0;
    font: inherit;
    font-weight: 600;
    color: #fda4af;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.cnp-founder-inline-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.cnp-founder-quote {
    margin-top: auto;
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 11px;
    background: rgba(229, 9, 20, 0.065);
    border: 1px solid rgba(229, 9, 20, 0.18);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.8px;
    line-height: 1.55;
    color: #f1f5f9;
}

.cnp-founder-quote i {
    color: #f43f5e;
    margin-top: 3px;
    flex-shrink: 0;
}

.cnp-founder-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cnp-founder-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cnp-founder-avatar {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.34);
    color: #f43f5e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.cnp-founder-author-meta {
    min-width: 0;
}

.cnp-founder-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.6px;
}

.cnp-founder-role {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.cnp-founder-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.cnp-founder-contact-btn:hover {
    background: rgba(229, 9, 20, 0.14);
    border-color: rgba(229, 9, 20, 0.45);
}

/* Khối phải: Bảng Vinh Danh Top 10 */
.cnp-honor-card {
    background: linear-gradient(165deg, #13151b 0%, #0b0c11 100%);
    border: 1px solid rgba(234, 179, 8, 0.22);
    padding: 22px 20px 18px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.44);
}

.cnp-honor-header {
    margin-bottom: 14px;
}

.cnp-honor-title-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

.cnp-honor-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.34);
    color: #facc15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cnp-honor-title {
    margin: 0;
    font-size: 17.5px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
}

.cnp-honor-subtitle {
    margin: 3px 0 0 0;
    font-size: 12.2px;
    color: #94a3b8;
    line-height: 1.35;
}

.cnp-honor-mount {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hạng 1 Độc Tôn */
.cnp-honor-rank1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(26, 25, 31, 0.96) 58%, #13151b 100%);
    border: 1px solid rgba(234, 179, 8, 0.48);
    border-left: 3px solid #eab308;
    box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.14);
}

.cnp-honor-rank1-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cnp-honor-rank1-crest {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, #facc15, #b45309);
    color: #0b0c10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cnp-honor-rank1-meta {
    min-width: 0;
}

.cnp-honor-rank1-kicker {
    font-size: 10.2px;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: #fde047;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cnp-honor-rank1-name {
    font-size: 16.5px;
    font-weight: 800;
    color: #fffdf5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnp-honor-rank1-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.14);
    border: 1px solid rgba(234, 179, 8, 0.36);
    color: #fef08a;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Hạng 2 & Hạng 3 Song Song */
.cnp-honor-podium-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.cnp-honor-podium-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 11px;
    min-width: 0;
}

.cnp-honor-podium-card.is-rank-2 {
    background: linear-gradient(145deg, rgba(203, 213, 225, 0.1) 0%, #13151b 78%);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-left: 2.5px solid #cbd5e1;
}

.cnp-honor-podium-card.is-rank-3 {
    background: linear-gradient(145deg, rgba(205, 140, 82, 0.11) 0%, #13151b 78%);
    border: 1px solid rgba(205, 140, 82, 0.3);
    border-left: 2.5px solid #cd8c52;
}

.cnp-podium-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.is-rank-2 .cnp-podium-badge {
    background: rgba(203, 213, 225, 0.16);
    border: 1px solid rgba(203, 213, 225, 0.35);
    color: #e2e8f0;
}

.is-rank-3 .cnp-podium-badge {
    background: rgba(205, 140, 82, 0.16);
    border: 1px solid rgba(205, 140, 82, 0.36);
    color: #f3c69f;
}

.cnp-podium-meta {
    min-width: 0;
    flex: 1;
}

.cnp-podium-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    margin-bottom: 1px;
}

.is-rank-2 .cnp-podium-kicker {
    color: #cbd5e1;
}

.is-rank-3 .cnp-podium-kicker {
    color: #e2a773;
}

.cnp-podium-name {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hạng 4 - 10 */
.cnp-honor-roll-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    overflow: hidden;
}

.cnp-honor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.048);
    transition: background 0.14s ease;
}

.cnp-honor-row:last-child {
    border-bottom: none;
}

.cnp-honor-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cnp-honor-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cnp-honor-row-rank {
    min-width: 26px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.055);
    color: #9ca3af;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cnp-honor-row-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnp-honor-row-tag {
    font-size: 10.5px;
    font-weight: 600;
    color: #71717a;
    letter-spacing: 0.35px;
    flex-shrink: 0;
}

/* Chú thích bảo mật chân bảng */
.cnp-honor-footnote {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 11.4px;
    color: #71717a;
    line-height: 1.45;
}

.cnp-honor-footnote i {
    color: #34d399;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Skeleton giữ đúng chiều cao (Zero CLS, không hiệu ứng nặng) */
.cnp-honor-skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cnp-skel-box {
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cnp-skel-top1 {
    height: 66px;
}

.cnp-skel-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cnp-skel-podium {
    height: 52px;
}

.cnp-skel-list {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.cnp-skel-row {
    height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cnp-skel-row:last-child {
    border-bottom: none;
}

/* Trạng thái trống hoặc lỗi tải */
.cnp-honor-empty {
    padding: 24px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
}

.cnp-honor-retry-btn {
    margin-top: 10px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.cnp-honor-retry-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1023px) {
    .cnp-founder-honor-shell {
        grid-template-columns: 1fr;
        max-width: 780px;
    }
}

@media (max-width: 640px) {
    .admin-intro-wrapper {
        padding: 14px 14px 24px 14px;
    }
    .cnp-founder-card {
        padding: 20px 18px 18px 18px;
        border-radius: 14px;
    }
    .cnp-founder-title {
        font-size: 20.5px;
    }
    .cnp-founder-body {
        font-size: 14px;
        line-height: 1.66;
    }
    .cnp-founder-quote {
        font-size: 13px;
        padding: 11px 12px;
    }
    .cnp-honor-card {
        padding: 18px 15px 15px 15px;
        border-radius: 14px;
    }
    .cnp-honor-title {
        font-size: 16px;
    }
    .cnp-honor-rank1-name {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .cnp-honor-podium-pair,
    .cnp-skel-pair {
        grid-template-columns: 1fr;
    }
    .cnp-founder-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .cnp-founder-contact-btn {
        width: 100%;
        justify-content: center;
    }
}
