/* ================= 1. CƠ BẢN & HEADER ================= */
:root { --primary-color: #e50914; --bg-color: #0b0b0c; --text-color: #ffffff; --glass-bg: rgba(11, 11, 12, 0.8); }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

header { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: calc(15px + env(safe-area-inset-top, 0px)) 5% 15px 5%; background: var(--glass-bg); backdrop-filter: blur(10px); z-index: 9999; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.header-left { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon { font-size: 28px; color: var(--primary-color); text-shadow: 0 0 10px rgba(229, 9, 20, 0.5); }
.logo-text { font-size: 24px; font-weight: 800; background: linear-gradient(45deg, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 1px; }
.header-right { font-size: 28px; color: white; display: flex; align-items: center; gap: 20px; }
.header-right > i { cursor: pointer; transition: 0.3s; } .header-right > i:hover { color: var(--primary-color); transform: scale(1.1); }

/* CSS CÁI CHUÔNG THÔNG BÁO */
.notification-wrapper { position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s;}
.notification-wrapper > i { transition: 0.3s; } .notification-wrapper:hover > i { color: #00c6ff; transform: rotate(15deg) scale(1.1); }
.notif-badge { position: absolute; top: -5px; right: -8px; background: #e50914; color: white; font-size: 11px; font-weight: 900; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid #0b0b0c; animation: pulseGlow 1.5s infinite; }
.notif-panel { position: absolute; top: 45px; right: -50px; width: 320px; background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); z-index: 100000; opacity: 0; pointer-events: none; transform: translateY(10px); transition: 0.3s; cursor: default; }
.notif-panel.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.notif-panel::before { content: ''; position: absolute; top: -8px; right: 55px; border-width: 0 8px 8px 8px; border-style: solid; border-color: transparent transparent #111 transparent; }
.notif-header { padding: 15px; font-size: 16px; font-weight: bold; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); border-radius: 12px 12px 0 0; }
.notif-body { max-height: 330px; overflow-y: auto; }
.notif-body::-webkit-scrollbar { width: 5px; } .notif-body::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
.notif-item { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s; display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item.unread { background: rgba(0, 198, 255, 0.05); border-left: 3px solid #00c6ff; }
.notif-title { color: white; font-size: 14px; font-weight: bold; }
.notif-msg { color: #aaa; font-size: 12.5px; line-height: 1.4; }
.notif-time { color: #666; font-size: 11px; text-align: right; }

@media (max-width: 450px) {
    .notif-panel { width: 280px; right: -80px; }
    .notif-panel::before { right: 85px; }
}

/* NÚT TẮT QUẢNG CÁO TRÊN HEADER & DROPDOWN PANEL */
.header-no-ads-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}
.header-no-ads-btn {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.header-no-ads-btn i {
    font-size: 16px;
    color: #ff4e00;
    transition: 0.3s;
    z-index: 1;
}
.header-no-ads-btn .ban-line {
    position: absolute;
    width: 22px;
    height: 2px;
    background: #e50914;
    transform: rotate(-45deg);
    box-shadow: 0 0 5px #e50914;
    transition: 0.3s;
    z-index: 2;
}
.header-no-ads-btn:hover {
    background: rgba(229, 9, 20, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}
.header-no-ads-btn.active-no-ads {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.4);
}
.header-no-ads-btn.active-no-ads i {
    color: #00e676;
}
.header-no-ads-btn.active-no-ads .ban-line {
    background: #00e676;
    box-shadow: 0 0 5px #00e676;
}

/* Bảng nội dung rơi xuống khi bấm vào nút loa */
.header-no-ads-panel {
    position: absolute;
    top: 48px;
    right: -40px;
    width: 325px;
    background: rgba(18, 18, 22, 0.96) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(229, 9, 20, 0.15) !important;
    padding: 22px 20px !important;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}
.header-no-ads-panel.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.header-no-ads-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 50px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.15) transparent;
}
.hnap-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 12px;
}
.hnap-close-btn:hover {
    background: rgba(229, 9, 20, 0.3);
    color: #fff;
    border-color: rgba(229, 9, 20, 0.6);
    transform: scale(1.1);
}
.hnap-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 25px;
}
.hnap-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.22), rgba(255, 78, 0, 0.22));
    border: 1px solid rgba(229, 9, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    color: #ff4e00;
    font-size: 18px;
}
.hnap-icon-badge.active-badge {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.22), rgba(0, 198, 255, 0.22));
    border-color: rgba(0, 230, 118, 0.5);
    color: #00e676;
}
.hnap-slash {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #e50914;
    transform: rotate(-45deg);
}
.hnap-title-box {
    min-width: 0;
}
.hnap-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ff4e00;
    background: rgba(255, 78, 0, 0.15);
    border: 1px solid rgba(255, 78, 0, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}
.hnap-tag.active-tag {
    color: #00e676;
    background: rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.3);
}
.hnap-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.2px;
}
.hnap-price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    padding: 6px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.hnap-price-num {
    font-size: 21px;
    font-weight: 900;
    color: #00e676;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.35);
}
.hnap-price-unit {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
}
.hnap-desc {
    font-size: 12.5px;
    color: #aaa;
    line-height: 1.5;
    margin: 0 0 14px 0;
}
.hnap-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.hnap-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #ddd;
}
.hnap-feat-item i {
    color: #00e676;
    font-size: 13px;
    flex-shrink: 0;
}
.hnap-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #e50914, #ff3d00);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
}
.hnap-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
    filter: brightness(1.1);
}
.hnap-footer-note {
    font-size: 11px;
    color: #777;
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.hnap-footer-note i {
    color: #f5c518;
}

@media (max-width: 480px) {
    .header-no-ads-panel {
        width: 295px;
        right: -70px;
        padding: 16px !important;
    }
    .header-no-ads-panel::before {
        right: 80px;
    }
}

/* --- CSS CHO LOGO MỚI --- */
.logo-icon { display: none; } 
.logo-forge-wrapper { position: relative; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), #ffd700, #ff4e00, var(--primary-color)); background-size: 300% 300%; display: flex; justify-content: center; align-items: center; margin-right: 12px; animation: forgeGlowAnim 4s linear infinite; box-shadow: 0 0 10px rgba(229, 9, 20, 0.3); }
.custom-img-logo { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; border: 2px solid #0b0b0c; position: relative; z-index: 2; }
@keyframes forgeGlowAnim { 0% { background-position: 0% 50%; box-shadow: 0 0 5px rgba(229, 9, 20, 0.4); } 50% { background-position: 100% 50%; box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); } 100% { background-position: 200% 50%; box-shadow: 0 0 5px rgba(229, 9, 20, 0.4); } }

/* RESPONSIVE HEADER CHO MOBILE & TABLET */
@media (max-width: 768px) {
    header { 
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        padding-bottom: 12px;
        padding-left: calc(15px + env(safe-area-inset-left, 0px));
        padding-right: calc(15px + env(safe-area-inset-right, 0px));
    }
    .logo-forge-wrapper { width: 36px; height: 36px; margin-right: 8px; }
    .custom-img-logo { width: 30px; height: 30px; }
    .logo-text { font-size: 20px; }
    .header-right { gap: 15px; font-size: 24px; }
    .header-no-ads-btn { width: 32px; height: 32px; margin-right: 0; }
    .header-no-ads-btn i { font-size: 14px; }
    .header-no-ads-btn .ban-line { width: 18px; }
}

@media (max-width: 400px) {
    .logo-text { display: none; } /* Ẩn chữ logo trên màn hình quá nhỏ để tránh vỡ thanh công cụ */
    .header-right { gap: 12px; }
}

/* ================= 2. TÌM KIẾM & GỢI Ý THÔNG MINH ================= */
.search-container-wrapper { position: fixed; top: calc(75px + env(safe-area-inset-top, 0px)); width: 100%; display: flex; justify-content: center; padding: 0 calc(5% + env(safe-area-inset-right, 0px)) 0 calc(5% + env(safe-area-inset-left, 0px)); z-index: 999; }
.search-bar-outer { position: relative; width: 100%; max-width: 800px; display: flex; flex-direction: column; align-items: center; }
.long-search-bar { display: flex; align-items: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 40px; padding: 10px 15px 10px 25px; width: 100%; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); transition: all 0.3s ease; }
.long-search-bar:focus-within { border-color: var(--primary-color); background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 20px rgba(229, 9, 20, 0.5); transform: translateY(-2px); }
.long-search-bar i.fa-search, .long-search-bar i.search-icon { color: #aaa; font-size: 19px; margin-right: 12px; transition: 0.3s; flex-shrink: 0; }
.long-search-bar:focus-within i.fa-search, .long-search-bar:focus-within i.search-icon { color: var(--primary-color); }
.long-search-bar input { flex: 1; background: transparent; border: none; color: white; font-size: 16px; outline: none; padding-right: 10px; min-width: 0; }
.search-clear-btn { background: transparent; border: none; color: #888896; font-size: 17px; cursor: pointer; padding: 0 8px; margin-right: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; }
.search-clear-btn:hover { color: #ff3b50; transform: scale(1.15); }
.btn-search-action { background: linear-gradient(45deg, #e50914, #ff4e00); color: white; border: none; padding: 10px 25px; border-radius: 30px; font-size: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.btn-search-action:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6); filter: brightness(1.1); }
@media (max-width: 768px) {
    .search-container-wrapper { top: calc(70px + env(safe-area-inset-top, 0px)); padding: 0 calc(15px + env(safe-area-inset-right, 0px)) 0 calc(15px + env(safe-area-inset-left, 0px)); }
    .btn-search-action { padding: 8px 15px; font-size: 13px; }
    .long-search-bar { padding: 8px 10px 8px 15px; }
    .long-search-bar input {
        font-size: 16px !important; /* Đảm bảo font-size >= 16px để triệt tiêu hoàn toàn lỗi tự động zoom trên iPhone/Android */
        -webkit-text-size-adjust: 100%;
        touch-action: manipulation;
    }
    .search-clear-btn { font-size: 15px; padding: 0 4px; margin-right: 3px; }
}

/* ================= DROPDOWN GỢI Ý TÌM KIẾM THÔNG MINH ================= */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(16, 16, 22, 0.96);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.92), 0 0 30px rgba(229, 9, 20, 0.18);
    overflow: hidden;
    z-index: 10000;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    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 ease;
}

.search-suggestions-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ssd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 10px 18px;
    background: rgba(26, 26, 36, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #9292a4;
    user-select: none;
}

.ssd-header-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ff4757;
}

.ssd-header-count {
    color: #a0a0b2;
    font-size: 10.5px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
}

.ssd-list {
    overflow-y: auto;
    max-height: 310px;
    overscroll-behavior: contain;
    padding: 4px 0;
}

.ssd-list::-webkit-scrollbar {
    width: 5px;
}
.ssd-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.ssd-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.ssd-list::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}

.ssd-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.16s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    user-select: none;
}

.ssd-item:last-child {
    border-bottom: none;
}

.ssd-item:hover, .ssd-item.active {
    background: rgba(229, 9, 20, 0.14);
}

.ssd-thumb-wrap {
    width: 44px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

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

.ssd-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ssd-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.ssd-highlight {
    background: transparent;
    color: #ff4757;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.45);
    padding: 0;
}

.ssd-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #9e9ea8;
}

.ssd-author {
    color: #f5c518;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.ssd-dot {
    color: #555562;
    font-size: 10px;
}

.ssd-episodes {
    color: #8e8e9e;
    font-size: 11.5px;
    white-space: nowrap;
}

.ssd-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ssd-action-btn:hover {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
}

.ssd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(22, 22, 30, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}

.ssd-footer:hover {
    background: rgba(229, 9, 20, 0.2);
    color: #ffffff;
}

.ssd-footer strong {
    color: #ff4757;
}

.ssd-footer i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.ssd-footer:hover i {
    transform: translateX(3px);
}

.ssd-empty-state {
    padding: 16px 18px 12px 18px;
    text-align: center;
    color: #a0a0b2;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(25, 25, 35, 0.4);
}

.ssd-empty-state i {
    margin-right: 6px;
    color: #f5c518;
}

@media (max-width: 600px) {
    .search-suggestions-dropdown {
        border-radius: 16px;
        max-height: 380px;
        top: calc(100% + 8px);
    }
    .ssd-header {
        padding: 10px 14px 8px 14px;
        font-size: 10.5px;
    }
    .ssd-item {
        padding: 9px 14px;
        gap: 10px;
    }
    .ssd-thumb-wrap {
        width: 38px;
        height: 50px;
    }
    .ssd-title {
        font-size: 13.5px;
    }
    .ssd-meta {
        font-size: 11px;
        gap: 5px;
    }
    .ssd-author {
        max-width: 120px;
        font-size: 11px;
    }
    .ssd-episodes {
        font-size: 11px;
    }
    .ssd-action-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    .ssd-footer {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ================= 3. MENU TRƯỢT & TABS ================= */
.sidebar-menu { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; height: 100dvh; background: #141414; box-shadow: -5px 0 15px rgba(0,0,0,0.5); z-index: 10000; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding: calc(80px + env(safe-area-inset-top, 0px)) calc(30px + env(safe-area-inset-right, 0px)) calc(36px + env(safe-area-inset-bottom, 0px)) 30px; overflow-y: auto; }
.sidebar-menu.active { right: 0; }
.close-btn { position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); right: calc(25px + env(safe-area-inset-right, 0px)); font-size: 30px; cursor: pointer; color: #fff; transition: 0.3s; line-height: 1; z-index: 2; } .close-btn:hover { color: var(--primary-color); transform: rotate(90deg); }
.sidebar-menu ul { list-style: none; } .sidebar-menu ul li { margin: 20px 0; } .menu-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 25px 0 !important; }
.sidebar-menu ul li a { color: #ccc; text-decoration: none; font-size: 18px; font-weight: 500; transition: 0.3s; display: flex; align-items: center; gap: 15px; } .sidebar-menu ul li a:hover, .sidebar-menu ul li a.active-link { color: var(--primary-color); padding-left: 10px; }

.tab-content { display: none; animation: fadeIn 0.6s ease; } .tab-content.active { display: block; }
.page-padding { padding: calc(160px + env(safe-area-inset-top, 0px)) calc(5% + env(safe-area-inset-right, 0px)) calc(50px + env(safe-area-inset-bottom, 0px)) calc(5% + env(safe-area-inset-left, 0px)); min-height: 100vh; min-height: 100dvh; }
@media (max-width: 768px) { .page-padding { padding-top: calc(140px + env(safe-area-inset-top, 0px)); padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); } }
.section-title { font-size: 28px; margin-bottom: 30px; border-left: 4px solid var(--primary-color); padding-left: 15px; }

/* ================= 4. TRANG CHỦ & DANH SÁCH PHIM ================= */
.hero { 
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(to top, var(--bg-color) 0%, rgba(11,11,12,0.4) 100%), 
                url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover; 
    display: flex; 
    align-items: center; 
    padding: 0 5%; 
}

.hero-content { 
    max-width: 680px; 
    margin-top: 80px; 
}

/* Badge thương hiệu tinh tế, gọn gàng trên cùng */
.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #00e676;
    box-shadow: 0 0 8px #00e676;
}

.hero-brand-badge-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #e2e8f0;
    text-transform: uppercase;
}

/* TIÊU ĐỀ TRỌNG TÂM DUY NHẤT: VỪA VẶN, GỌN GÀNG, KHÔNG BỊ BẺ VỤN */
.hero-content h1.hero-main-title { 
    font-size: 2.35rem; 
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 16px 0; 
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); 
    letter-spacing: -0.3px;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Tên người dùng màu vàng Gold hoàng gia dịu mắt, sắc nét, không chói lóa, không lag */
.hero-username-clean {
    color: #f5c518;
    font-weight: 800;
    display: inline;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    padding: 0 2px;
}

/* Đoạn giới thiệu súc tích */
.hero-content p.hero-description { 
    font-size: 1.05rem; 
    color: #cbd5e1; 
    margin: 0 0 22px 0; 
    line-height: 1.6; 
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9); 
    max-width: 580px;
}

/* CỤM NÚT BẤM BỐ CỤC GỐC CHUẨN XÁC: HÀNG 1 [XEM NGAY][XEM REELS] - HÀNG 2 [PREMIUM] */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.play-btn { 
    padding: 14px 28px; 
    font-size: 16px; 
    font-weight: bold; 
    background: var(--primary-color); 
    color: white; 
    border: none; 
    border-radius: 30px; 
    cursor: pointer; 
    transition: 0.3s; 
    display: inline-flex; 
    align-items: center; 
    gap: 9px; 
    box-shadow: 0 5px 15px rgba(229,9,20,0.4); 
} 
.play-btn:hover { 
    background: #ff0f1a; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(229,9,20,0.6); 
}

.hero-content .premium-hero-btn {
    margin-top: 0;
}

.movie-category { padding: 50px 5% 60px 5%; position: relative; z-index: 1; overflow: hidden; margin-bottom: 0; }
.category-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; position: relative; z-index: 5; }
.cat-symbol { width: 45px; height: 45px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 22px; color: white; position: relative; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.cat-symbol::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0)); transform: skewX(-25deg); animation: shine 3s infinite; }
.category-header h2 { font-size: 26px; font-weight: 800; margin: 0; }

.sym-trending { background: linear-gradient(135deg, #ff4e00, #ec9f05); } .sym-trending i { animation: pulseGlow 1s infinite alternate; } .txt-trending { background: linear-gradient(45deg, #ff4e00, #ec9f05); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sym-action { background: linear-gradient(135deg, #00c6ff, #0072ff); } .sym-action i { animation: shake 0.5s infinite; } .txt-action { background: linear-gradient(45deg, #00c6ff, #0072ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sym-scifi { background: linear-gradient(135deg, #8e2de2, #4a00e0); } .sym-scifi i { animation: spinSlow 5s linear infinite; } .txt-scifi { background: linear-gradient(45deg, #8e2de2, #4a00e0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sym-asian { background: linear-gradient(135deg, #ff0844, #ffb199); } .sym-asian i { animation: floatIcon 3s ease-in-out infinite; } .txt-asian { background: linear-gradient(45deg, #ff0844, #ffb199); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.movie-category::before { content: ''; position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; z-index: 0; background-attachment: fixed; background-size: cover; background-position: center; filter: blur(2px) brightness(0.75) saturate(1.2); animation: smoothPanBg 25s infinite alternate ease-in-out; }
.movie-category::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(11, 11, 12, 0.2) 20%, rgba(11, 11, 12, 0.2) 80%, var(--bg-color) 100%); pointer-events: none; }
@keyframes smoothPanBg { 0% { transform: translateX(-2%) translateY(-2%); } 100% { transform: translateX(2%) translateY(2%); } }

#tab-home .movie-category:nth-of-type(1)::before { background-image: url('https://i.postimg.cc/8zGLcQmP/IMG-1107.jpg'); }
#tab-home .movie-category:nth-of-type(2)::before { background-image: url('https://i.postimg.cc/rsQ24LRv/IMG_1108.jpg'); }
#tab-home .movie-category:nth-of-type(3)::before { background-image: url('https://i.postimg.cc/fyBQdh04/IMG_1109.jpg'); }
#tab-home .movie-category:nth-of-type(4)::before { background-image: url('https://i.postimg.cc/QC0Z7rK2/IMG_1110.jpg'); filter: blur(0px) brightness(0.85) saturate(1.2) !important; }

/* ================= CẬP NHẬT GIAO DIỆN KHUNG PHIM ================= */
.movie-row { display: flex; gap: 25px; overflow-x: auto; padding: 30px 10px; scroll-behavior: smooth; scrollbar-width: none; position: relative; z-index: 5; }
.movie-row::-webkit-scrollbar { display: none; }
.movie-card { flex: 0 0 200px; aspect-ratio: 9 / 16; position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; background: #141419; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 20px rgba(0,0,0,0.8), 0 0 8px rgba(229, 9, 20, 0.15); transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1; }
.movie-card img { width: 100%; height: 100%; object-fit: cover; background: #141419; transition: 0.5s; filter: brightness(0.9) contrast(1.1); display: block; }
.movie-card:hover { transform: scale(1.1) translateY(-15px) !important; z-index: 10; border-color: var(--primary-color); box-shadow: 0 20px 40px rgba(229, 9, 20, 0.6), 0 0 20px var(--primary-color) !important; }
.movie-card:hover img { filter: brightness(0.5); }
.movie-card::before { content: ''; position: absolute; top: 0; left: -150%; width: 80%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0)); transform: skewX(-25deg); z-index: 5; pointer-events: none; }
.movie-card.is-scrolling-in { transform: translateY(-12px) scale(1.03); z-index: 5; border-color: rgba(229, 9, 20, 0.5); box-shadow: 0 15px 30px rgba(229, 9, 20, 0.3); }
.movie-card.is-scrolling-in::before { animation: scrollShineEffect 1.2s ease-out forwards; }
@keyframes scrollShineEffect { 0% { left: -150%; opacity: 0; } 30% { opacity: 1; } 100% { left: 150%; opacity: 0; } }

.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%); opacity: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 15px; transition: 0.4s; }
.movie-card:hover .card-overlay { opacity: 1; }
.card-overlay h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); color: white;}
.card-overlay span { font-size: 13px; color: var(--primary-color); font-weight: bold; }
.new-badge-tag { position: absolute; top: 10px; right: 10px; background: linear-gradient(135deg, #11998e, #38ef7d); color: white; padding: 4px 10px; font-size: 11px; font-weight: bold; border-radius: 8px; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }

/* ================= HIỆU ỨNG TÌM KIẾM PHIM (NEW) ================= */
.movie-card.search-highlight { border-color: #00e676 !important; box-shadow: 0 20px 50px rgba(0, 230, 118, 0.6), 0 0 30px #00e676 !important; transform: scale(1.15) translateY(-15px) !important; z-index: 50 !important; animation: searchGlowPulse 1s infinite alternate; }
@keyframes searchGlowPulse { 0% { box-shadow: 0 10px 30px rgba(0, 230, 118, 0.4), 0 0 15px rgba(0, 230, 118, 0.4); } 100% { box-shadow: 0 20px 50px rgba(0, 230, 118, 0.8), 0 0 40px #00e676; } }
.search-tooltip { position: absolute; top: -35px; left: 50%; transform: translateX(-50%); background: #00e676; color: black; padding: 6px 12px; font-size: 12px; font-weight: bold; border-radius: 6px; white-space: nowrap; z-index: 60; box-shadow: 0 5px 15px rgba(0, 230, 118, 0.5); animation: floatElement 2s infinite; pointer-events: none;}
.search-tooltip::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-width: 5px 5px 0; border-style: solid; border-color: #00e676 transparent transparent transparent; }

/* ================= 5. GIAO DIỆN MODAL XEM PHIM (Link Modal) ================= */
.link-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px); z-index: 100000; display: none; justify-content: center; align-items: flex-start; opacity: 0; transition: 0.3s; overflow-y: auto; }
.link-modal-overlay.show { display: flex; opacity: 1; }
.link-modal-box { background: linear-gradient(135deg, #0b0b0c, #141416); width: 100%; min-height: 100vh; min-height: 100dvh; max-width: 1200px; margin: 0 auto; padding: calc(50px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(50px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px)); box-shadow: none; border: none; border-radius: 0; transform: translateY(50px); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; }
.link-modal-box::-webkit-scrollbar { width: 5px; } .link-modal-box::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; }
.link-modal-overlay.show .link-modal-box { transform: scale(1); }

.lm-layout { display: flex; gap: 30px; }
@media (max-width: 768px) { .lm-layout { flex-direction: column; } }
.lm-left { flex: 0 0 300px; text-align: center; }
.lm-right { flex: 1; text-align: left; }
.lm-cover { width: 100%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4); border: 2px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.lm-cover img { width: 100%; height: 100%; object-fit: cover; }
#link-movie-title { font-size: 22px; color: white; margin-bottom: 8px; text-transform: uppercase; font-weight: 900; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.lm-publisher { color: #aaa; font-size: 13px; margin-bottom: 20px; font-weight: bold; }
.lm-interactions { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 0; }
.lm-stat-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #ccc; font-size: 14px; cursor: pointer; transition: 0.3s; flex: 1; }
.lm-stat-btn i { font-size: 20px; color: #fff; transition: 0.3s; }
.lm-stat-btn:hover { color: var(--primary-color); } .lm-stat-btn:hover i { color: var(--primary-color); transform: scale(1.1); }

.lm-section-title { font-size: 18px; color: #fff; margin-bottom: 15px; text-transform: uppercase; border-left: 3px solid var(--primary-color); padding-left: 10px; }
.lm-seasons-container { display: flex; flex-direction: column; gap: 10px; }
.ss-btn { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-radius: 12px; font-weight: bold; cursor: pointer; transition: 0.3s; border: none; font-size: 15px; letter-spacing: 0.5px; }
.ss-btn-play { background: linear-gradient(45deg, #e50914, #ff4e00); color: white; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4); }
.ss-btn-play:hover { transform: translateX(5px); box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6); filter: brightness(1.1); }
.ss-btn-update { background: rgba(255,255,255,0.05); color: #888; border: 1px dashed rgba(255,255,255,0.2); cursor: not-allowed; }
.ss-btn-premium { background: rgba(245, 197, 24, 0.1); color: #f5c518; border: 1px solid rgba(245, 197, 24, 0.4); }
.ss-btn-premium:hover { background: rgba(245, 197, 24, 0.2); transform: translateX(5px); }
.ss-btn.active-playing-season { 
    box-shadow: 0 0 0 2px #fff, 0 6px 20px rgba(229, 9, 20, 0.7) !important; 
    transform: translateX(4px); 
    position: relative; 
    border-color: #fff !important; 
}
.ss-btn-status {
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}
.ss-btn-status.status-playing {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    animation: pulseGlow 1.5s infinite alternate;
}
.ss-btn-status.status-playing i {
    color: #ff3b50;
    font-size: 11px;
}
.ss-btn-premium.active-playing-season {
    border-color: #f5c518 !important;
    box-shadow: 0 0 0 2px #f5c518, 0 6px 20px rgba(245, 197, 24, 0.5) !important;
}
.ss-btn-premium.active-playing-season .status-playing {
    border-color: rgba(245, 197, 24, 0.9);
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}
.ss-btn-premium.active-playing-season .status-playing i {
    color: #f5c518;
}

.action-btn { width: 100%; border: none; font-size: 16px; font-weight: 900; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; border-radius: 12px; }
.btn-locked { background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(255, 255, 255, 0.2); color: #888; }
.btn-locked:hover { background: rgba(229, 9, 20, 0.1); border-color: #e50914; color: #ff4e00; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(229, 9, 20, 0.2); }
.btn-vip-unlocked { background: linear-gradient(45deg, #f5c518, #ff9800); color: black; box-shadow: 0 5px 15px rgba(245, 197, 24, 0.4); text-transform: uppercase; animation: pulseGold 2s infinite; }
.btn-vip-unlocked:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(245, 197, 24, 0.6); filter: brightness(1.1); }

/* Lời ngỏ Admin trong Khung Phim */
.admin-love-message { margin-top: 20px; border-top: 1px dashed rgba(255,255,255,0.1); display: flex; gap: 15px; align-items: flex-start; background: linear-gradient(135deg, rgba(229, 9, 20, 0.05), rgba(245, 197, 24, 0.05)); border-radius: 12px; padding: 15px; border: 1px solid rgba(229, 9, 20, 0.15); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.heart-icon { font-size: 28px; color: #e50914; animation: pulseGlow 1.5s infinite alternate; margin-top: 2px; }
.alm-content h4 { color: #f5c518; font-size: 15px; text-transform: uppercase; margin-bottom: 5px; font-weight: bold; letter-spacing: 0.5px; }
.alm-content p { color: #ccc; font-size: 13px; line-height: 1.5; text-align: justify; margin-bottom: 12px; }
.alm-content strong { color: white; }
.btn-alm-premium { background: linear-gradient(45deg, #e50914, #ff4e00); color: white; border: none; padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3); }
.btn-alm-premium:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(229, 9, 20, 0.5); filter: brightness(1.1); }

/* Điều chỉnh nút X Khung Phim luôn nổi trên màn hình, không bị trôi khi cuộn */
.link-modal-overlay > .modal-close-icon { position: fixed; top: calc(25px + env(safe-area-inset-top, 0px)); right: calc(25px + env(safe-area-inset-right, 0px)); width: 42px; height: 42px; font-size: 22px; z-index: 9999; background: rgba(0, 0, 0, 0.8); border: 2px solid #e50914; color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 0 15px rgba(229,9,20,0.5); transition: 0.3s; cursor: pointer; }
.link-modal-overlay > .modal-close-icon:hover { background: #e50914; transform: rotate(90deg) scale(1.1); }

/* ================= BẠN CÓ THỂ THÍCH ================= */
.lm-recommend-section { margin-top: 60px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 40px; }
.lm-recommend-title { font-size: 24px; color: white; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; font-weight: bold; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.lm-recommend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.lm-rec-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 15px; overflow: hidden; cursor: pointer; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; backdrop-filter: blur(10px); }
.lm-rec-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 30px rgba(229, 9, 20, 0.2); border-color: rgba(229, 9, 20, 0.5); z-index: 2; }
.lm-rec-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: 0.4s; }
.lm-rec-card:hover .lm-rec-img { filter: brightness(1.1); }
.lm-rec-info { padding: 15px; }
.lm-rec-title { color: white; font-size: 15px; font-weight: bold; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; transition: 0.3s; }
.lm-rec-card:hover .lm-rec-title { color: var(--primary-color); }
.lm-rec-views { color: #888; font-size: 13px; display: flex; align-items: center; gap: 5px; }

/* ================= LIÊN HỆ & HỖ TRỢ ================= */
.lm-contact-section { margin-top: 50px; background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 25px; display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.lm-contact-icon { font-size: 35px; color: #ff4e00; flex-shrink: 0; }
.lm-contact-content { flex: 1; min-width: 200px; }
.lm-contact-content h4 { color: white; font-size: 18px; margin-bottom: 8px; font-weight: bold; }
.lm-contact-content p { color: #aaa; font-size: 14px; line-height: 1.5; }
.lm-contact-btn { background: rgba(0, 136, 204, 0.1); color: #0088cc; border: 1px solid rgba(0, 136, 204, 0.4); padding: 10px 20px; font-size: 14px; font-weight: bold; border-radius: 20px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lm-contact-btn:hover { background: rgba(0, 136, 204, 0.2); transform: translateY(-2px); color: #00aaff; }

/* ================= MỜI THAM GIA GROUP ================= */
.lm-group-cta { margin-top: 40px; background: #18191a; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 30px; display: flex; align-items: center; gap: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }
.lm-group-icon { font-size: 60px; color: #2AABEE; flex-shrink: 0; }
.lm-group-content { flex: 1; text-align: left; }
.lm-group-title { font-size: 22px; color: white; margin-bottom: 8px; font-weight: 600; }
.lm-group-desc { font-size: 15px; color: #ccc; line-height: 1.5; margin-bottom: 0; }
.lm-group-btn { background: #2AABEE; color: white; border: none; padding: 12px 25px; font-size: 16px; font-weight: 600; border-radius: 10px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; flex-shrink: 0; box-shadow: 0 4px 15px rgba(42, 171, 238, 0.3); }
.lm-group-btn:hover { background: #229ED9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42, 171, 238, 0.5); }

@media (max-width: 768px) { 
    .link-modal-overlay > .modal-close-icon { top: calc(15px + env(safe-area-inset-top, 0px)); right: calc(15px + env(safe-area-inset-right, 0px)); width: 36px; height: 36px; font-size: 16px; } 
    .link-modal-box { padding-top: calc(58px + env(safe-area-inset-top, 0px)); } 
    .lm-group-cta { flex-direction: column; text-align: center; gap: 20px; padding: 25px 20px; }
    .lm-group-content { text-align: center; }
}

/* ================= 6. VÍ & TÀI KHOẢN ================= */
/* ================= 6. HỆ THỐNG THÔNG BÁO CAO CẤP CHUNHATPHAM ================= */
.global-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: calc(16px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
    overflow-y: auto;
    background: rgba(4, 6, 10, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100100;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.global-modal-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.global-modal-box {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: linear-gradient(180deg, #181b22 0%, #101216 100%);
    border-radius: 24px;
    padding: 36px 28px 28px 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85),
                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(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
    overflow: hidden;
    box-sizing: border-box;
}

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

/* Ambient backlight aura reflection */
.cnp-notif-ambient-aura {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 140px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.35;
    transition: background 0.3s ease;
}

/* Top light reflection line */
.global-modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

/* Close button */
.modal-close-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    outline: none;
}

.modal-close-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Header & Icon Badge */
.modal-header {
    position: relative;
    z-index: 1;
}

.cnp-notif-icon-badge {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25),
                0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.cnp-notif-icon-badge i,
.modal-header > i#modal-icon {
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fallback if wrapper is omitted */
.modal-header > i#modal-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

@keyframes cnpBadgePop {
    0% { transform: scale(0.65); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header h2 {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.35;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Body message */
.modal-body {
    position: relative;
    z-index: 1;
}

.modal-body p {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 26px 0;
    padding: 0 10px;
    word-break: break-word;
}

/* Footer & Buttons */
.modal-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    outline: none;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn:active {
    transform: translateY(1px);
}

.modal-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* ================= 4 STATUS THEMES: SUCCESS, ERROR, WARNING, INFO ================= */

/* --- 1. SUCCESS (Thành công: Ngọc Lục Bảo Sang Trọng) --- */
.global-modal-box.notif-success .cnp-notif-ambient-aura {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, transparent 70%);
}
.global-modal-box.notif-success .cnp-notif-icon-badge,
.global-modal-box.notif-success .modal-header > i#modal-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}
.global-modal-box.notif-success .cnp-notif-icon-badge i {
    color: #34d399;
    filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.45));
}
.global-modal-box.notif-success .modal-btn,
.global-modal-box.notif-success .notif-btn-confirm {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px -3px rgba(5, 150, 105, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.global-modal-box.notif-success .modal-btn:hover,
.global-modal-box.notif-success .notif-btn-confirm:hover {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: 0 8px 25px -2px rgba(5, 150, 105, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* --- 2. ERROR (Lỗi / Thất bại: Đỏ Ruby Đẳng Cấp) --- */
.global-modal-box.notif-error .cnp-notif-ambient-aura {
    background: radial-gradient(circle, rgba(244, 63, 94, 0.45) 0%, transparent 70%);
}
.global-modal-box.notif-error .cnp-notif-icon-badge,
.global-modal-box.notif-error .modal-header > i#modal-icon {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.1) 100%);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fb7185;
}
.global-modal-box.notif-error .cnp-notif-icon-badge i {
    color: #fb7185;
    filter: drop-shadow(0 2px 10px rgba(244, 63, 94, 0.45));
}
.global-modal-box.notif-error .modal-btn,
.global-modal-box.notif-error .notif-btn-confirm {
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px -3px rgba(225, 29, 72, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.global-modal-box.notif-error .modal-btn:hover,
.global-modal-box.notif-error .notif-btn-confirm:hover {
    background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
    box-shadow: 0 8px 25px -2px rgba(225, 29, 72, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* --- 3. WARNING (Cảnh báo: Hổ Phách Sang Trọng) --- */
.global-modal-box.notif-warning .cnp-notif-ambient-aura {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, transparent 70%);
}
.global-modal-box.notif-warning .cnp-notif-icon-badge,
.global-modal-box.notif-warning .modal-header > i#modal-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.global-modal-box.notif-warning .cnp-notif-icon-badge i {
    color: #fbbf24;
    filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.45));
}
.global-modal-box.notif-warning .modal-btn,
.global-modal-box.notif-warning .notif-btn-confirm {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px -3px rgba(217, 119, 6, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.global-modal-box.notif-warning .modal-btn:hover,
.global-modal-box.notif-warning .notif-btn-confirm:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 8px 25px -2px rgba(217, 119, 6, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* --- 4. INFO (Thông tin: Lam Ngọc / ChuNhatPham Sapphire) --- */
.global-modal-box.notif-info .cnp-notif-ambient-aura {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%);
}
.global-modal-box.notif-info .cnp-notif-icon-badge,
.global-modal-box.notif-info .modal-header > i#modal-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}
.global-modal-box.notif-info .cnp-notif-icon-badge i {
    color: #60a5fa;
    filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.45));
}
.global-modal-box.notif-info .modal-btn,
.global-modal-box.notif-info .notif-btn-confirm {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px -3px rgba(29, 78, 216, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.global-modal-box.notif-info .modal-btn:hover,
.global-modal-box.notif-info .notif-btn-confirm:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px -2px rgba(29, 78, 216, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.vip-wallet-card { background: #111; border-radius: 20px; padding: 40px 30px; max-width: 500px; box-shadow: 0 15px 40px rgba(0,0,0,0.6); position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin-left: auto; margin-right: auto;}
.vip-wallet-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--primary-color), #ff4e00); }
.wallet-balance-box { text-align: center; position: relative; z-index: 2; } .wallet-balance-box p { font-size: 16px; color: #888; margin-bottom: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;}
.main-balance { font-size: 50px; font-weight: bold; color: #fff; } .main-balance span:last-child { font-size: 20px; color: #aaa; font-weight: normal; margin-left: 5px;}
.wallet-footer { margin-top: 25px; font-size: 14px; color: #666; background: rgba(255,255,255,0.03); padding: 8px 20px; border-radius: 30px; letter-spacing: 2px; }

.deposit-methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; max-width: 800px; margin-left: auto; margin-right: auto; } @media(max-width:768px) { .deposit-methods-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; gap: 20px;} .contact-grid { grid-template-columns: 1fr; }}
.deposit-card { background: #111; border: 2px solid rgba(255,255,255,0.05); border-radius: 15px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; cursor: pointer; transition: 0.4s; text-align: center; }
.deposit-card:hover { border-color: var(--primary-color); background: rgba(229, 9, 20, 0.05); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2); }
.deposit-card i { font-size: 50px; color: var(--primary-color); transition: 0.4s; } .deposit-card:hover i { transform: scale(1.1); color: #ff4e00; } .deposit-card h3 { font-size: 20px; color: white; } .deposit-card p { font-size: 14px; color: #888; }

.deposit-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); z-index: 10005; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; overflow-y: auto;}
.deposit-modal-overlay.show { display: flex; opacity: 1; }
.deposit-modal-box { background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('https://i.postimg.cc/sgHbyc5T/IMG-1106.jpg') center/cover no-repeat !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2) !important; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6) !important; width: 500px; border-radius: 20px; padding: 30px; transform: scale(0.8); transition: 0.3s; position: relative; margin: auto; } .deposit-modal-overlay.show .deposit-modal-box { transform: scale(1); }
.dep-close { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: #888; font-size: 24px; cursor: pointer; transition: 0.3s; } .dep-close:hover { color: var(--primary-color); transform: rotate(90deg); }
.dep-title { font-size: 22px; color: white; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }

.input-amount-wrapper { margin-bottom: 25px; } .input-amount-wrapper label { display: block; color: #aaa; margin-bottom: 10px; font-size: 14px; }
.dep-input { width: 100%; background: #000; border: 1px solid rgba(255,255,255,0.2); padding: 15px 20px; border-radius: 10px; color: #00e676; font-size: 24px; font-weight: bold; outline: none; transition: 0.3s; text-align: center; } .dep-input:focus { border-color: #00e676; box-shadow: 0 0 15px rgba(0, 230, 118, 0.3); }
.quick-amounts { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; justify-content: center; } .quick-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 8px 15px; border-radius: 20px; cursor: pointer; transition: 0.2s; font-size: 14px; } .quick-btn:hover, .quick-btn.active { background: var(--primary-color); border-color: var(--primary-color); }

.transfer-details-area { background: rgba(0,0,0,0.5); border: 1px dashed rgba(255,255,255,0.1); border-radius: 10px; padding: 20px; margin-bottom: 20px; display: none; } .transfer-details-area.show { display: block; animation: fadeIn 0.4s ease; }
.bank-info-row { display: flex; justify-content: space-between; margin-bottom: 15px; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; } .bank-info-row:last-child { border: none; margin-bottom: 0; padding-bottom: 0;} .b-label { color: #888; font-size: 14px; } .b-val { color: white; font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 10px; } .b-copy { color: var(--primary-color); cursor: pointer; transition: 0.2s; font-size: 14px; } .b-copy:hover { color: white; }
.qr-image-box { text-align: center; } .qr-note { font-size: 13px; color: #aaa; margin-top: 10px; }

.deposit-warning-box { background: rgba(229, 9, 20, 0.1); border: 1px solid rgba(229, 9, 20, 0.5); border-radius: 8px; padding: 15px; margin-bottom: 20px; display: none; align-items: flex-start; gap: 10px; }
.deposit-warning-box.show { display: flex; animation: fadeIn 0.4s ease; }
.deposit-warning-box i { color: var(--primary-color); font-size: 18px; margin-top: 2px; }
.deposit-warning-box p { color: #ffcccc; font-size: 13px; line-height: 1.5; text-align: left; margin: 0; }
.btn-confirm-deposit { width: 100%; padding: 15px; background: linear-gradient(45deg, #00c6ff, #0072ff); color: white; border: none; border-radius: 10px; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4); } .btn-confirm-deposit:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 198, 255, 0.6); }

.deposit-success-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.95); z-index: 10020; display: none; justify-content: center; align-items: center; flex-direction: column; opacity: 0; transition: 0.5s; } .deposit-success-overlay.show { display: flex; opacity: 1; }
.success-icon-giant { width: 120px; height: 120px; background: linear-gradient(135deg, #00e676, #1de9b6); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 60px; box-shadow: 0 0 50px rgba(0, 230, 118, 0.6); margin-bottom: 30px; transform: scale(0); transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .deposit-success-overlay.show .success-icon-giant { transform: scale(1); animation: pulseGreen 2s infinite; }
.deposit-success-overlay h1 { font-size: 36px; color: white; margin-bottom: 15px; text-shadow: 0 0 10px rgba(255,255,255,0.5); transform: translateY(20px); opacity: 0; transition: 0.5s 0.2s;} .deposit-success-overlay p { font-size: 20px; color: #00e676; margin-bottom: 40px; font-weight: bold; transform: translateY(20px); opacity: 0; transition: 0.5s 0.4s;} .deposit-success-overlay.show h1, .deposit-success-overlay.show p { transform: translateY(0); opacity: 1; }
.btn-close-success { padding: 12px 40px; background: transparent; border: 2px solid white; color: white; border-radius: 30px; font-size: 18px; cursor: pointer; transition: 0.3s; transform: translateY(20px); opacity: 0; transition: 0.5s 0.6s;} .deposit-success-overlay.show .btn-close-success { transform: translateY(0); opacity: 1; } .btn-close-success:hover { background: white; color: black; }

.payment-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 10005; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; } .payment-modal-overlay.show { display: flex; opacity: 1; }
.payment-modal-box { background: #111; width: 500px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 15px 50px rgba(0,0,0,0.8); transform: scale(0.8); transition: 0.3s; overflow: hidden; } .payment-modal-overlay.show .payment-modal-box { transform: scale(1); }
.pay-header { background: rgba(255,255,255,0.05); padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); } .pay-header h2 { font-size: 20px; color: white; margin: 0; } .pay-header button { background: transparent; border: none; color: white; font-size: 20px; cursor: pointer; } .pay-header button:hover { color: var(--primary-color); transform: rotate(90deg); }
.pay-body { padding: 25px; } .pay-package-name { font-size: 22px; color: var(--primary-color); font-weight: bold; margin-bottom: 20px; text-align: center;}
.duration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; } .dur-card { border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 15px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; background: rgba(255,255,255,0.02); } .dur-card.active { border-color: var(--primary-color); background: rgba(229, 9, 20, 0.1); } .dur-card h4 { font-size: 16px; color: white; margin-bottom: 5px; } .dur-badge { position: absolute; top: -10px; right: -10px; background: #00c6ff; color: white; font-size: 11px; padding: 3px 8px; border-radius: 10px; font-weight: bold; } .dur-badge.gold { background: #f5c518; color: black; }
.pay-summary { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 10px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center;} .pay-summary span { font-size: 16px; color: #ccc; } .pay-total-price { font-size: 24px; color: white; font-weight: bold; }
.wallet-info-box { background: linear-gradient(135deg, #1a1a2e, #16213e); border: 1px solid #0f3460; border-radius: 10px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); } .wallet-left { display: flex; flex-direction: column; gap: 5px; } .wallet-label { font-size: 13px; color: #aaa; } .wallet-balance { font-size: 22px; color: #e94560; font-weight: bold; } .btn-topup-small { background: rgba(233, 69, 96, 0.2); color: #e94560; border: 1px solid #e94560; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; } .btn-topup-small:hover { background: #e94560; color: white; } .btn-confirm-pay { width: 100%; padding: 15px; font-size: 18px; font-weight: bold; background: var(--primary-color); color: white; border: none; border-radius: 10px; cursor: pointer; transition: 0.3s; } .btn-confirm-pay:hover { background: #ff0f1a; box-shadow: 0 5px 15px rgba(229,9,20,0.5); }

/* OTP */
.otp-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); z-index: 10030; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.otp-modal-overlay.show { display: flex; opacity: 1; }
.otp-modal-box { background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)), url('https://i.postimg.cc/FRTrQcs0/IMG-1104.jpg') center/cover no-repeat !important; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.2) !important; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important; width: 450px; border-radius: 20px; padding: 30px; text-align: center; transform: scale(0.8); transition: 0.3s; position: relative; }
.otp-modal-overlay.show .otp-modal-box { transform: scale(1); }
.otp-title { font-size: 24px; color: #f5c518; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 10px rgba(245, 197, 24, 0.4); }
.otp-warning-box { background: rgba(229, 9, 20, 0.1); border: 2px dashed #e50914; border-radius: 12px; padding: 18px; margin-bottom: 25px; position: relative; animation: warningFlash 1.5s infinite alternate; }
.otp-warning-box i { font-size: 35px; color: #ff4e00; margin-bottom: 12px; display: block; animation: shake 0.5s infinite; }
.otp-warning-text { color: #fff; font-size: 14.5px; line-height: 1.6; text-align: justify; }
.otp-warning-text strong { color: #f5c518; font-weight: bold; }
.otp-input { width: 100%; background: #050505; border: 2px solid rgba(255,255,255,0.2); padding: 15px 20px; border-radius: 10px; color: #f5c518; font-size: 22px; font-weight: 900; outline: none; transition: 0.3s; text-align: center; letter-spacing: 6px; margin-bottom: 25px; text-transform: uppercase; box-shadow: inset 0 2px 10px rgba(0,0,0,0.8); }
.otp-input:focus { border-color: #f5c518; box-shadow: 0 0 15px rgba(245, 197, 24, 0.4), inset 0 2px 10px rgba(0,0,0,0.8); }
.otp-input.input-error { border-color: #e50914 !important; background: rgba(229, 9, 20, 0.05) !important; box-shadow: 0 0 25px rgba(229, 9, 20, 0.6), inset 0 2px 10px rgba(0, 0, 0, 0.8) !important; animation: shakeError 0.4s ease-in-out; color: #ff4e00 !important; }
.btn-verify-otp { width: 100%; padding: 16px; background: linear-gradient(45deg, #f5c518, #ff9800); color: #000; border: none; border-radius: 10px; font-size: 18px; font-weight: 900; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 5px 20px rgba(245, 197, 24, 0.5); animation: pulseGold 2s infinite; }
.btn-verify-otp:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(245, 197, 24, 0.8); filter: brightness(1.1); }
.otp-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.1); width: 35px; height: 35px; border-radius: 50%; border: none; color: white; font-size: 18px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center;}
.otp-close:hover { background: var(--primary-color); transform: rotate(90deg); }

@keyframes warningFlash { from { border-color: rgba(229, 9, 20, 0.4); box-shadow: inset 0 0 10px rgba(229, 9, 20, 0.1); } to { border-color: rgba(229, 9, 20, 1); box-shadow: inset 0 0 25px rgba(229, 9, 20, 0.4); } }
@keyframes shakeError { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-12px); } 40%, 80% { transform: translateX(12px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0% { transform: scale(0.9); } 100% { transform: scale(1.15); } }
@keyframes pulseGreen { 0% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.4); } 50% { box-shadow: 0 0 60px rgba(0, 230, 118, 0.8); } 100% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.4); } }
@keyframes pulseGold { 0% { box-shadow: 0 0 10px rgba(245, 197, 24, 0.3); transform: scale(1); } 50% { box-shadow: 0 0 20px rgba(245, 197, 24, 0.6); transform: scale(1.02); } 100% { box-shadow: 0 0 10px rgba(245, 197, 24, 0.3); transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ================= 8. LỜI NGỎ ADMIN & GROUP ================= */
.admin-intro-wrapper { padding: 20px 5% 80px 5%; }
.admin-intro-box { background: linear-gradient(145deg, #111111, #080808); border: 1px solid rgba(229, 9, 20, 0.3); border-radius: 15px; padding: 40px; display: flex; gap: 30px; align-items: center; box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(229,9,20,0.05); position: relative; overflow: hidden; }
.admin-intro-box::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--primary-color); box-shadow: 0 0 15px var(--primary-color); }
.intro-avatar { width: 120px; height: 120px; border-radius: 50%; background: rgba(229,9,20,0.1); border: 2px solid var(--primary-color); display: flex; justify-content: center; align-items: center; font-size: 55px; color: var(--primary-color); flex-shrink: 0; box-shadow: 0 0 25px rgba(229,9,20,0.5); animation: floatIcon 3s ease-in-out infinite; }
.intro-content { flex: 1; color: #ccc; line-height: 1.8; font-size: 16px; }
.intro-title { color: white; font-size: 28px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.intro-content p { margin-bottom: 15px; text-align: justify; }
.highlight-primary { color: var(--primary-color); font-weight: bold; text-shadow: 0 0 8px rgba(229,9,20,0.5); }
.highlight-gold { color: #f5c518; font-weight: bold; }
.highlight-blue { color: #00c6ff; font-weight: bold; }
.highlight-white { color: white; font-weight: bold; }
.admin-name { font-size: 1.3em; color: var(--primary-color); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.intro-closing { margin-top: 25px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 25px; text-align: center !important; font-size: 18px; }
.contact-link { color: #00c6ff; text-decoration: none; font-weight: bold; border-bottom: 1px solid transparent; transition: 0.3s; }
.contact-link:hover { color: #fff; border-bottom: 1px solid #fff; }
@media (max-width: 768px) { .admin-intro-box { flex-direction: column; text-align: center; padding: 25px; } .intro-content p { text-align: left; } .intro-closing { text-align: center !important; } }

/* ================= COMMUNITY & MEDIA ECOSYSTEM SECTION ================= */
.community-ecosystem-section {
    padding: 30px 4% 45px 4%;
    position: relative;
    z-index: 2;
}

.comm-clean-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comm-clean-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comm-clean-title i {
    color: #0088cc;
    font-size: 20px;
}

.comm-clean-subtitle {
    font-size: 13.5px;
    color: #8e8e93;
    margin: 0;
    line-height: 1.4;
}

/* 2-column balanced grid */
.comm-clean-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

/* Card Container: Clean dark surface, no glowing neon */
.comm-clean-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #141518;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.comm-clean-card:hover {
    background: #191b20;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Top: Avatar + Meta */
.comm-card-main {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.comm-avatar-wrap {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #0d0e11;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.comm-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.comm-title-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.comm-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.comm-check {
    color: #22c55e;
    font-size: 14px;
}

.comm-shield {
    color: #eab308;
    font-size: 14px;
}

.comm-badge-line {
    margin-bottom: 8px;
}

.comm-sub-text {
    font-size: 12.5px;
    color: #8e8e93;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comm-desc {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0;
}

/* Bottom: Action Row */
.comm-card-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comm-clean-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.comm-clean-card:hover .comm-clean-btn {
    background: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
}

.comm-clean-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.comm-clean-card:hover .comm-clean-btn i {
    transform: translateX(3px);
}

/* Fallback legacy compatibility */
.group-row { display: flex; gap: 25px; overflow-x: auto; scroll-behavior: smooth; padding: 20px 5% 40px 5%; flex-wrap: nowrap; scrollbar-width: none; }
.group-row::-webkit-scrollbar { display: none; }
.group-card { flex: 0 0 280px !important; aspect-ratio: 3 / 4 !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; text-decoration: none; display: block; border-radius: 15px !important; }

/* Responsive Breakpoints */
@media (max-width: 820px) {
    .comm-clean-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .community-ecosystem-section {
        padding: 20px 14px 30px 14px;
    }
    .comm-clean-title {
        font-size: 18px;
    }
    .comm-clean-subtitle {
        font-size: 12px;
    }
    .comm-clean-card {
        padding: 16px;
    }
    .comm-card-main {
        gap: 14px;
    }
    .comm-avatar-wrap {
        width: 68px;
        height: 68px;
    }
    .comm-name {
        font-size: 16px;
    }
    .comm-desc {
        font-size: 12.5px;
    }
    .comm-clean-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================= 9. DANH SÁCH LƯỚI PHIM & PHÂN TRANG ================= */
.movie-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; padding-top: 20px; padding-bottom: 50px; }
.movie-grid .movie-card { flex: none; width: 100%; }
.movie-card.updating { background: linear-gradient(145deg, #111, #050505); border: 1px dashed rgba(255, 255, 255, 0.15); display: flex; justify-content: center; align-items: center; cursor: default; }
.movie-card.updating:hover { transform: translateY(-5px) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important; border-color: rgba(255, 255, 255, 0.3) !important; }
.update-content { text-align: center; color: #555; padding: 15px; }
.update-content i { font-size: 35px; margin-bottom: 15px; color: #444; }
.update-content p { font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; line-height: 1.5; color: #777; }
@media (max-width: 1200px) { .movie-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 600px)  { .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } }

.movie-index-badge { position: absolute; bottom: 15px; right: 15px; background: rgba(11, 11, 12, 0.85); color: #fff; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 900; border: 1px solid var(--primary-color); z-index: 20; box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4); backdrop-filter: blur(5px); letter-spacing: 1px; }
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 50px; margin-bottom: 30px; flex-wrap: wrap; }
.page-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #ccc; min-width: 42px; height: 42px; display: flex; justify-content: center; align-items: center; border-radius: 8px; cursor: pointer; transition: 0.3s; font-size: 16px; font-weight: bold; padding: 0 10px; }
.page-btn:hover:not(.disabled):not(.active) { background: rgba(229, 9, 20, 0.2); border-color: var(--primary-color); color: white; transform: translateY(-3px); }
.page-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: white; box-shadow: 0 5px 15px rgba(229, 9, 20, 0.5); cursor: default; }
.page-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.page-dots { color: #888; font-size: 18px; font-weight: bold; padding: 0 5px; display: flex; align-items: flex-end; }

/* ================= 10. MÀN HÌNH CỘNG ĐỒNG ================= */
.single-hero-fullscreen { position: relative; width: 100%; min-height: 100vh; min-height: 100dvh; display: flex; justify-content: flex-start; align-items: center; flex-direction: column; padding: calc(130px + env(safe-area-inset-top, 0px)) calc(5% + env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) calc(5% + env(safe-area-inset-left, 0px)); margin-top: 0; }
.single-bg { position: fixed; top: -10%; left: -10%; width: 120%; height: 120%; background: url('https://i.postimg.cc/KzKXBFzd/A292A3C8-125D-4BF9-B965-77F735C7DDC8.png') center/cover no-repeat; filter: blur(12px) brightness(0.3); z-index: 1; animation: panBackground 25s infinite alternate linear; }
@keyframes panBackground { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.1) translate(-3%, -3%); } }

/* GIAO DIỆN CHAT KIỂU ZALO (MÀU VÀNG/CAM/ĐEN/XÁM) */
.global-chat-wrapper { position: relative; z-index: 10; width: 100%; max-width: 900px; display: flex; flex-direction: column; gap: 20px; animation: fadeIn 0.6s ease; margin: 0 auto; }
.global-chat-container { width: 100%; height: 72vh; min-height: 500px; max-height: 750px; background: rgba(18, 18, 20, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(245, 197, 24, 0.3); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 0 20px rgba(255, 152, 0, 0.05); display: flex; flex-direction: column; overflow: hidden; }
.chat-header-bar { background: linear-gradient(135deg, rgba(30,30,35,0.9), rgba(15,15,18,0.9)); padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.chat-header-info { display: flex; align-items: center; gap: 15px; }
.camera-icon { font-size: 28px; background: linear-gradient(45deg, #f5c518, #ff4e00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: pulseGold 2s infinite; }
.chat-header-info h2 { font-size: 20px; color: white; margin: 0; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.chat-header-stats { color: #888; font-size: 13px; font-weight: bold; background: rgba(0,0,0,0.5); padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.chat-messages-area { flex: 1; padding: 25px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; scroll-behavior: smooth; }
.chat-messages-area::-webkit-scrollbar { width: 6px; } .chat-messages-area::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.msg-row { display: flex; flex-direction: column; max-width: 75%; animation: fadeIn 0.3s ease; }
.msg-row.other { align-self: flex-start; } .msg-row.mine { align-self: flex-end; align-items: flex-end; }
.msg-sender { font-size: 12px; color: #888; margin-bottom: 5px; font-weight: bold; display: flex; align-items: center; gap: 5px; }
.msg-row.mine .msg-sender { justify-content: flex-end; }
.msg-sender .vip-badge { background: #f5c518; color: black; padding: 2px 6px; border-radius: 6px; font-size: 9px; text-transform: uppercase; }
.msg-sender .admin-badge { background: #e50914; color: white; padding: 2px 6px; border-radius: 6px; font-size: 9px; text-transform: uppercase; }

/* CHAT MESSAGE OPTIONS & REACTIONS UI */
.msg-row { position: relative; }
.msg-options-wrapper { display: flex; align-items: center; gap: 5px; opacity: 0; transition: 0.2s; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; }
.msg-row.mine .msg-options-wrapper { right: calc(100% + 10px); flex-direction: row-reverse; }
.msg-row.other .msg-options-wrapper { left: calc(100% + 10px); }
.msg-row:hover .msg-options-wrapper { opacity: 1; }
@media (max-width: 768px) { .msg-options-wrapper { opacity: 1; position: relative; top: auto; transform: none; left: auto; right: auto; margin-top: 5px; justify-content: flex-start; } .msg-row.mine .msg-options-wrapper { justify-content: flex-end; } }
.msg-opt-btn { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #ccc; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s; font-size: 12px; }
.msg-opt-btn:hover { background: rgba(255,255,255,0.2); color: white; transform: scale(1.1); }

.msg-bubble { padding: 12px 18px; border-radius: 18px; font-size: 15px; line-height: 1.5; word-wrap: break-word; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.msg-row.other .msg-bubble { background: #2a2a2d; color: #e0e0e0; border-bottom-left-radius: 4px; border: 1px solid rgba(255,255,255,0.08); }
.msg-row.mine .msg-bubble { background: linear-gradient(135deg, #ff9800, #ff4e00); color: white; border-bottom-right-radius: 4px; box-shadow: 0 5px 15px rgba(255, 78, 0, 0.3); border: 1px solid rgba(255, 152, 0, 0.5); }
.msg-bubble.is-deleted { background: transparent !important; border: 1px dashed rgba(255,255,255,0.2) !important; color: #888 !important; font-style: italic; box-shadow: none !important; }
.msg-time { font-size: 10px; color: #666; margin-top: 5px; } .msg-row.mine .msg-time { color: rgba(255,255,255,0.6); text-align: right;}

/* QUOTED & IMAGES & REACTIONS */
.msg-quote { background: rgba(0,0,0,0.3); border-left: 3px solid rgba(255,255,255,0.4); padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,0.8); cursor: pointer; transition: 0.2s; } .msg-quote:hover { background: rgba(255,255,255,0.1); }
.msg-row.mine .msg-quote { border-left-color: #fff; background: rgba(0,0,0,0.2); }
.msg-quote strong { font-size: 11px; display: block; margin-bottom: 3px; color: #ccc; }
.msg-image-content { max-width: 250px; border-radius: 12px; margin-top: 5px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: 0.3s; }
.msg-image-content:hover { filter: brightness(1.1); }
.msg-reactions-bar { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.reaction-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); padding: 2px 8px; border-radius: 12px; font-size: 12px; display: flex; align-items: center; gap: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); cursor: pointer; transition: 0.2s;} .reaction-badge:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
.add-reaction-btn { width: 24px; height: 24px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.2); color: #aaa; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s; font-size: 10px; margin-left: 2px; } .add-reaction-btn:hover { background: rgba(255,255,255,0.2); color: white; border-style: solid; }

/* PINNED MESSAGE BAR */
.chat-pinned-bar { background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(15, 15, 18, 0.98)); border-bottom: 1px dashed rgba(255,255,255,0.1); padding: 12px 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.3s; z-index: 20; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.chat-pinned-bar:hover { background: rgba(40, 40, 45, 0.95); }
.cp-icon { color: #f5c518; font-size: 18px; transform: rotate(-45deg); animation: shake 1s infinite alternate; }
.cp-content { flex: 1; overflow: hidden; border-left: 2px solid #f5c518; padding-left: 10px; }
.cp-title { font-size: 11px; color: #00c6ff; font-weight: bold; text-transform: uppercase; margin-bottom: 2px; }
.cp-text { font-size: 13px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.cp-close { background: rgba(255,255,255,0.1); border: none; color: white; border-radius: 50%; width: 26px; height: 26px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s; } .cp-close:hover { background: #e50914; transform: rotate(90deg); }

/* INPUT WRAPPER & PREVIEW */
.chat-input-wrapper { background: rgba(10,10,12,0.95); padding: 15px 25px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 15px; position: relative; }
.chat-char-counter { position: absolute; top: -25px; right: 25px; font-size: 12px; color: #888; background: rgba(0,0,0,0.8); padding: 3px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); font-weight: bold; transition: 0.3s; z-index: 15; }
.chat-attach-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #00c6ff; width: 45px; height: 45px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; } .chat-attach-btn:hover { background: #00c6ff; color: black; }
#chat-input-box { flex: 1; background: #1c1c1e; border: 1px solid rgba(255,255,255,0.1); color: white; padding: 15px 20px; border-radius: 30px; font-size: 15px; outline: none; transition: 0.3s; }
#chat-input-box:focus { border-color: #f5c518; box-shadow: 0 0 10px rgba(245, 197, 24, 0.2); }
.chat-send-btn { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #f5c518, #ff4e00); border: none; color: white; font-size: 18px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(245, 197, 24, 0.4); padding-right: 3px;}
.chat-send-btn:hover { transform: scale(1.1) rotate(-10deg); filter: brightness(1.2); }

/* CONTEXT MENU & PREVIEW BAR */
.chat-reply-preview-bar, .chat-image-preview-bar { background: rgba(30,30,35,0.95); padding: 10px 25px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.rp-content { border-left: 3px solid #00c6ff; padding-left: 10px; flex: 1; }
.rp-user { font-size: 12px; color: #00c6ff; font-weight: bold; }
.rp-text { font-size: 13px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }
.rp-close, .cip-close { color: #888; cursor: pointer; font-size: 18px; padding: 5px; } .rp-close:hover, .cip-close:hover { color: #e50914; }
#cip-img { height: 60px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); }

.chat-context-menu { position: fixed; background: rgba(25,25,30,0.98); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; padding: 8px 0; box-shadow: 0 15px 40px rgba(0,0,0,0.8); z-index: 100100; display: none; min-width: 240px; transform-origin: top left; }
.chat-context-menu.show { display: block; }
.ccm-reactions { display: flex; justify-content: space-around; padding: 5px 15px 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 5px; }
.ccm-reactions span { font-size: 24px; cursor: pointer; transition: 0.2s; user-select: none; }
.ccm-reactions span:hover { transform: scale(1.3) translateY(-5px); }
.ccm-action { padding: 10px 20px; color: #ddd; font-size: 14px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.ccm-action:hover { background: rgba(255,255,255,0.05); color: white; }
.ccm-action.action-delete:hover { background: rgba(229, 9, 20, 0.1); color: #ff4e00; }

/* CHAT GROUPS / TELEGRAM CHANNELS */
.chat-groups-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 15px;
}
.chat-group-card {
    background: #141518;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.chat-group-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: #1a1c22;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.cg-vip {
    border-color: rgba(255, 255, 255, 0.08);
}
.cg-vip:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: #1a1c22;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.chat-group-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}
.cg-info {
    flex: 1;
    min-width: 0;
}
.cg-info h4 {
    color: #ffffff;
    font-size: 14.5px;
    margin: 0 0 4px 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cg-info span {
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cg-vip .cg-info h4 {
    color: #ffffff;
}
.cg-vip .cg-info span {
    color: #94a3b8;
}
.cg-arrow {
    color: #64748b;
    font-size: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: auto;
}
.chat-group-card:hover .cg-arrow {
    transform: translateX(3px);
    color: #cbd5e1;
}
@media (max-width: 768px) {
    .chat-groups-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .global-chat-container {
        height: 68vh;
        min-height: 480px;
    }
}

/* ================= 11. CÁC HIỆU ỨNG NỀN TAB ================= */
#tab-list { position: relative; z-index: 1; overflow: hidden; background-color: var(--bg-color); }
#tab-list .page-padding, #tab-list .pagination-container, #tab-list .main-footer { position: relative; z-index: 5; }
#tab-list::before { content: ''; position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; z-index: 0; background-image: url('https://i.postimg.cc/6Qrg7wNP/IMG-1114.jpg'); background-attachment: fixed; background-size: cover; background-position: center; filter: blur(1px) brightness(0.85) saturate(1.2); animation: smoothPanBg 25s infinite alternate ease-in-out; }
#tab-list::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(11, 11, 12, 0.5) 20%, rgba(11, 11, 12, 0.5) 80%, var(--bg-color) 100%); pointer-events: none; }

#tab-wallet { background: linear-gradient(rgba(11, 11, 12, 0.6), rgba(11, 11, 12, 0.8)), url('https://i.postimg.cc/wT8qY69W/IMG-1105.jpg') center/cover no-repeat; background-attachment: fixed; min-height: 100vh; }
.vip-wallet-card, .deposit-card { background: rgba(255, 255, 255, 0.05) !important; backdrop-filter: blur(25px) saturate(200%); -webkit-backdrop-filter: blur(25px) saturate(200%); border: 1px solid rgba(255, 255, 255, 0.15) !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important; border-radius: 20px; overflow: hidden; }

#tab-history { background: linear-gradient(rgba(11, 11, 12, 0.6), rgba(11, 11, 12, 0.8)), url('https://i.postimg.cc/KYr528Py/IMG-1115.jpg') center/cover no-repeat !important; background-attachment: fixed !important; min-height: 100vh; }
.history-wrapper { max-width: 900px; margin: 0 auto; background: rgba(255, 255, 255, 0.05) !important; backdrop-filter: blur(25px) saturate(200%) !important; -webkit-backdrop-filter: blur(25px) saturate(200%) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5) !important; border-radius: 24px !important; padding: 30px; }
.history-filter-tabs { display: flex; gap: 12px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); scrollbar-width: none; -ms-overflow-style: none; }
.history-filter-tabs::-webkit-scrollbar { display: none; }
.hist-tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; color: #bbb; border-radius: 30px; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); white-space: nowrap; font-weight: 700; font-size: 13.5px; }
.hist-tab-btn:hover { background: rgba(255, 255, 255, 0.12) !important; color: #fff; border-color: rgba(255, 255, 255, 0.3) !important; transform: translateY(-2px); }
.hist-tab-btn.active { background: linear-gradient(135deg, #e50914, #b20710) !important; color: white !important; border-color: #ff3344 !important; box-shadow: 0 4px 18px rgba(229, 9, 20, 0.45) !important; }
.history-list { display: flex; flex-direction: column; gap: 14px; }

/* Item container */
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: rgba(0, 0, 0, 0.35) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; padding: 14px 18px; border-radius: 16px !important; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: fadeIn 0.4s ease backwards; }
.history-item:hover { transform: translateX(6px); }

/* Video card */
.history-item.type-video { border-color: rgba(229, 9, 20, 0.22) !important; background: linear-gradient(90deg, rgba(229, 9, 20, 0.08) 0%, rgba(20, 12, 14, 0.6) 100%) !important; cursor: pointer; }
.history-item.type-video:hover { border-color: rgba(229, 9, 20, 0.55) !important; background: linear-gradient(90deg, rgba(229, 9, 20, 0.16) 0%, rgba(30, 15, 18, 0.75)) !important; box-shadow: 0 8px 25px rgba(229, 9, 20, 0.22) !important; }

/* Audio card */
.history-item.type-audio { border-color: rgba(245, 197, 24, 0.22) !important; background: linear-gradient(90deg, rgba(245, 197, 24, 0.08) 0%, rgba(20, 18, 12, 0.6) 100%) !important; cursor: pointer; }
.history-item.type-audio:hover { border-color: rgba(245, 197, 24, 0.55) !important; background: linear-gradient(90deg, rgba(245, 197, 24, 0.16) 0%, rgba(32, 28, 15, 0.75)) !important; box-shadow: 0 8px 25px rgba(245, 197, 24, 0.22) !important; }

/* Transaction card */
.history-item.type-transaction { border-color: rgba(255, 255, 255, 0.08) !important; }
.history-item.type-transaction:hover { border-color: rgba(255, 255, 255, 0.25) !important; background: rgba(255, 255, 255, 0.06) !important; }

.history-item.hide { display: none !important; }

.hist-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.hist-img-preview { width: 52px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 4px 14px rgba(0,0,0,0.6); background: #151518; position: relative; }
.hist-img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hist-img-overlay-icon { position: absolute; bottom: 3px; right: 3px; font-size: 10px; padding: 2px 5px; border-radius: 4px; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }

.hist-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 22px; flex-shrink: 0; box-shadow: inset 0 0 10px rgba(255,255,255,0.1); }
.icon-watch { background: linear-gradient(135deg, rgba(0, 198, 255, 0.2), rgba(0, 114, 255, 0.2)); color: #00c6ff; border: 1px solid rgba(0, 198, 255, 0.4); }
.icon-deposit { background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(29, 233, 182, 0.2)); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.4); }
.icon-spend { background: linear-gradient(135deg, rgba(245, 197, 24, 0.2), rgba(255, 152, 0, 0.2)); color: #f5c518; border: 1px solid rgba(245, 197, 24, 0.4); }

.hist-details { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.hist-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

/* Badges */
.hist-media-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 2.5px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.hist-media-badge.badge-video { background: linear-gradient(135deg, rgba(229, 9, 20, 0.22), rgba(255, 61, 0, 0.28)); border: 1px solid rgba(229, 9, 20, 0.55); color: #ff5252; box-shadow: 0 0 8px rgba(229, 9, 20, 0.2); }
.hist-media-badge.badge-audio { background: linear-gradient(135deg, rgba(245, 197, 24, 0.22), rgba(255, 179, 0, 0.28)); border: 1px solid rgba(245, 197, 24, 0.55); color: #f5c518; box-shadow: 0 0 8px rgba(245, 197, 24, 0.2); }

.hist-ep-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #e0e0e0; }

.hist-title { color: #ffffff; font-size: 15.5px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
.hist-time { color: #8e8e93; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }

.hist-right { text-align: right; flex-shrink: 0; }
.hist-btn-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; font-size: 12.5px; font-weight: 700; border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); white-space: nowrap; }
.hist-btn-action.btn-replay-video { background: linear-gradient(135deg, #e50914, #b20710); color: #ffffff; box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4); }
.hist-btn-action.btn-replay-video:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(229, 9, 20, 0.65); filter: brightness(1.1); }
.hist-btn-action.btn-replay-audio { background: linear-gradient(135deg, #f5c518, #d4a007); color: #111111; box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35); }
.hist-btn-action.btn-replay-audio:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(245, 197, 24, 0.6); filter: brightness(1.1); }

.hist-val-plus { color: #00e676; font-size: 16px; font-weight: 900; }
.hist-val-minus { color: #f5c518; font-size: 16px; font-weight: 900; }
.hist-balance-after { font-size: 11.5px; color: #777; margin-top: 3px; }

.hist-empty-content { text-align: center; padding: 40px 15px; color: #888; }
.hist-empty-content i { font-size: 36px; color: rgba(255,255,255,0.18); margin-bottom: 12px; display: block; }
.hist-empty-content p { font-size: 14px; color: #aaa; margin: 0; }

@media (max-width: 600px) {
    .history-wrapper { padding: 20px 14px !important; border-radius: 18px !important; }
    .history-item { padding: 12px 14px !important; gap: 10px; }
    .hist-left { gap: 12px; }
    .hist-img-preview { width: 44px; height: 60px; border-radius: 8px; }
    .hist-title { font-size: 14px; }
    .hist-btn-action { padding: 7px 12px; font-size: 11.5px; }
    .hist-tab-btn { padding: 8px 15px; font-size: 12.5px; }
}

#tab-account { background: linear-gradient(rgba(11, 11, 12, 0.4), rgba(11, 11, 12, 0.6)), url('https://i.postimg.cc/VLtwWx9y/IMG-1116.jpg') center/cover no-repeat !important; background-attachment: fixed !important; min-height: 100vh; }
#auth-section, #profile-section { background: rgba(255, 255, 255, 0.05) !important; backdrop-filter: blur(25px) saturate(200%) !important; -webkit-backdrop-filter: blur(25px) saturate(200%) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important; border-radius: 24px !important; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s; }
#auth-section:hover, #profile-section:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important; }

/* User Profile Header & Avatar */
.user-profile-header-card {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
    padding-bottom: 28px;
}
.user-profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}
.user-profile-avatar-box {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: #141418;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.user-profile-avatar-box:hover {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.25);
}
.user-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
}
.user-profile-status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00e676;
    border: 2.5px solid #141418;
    box-shadow: 0 0 10px #00e676;
}
.user-profile-info-box {
    min-width: 0;
    flex: 1;
}
.user-profile-username {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
    word-break: break-word;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.user-profile-accountid {
    color: #f5c518;
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 2px;
}
.user-profile-tier-status {
    color: #b0b0b8;
    font-size: 14.5px;
}

@media (max-width: 600px) {
    .user-profile-header-card {
        gap: 16px;
        margin-bottom: 22px;
        padding-bottom: 22px;
    }
    .user-profile-avatar-box {
        width: 78px;
        height: 78px;
    }
    .user-profile-status-dot {
        width: 14px;
        height: 14px;
        bottom: 2px;
        right: 2px;
    }
    .user-profile-username {
        font-size: 22px;
    }
    .user-profile-accountid {
        font-size: 15px;
    }
    .user-profile-tier-status {
        font-size: 13px;
    }
}
.auth-input, .auth-btn { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; }
.auth-input:focus { transform: translateY(-3px) scale(1.02); border-color: var(--primary-color) !important; box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3), inset 0 2px 10px rgba(0,0,0,0.5) !important; }
.auth-btn:active { transform: translateY(4px) scale(0.95) !important; box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4) !important; }
.username-input-wrapper { position: relative; margin-bottom: 25px; }
.btn-dice { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: linear-gradient(135deg, #f5c518, #ff9800); border: none; width: 45px; height: 45px; border-radius: 12px; color: black; font-size: 24px; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 5px 15px rgba(245, 197, 24, 0.5); display: flex; justify-content: center; align-items: center; }
.btn-dice:hover { transform: translateY(-50%) scale(1.15) rotate(180deg); box-shadow: 0 10px 25px rgba(245, 197, 24, 0.8); }
.btn-dice:active { transform: translateY(-50%) scale(0.9) rotate(-90deg); }
.success-pop { animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards; }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.auth-tabs { display: flex; border-bottom: 2px solid rgba(255,255,255,0.05); margin-bottom: 30px; }
.auth-tab { flex: 1; text-align: center; padding: 15px; cursor: pointer; color: #666; font-weight: 900; font-size: 16px; letter-spacing: 1px; transition: 0.3s; border-bottom: 3px solid transparent; }
.auth-tab:hover { color: #aaa; }
.auth-tab.active { color: var(--primary-color); border-bottom: 3px solid var(--primary-color); text-shadow: 0 0 10px rgba(229,9,20,0.5); }
.auth-input { width: 100%; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 20px; border-radius: 12px; color: white; font-size: 16px; margin-bottom: 20px; outline: none; transition: 0.3s; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); }
.auth-btn { width: 100%; padding: 16px; background: var(--primary-color); color: white; font-weight: 900; font-size: 18px; border: none; border-radius: 12px; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4); display: flex; justify-content: center; align-items: center; gap: 10px; }
.auth-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6); filter: brightness(1.1); }
.auth-warning-box { background: rgba(229, 9, 20, 0.08); border: 2px dashed #e50914; border-radius: 16px; padding: 20px 25px; margin-bottom: 30px; box-shadow: 0 0 20px rgba(229, 9, 20, 0.2); animation: warningPulseBorder 1.5s infinite alternate; }
.warning-header { color: #ff4e00; font-size: 18px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 0 10px rgba(255, 78, 0, 0.5); }
.warning-header i { font-size: 24px; animation: shake 0.6s infinite; }
.auth-warning-box p { color: #e0e0e0; font-size: 14px; line-height: 1.6; margin-bottom: 12px; text-align: justify; }
.auth-warning-box p:last-child { margin-bottom: 0; }
.auth-warning-box strong { color: #f5c518; font-size: 14.5px; text-shadow: 0 0 5px rgba(245, 197, 24, 0.3); }
.thank-you-text { color: #00e676 !important; font-weight: bold; text-align: center !important; margin-top: 15px; border-top: 1px dashed rgba(255,255,255,0.2); padding-top: 15px; font-size: 15px !important; }

.fw-input { width: 100%; background: rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 12px; color: white; font-size: 16px; margin-bottom: 20px; text-align: center; outline: none; transition: 0.3s; }
.fw-input:focus { border-color: #00c6ff; box-shadow: 0 0 15px rgba(0, 198, 255, 0.3); }
.btn-fw { width: 100%; padding: 15px; border-radius: 10px; border: none; font-size: 16px; font-weight: bold; color: white; background: var(--primary-color); cursor: pointer; transition: 0.3s; }
.btn-fw:hover { filter: brightness(1.2); }
.btn-fw-back { background: transparent; color: #888; margin-top: 15px; border: none; font-size: 14px; cursor: pointer; transition: 0.2s; } .btn-fw-back:hover { color: white; text-decoration: underline; }

/* ================= QUÊN MẬT KHẨU MODAL ================= */
.forgot-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 100050; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; overflow-y: auto; padding: 20px 0; }
.forgot-modal-overlay.show { display: flex; opacity: 1; }
.forgot-modal-box { background: linear-gradient(rgba(11, 11, 12, 0.9), rgba(5, 5, 5, 0.98)); width: 90%; max-width: 450px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); padding: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.8); transform: scale(0.9); transition: 0.3s; position: relative; text-align: center; margin: auto; }
.forgot-modal-overlay.show .forgot-modal-box { transform: scale(1); }
.forgot-step { display: none; animation: fadeIn 0.4s ease; }
.forgot-step.active { display: block; }
.forgot-step h2 { color: white; margin-bottom: 15px; font-size: 24px; text-transform: uppercase; letter-spacing: 1px; }
.forgot-step p { color: #ccc; font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
.forgot-pw-link { text-align: right; color: #aaa; font-size: 14px; margin-bottom: 20px; cursor: pointer; transition: 0.2s; display: block; }
.forgot-pw-link:hover { color: var(--primary-color); }

/* ================= 12. SỰ KIỆN NẠP THẺ & LIÊN HỆ ================= */
.wallet-event-section { width: 100%; max-width: 800px; margin: 60px auto 30px auto; text-align: center; animation: fadeIn 0.8s ease; }
.event-title { font-size: 28px; font-weight: 900; text-transform: uppercase; margin-bottom: 12px; background: linear-gradient(to right, #f5c518, #ff4e00, #f5c518, #ff4e00, #f5c518); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineText 3s linear infinite; text-shadow: 0 0 20px rgba(255, 78, 0, 0.3); display: flex; justify-content: center; align-items: center; gap: 10px; }
.event-title i { color: #ff4e00; -webkit-text-fill-color: initial; animation: pulseGlow 1s infinite alternate; }
.event-desc { color: #ccc; font-size: 15px; margin-bottom: 30px; line-height: 1.6; } .event-desc strong { color: #00e676; }
.event-image-wrapper { position: relative; width: 100%; padding: 6px; border-radius: 16px; overflow: hidden; box-shadow: 0 15px 40px rgba(255, 78, 0, 0.4); transition: transform 0.4s; }
.event-image-wrapper:hover { transform: scale(1.02); box-shadow: 0 20px 50px rgba(255, 78, 0, 0.6); }
.event-image-wrapper::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, rgba(255, 78, 0, 0.1), transparent 30%, #00c6ff, #ff4e00, #f5c518, #ff4e00, #00c6ff, transparent 70%); animation: spinEventBorder 2.5s linear infinite; z-index: 0; }
.event-image-wrapper::after { content: ''; position: absolute; inset: 6px; background: #111; border-radius: 12px; z-index: 1; }
.event-image-wrapper img { position: relative; z-index: 2; width: 100%; height: auto; display: block; border-radius: 12px; object-fit: contain; }
@keyframes spinEventBorder { 100% { transform: rotate(360deg); } }
@keyframes shineText { to { background-position: 200% center; } }

.contact-layout-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; margin-bottom: 50px; }
.file-upload-wrapper { margin-bottom: 20px; } .file-upload-input { display: none; }
.file-upload-label { display: flex; justify-content: center; align-items: center; gap: 10px; background: rgba(0, 198, 255, 0.05); border: 1px dashed #00c6ff; color: #00c6ff; padding: 15px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: bold; font-size: 15px; }
.file-upload-label:hover, .file-upload-label.has-file { background: rgba(0, 198, 255, 0.2); box-shadow: 0 0 15px rgba(0, 198, 255, 0.3); }
.direct-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 25px; }
.agent-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 10px; border-radius: 12px; text-decoration: none; font-weight: 900; transition: 0.3s; text-align: center; border: 1px solid rgba(255,255,255,0.2); font-size: 15px; letter-spacing: 0.5px; overflow: hidden; color: white; background: none !important; }
.agent-btn i, .agent-btn span { position: relative; z-index: 2; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.agent-btn i { font-size: 32px; margin-bottom: 5px; }
.agent-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; filter: blur(4px) brightness(0.8); transform: scale(1.1); z-index: 1; transition: 0.4s ease; }
.agent-btn:hover::before { transform: scale(1.2); filter: blur(3px) brightness(1); }
.agent-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.btn-tele { border-color: rgba(0, 136, 204, 0.5); box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3); } .btn-tele::before { background-image: url('https://i.postimg.cc/KzKXBFzd/A292A3C8_125D_4BF9_B965_77F735C7DDC8.png'); } .btn-tele:hover { border-color: #00c6ff; }
.btn-mail { border-color: rgba(234, 67, 53, 0.5); box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3); } .btn-mail::before { background-image: url('https://i.postimg.cc/BZTQdwdb/56575EA9-6C1E-453E-A0EE-628BF972D3E7.png'); } .btn-mail:hover { border-color: #ffb199; }

.wiki-section { display: flex; flex-direction: column; gap: 20px; }
.wiki-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 25px; border-radius: 16px; transition: 0.3s; position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.wiki-card:hover { background: rgba(255,255,255,0.06); transform: translateX(8px); box-shadow: -5px 10px 20px rgba(0,0,0,0.5);}
.wiki-card::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 5px; }
.wiki-red::before { background: #e50914; box-shadow: 0 0 10px #e50914;} .wiki-blue::before { background: #00c6ff; box-shadow: 0 0 10px #00c6ff;} .wiki-yellow::before { background: #f5c518; box-shadow: 0 0 10px #f5c518;} .wiki-green::before { background: #00e676; box-shadow: 0 0 10px #00e676;}
.wiki-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; } .wiki-header i { font-size: 26px; } .wiki-header h3 { color: white; font-size: 18px; text-transform: uppercase; letter-spacing: 1px;}
.wiki-card p { color: #ccc; font-size: 14.5px; line-height: 1.7; text-align: justify; margin-bottom: 12px; }
.wiki-card ul { list-style: none; color: #aaa; font-size: 14.5px; margin-left: 5px; } .wiki-card ul li { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; } .wiki-card ul li i { margin-top: 4px; }
@media (max-width: 900px) { .contact-layout-grid { grid-template-columns: 1fr; } }

/* ================= 13. EVENT BANNER (ĐÃ THU GỌN VÀ LÀM ĐẸP) ================= */
#top-right-event-banner { position: fixed; top: calc(85px + env(safe-area-inset-top, 0px)); right: calc(15px + env(safe-area-inset-right, 0px)); width: 90%; max-width: 230px; z-index: 998; display: none; pointer-events: auto; }
#top-right-event-banner.show-event { display: block; animation: slideInRightBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes eventBadgePulse { 0% { transform: translateX(-50%) scale(0.96); } 100% { transform: translateX(-50%) scale(1.04); } }
.event-banner-label { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #ff4e00, #f5c518); color: white; padding: 3px 12px; border-radius: 15px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; z-index: 10; box-shadow: 0 5px 10px rgba(255, 78, 0, 0.5); animation: eventBadgePulse 1.5s infinite alternate; white-space: nowrap; }
.event-banner-link { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; cursor: pointer; background: #141419; border: 2px solid #f5c518; box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 10px rgba(245, 197, 24, 0.4), 0 0 20px rgba(255, 78, 0, 0.3); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.event-banner-link::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.6), rgba(255,255,255,0)); transform: skewX(-25deg); animation: sweepLight 3s infinite; z-index: 5; pointer-events: none; }
.event-banner-link:hover { transform: scale(1.05) translateY(-3px); border-color: #fff; box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 20px rgba(245, 197, 24, 0.6), 0 0 40px rgba(255, 78, 0, 0.5); }
.event-banner-link img { width: 100%; height: 100%; object-fit: cover; }
.event-close-btn { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: rgba(0, 0, 0, 0.9); color: white; font-size: 11px; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 20; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); transition: 0.2s; font-family: sans-serif; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.5);}
.event-close-btn:hover { background: #e50914; color: white; transform: scale(1.2); }
@keyframes slideInRightBounce { 0% { transform: translateX(120%); opacity: 0; } 60% { transform: translateX(-15px); opacity: 1; } 80% { transform: translateX(10px); } 100% { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { to { transform: translateX(120%); opacity: 0; } }
@keyframes sweepLight { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
@media (max-width: 768px) { #top-right-event-banner { top: calc(136px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); max-width: 175px; } .event-banner-label { font-size: 9px; padding: 2px 10px; } }

/* LỊCH SỬ ĐƠN NẠP TRONG VÍ */
.wallet-history-list { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; padding-right: 5px; }
.wallet-history-list::-webkit-scrollbar { width: 4px; } .wallet-history-list::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.order-item { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.order-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.o-left { display: flex; flex-direction: column; gap: 5px; }
.o-time { font-size: 12px; color: #888; }
.o-amount { font-size: 16px; font-weight: bold; color: white; }
.o-status { font-size: 12px; font-weight: bold; padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 5px; }
.st-pending { background: rgba(245, 197, 24, 0.1); color: #f5c518; border: 1px solid rgba(245, 197, 24, 0.3); }
.st-success { background: rgba(0, 230, 118, 0.1); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.st-cancelled { background: rgba(229, 9, 20, 0.1); color: #e50914; border: 1px solid rgba(229, 9, 20, 0.3); }
/* ================= 14. PREMIUM MODAL ================= */
.premium-hero-btn { padding: 15px 30px; font-size: 16px; font-weight: 900; border: none; border-radius: 30px; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; margin-top: 15px; background: linear-gradient(45deg, #f5c518, #ff9800); color: #000; box-shadow: 0 5px 20px rgba(245, 197, 24, 0.5); animation: pulseGold 2s infinite; }
.premium-hero-btn.is-active { background: linear-gradient(45deg, #2c2c2c, #1a1a1a); color: #777; border: 1px solid #333; animation: none; box-shadow: none; }
.premium-hero-btn.is-active:hover { color: #f5c518; border-color: #f5c518; }
#header-crown-status { font-size: 22px; margin-right: 15px; display: none; cursor: pointer; filter: drop-shadow(0 0 5px rgba(0,0,0,0.5)); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#header-crown-status:hover { transform: scale(1.2) rotate(10deg); }
.crown-bronze { color: #cd7f32; filter: drop-shadow(0 0 5px #cd7f32); } .crown-silver { color: #e0e0e0; filter: drop-shadow(0 0 8px #fff); } .crown-gold { color: #ffd700; filter: drop-shadow(0 0 12px #ffd700); animation: pulseGold 2s infinite; } .crown-diamond { color: #00f2ff; filter: drop-shadow(0 0 15px #00f2ff); animation: pulseGlow 1.5s infinite alternate; }

.vip-premium-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; background: rgba(0,0,0,0.9); backdrop-filter: blur(15px); z-index: 100000; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; padding: calc(16px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); overflow-y: auto; }
.vip-premium-overlay.show { display: flex; opacity: 1; }
.vip-premium-box { background: #0f0f11; width: 90%; max-width: 600px; border-radius: 24px; border: 1px solid rgba(245, 197, 24, 0.3); padding: 35px; position: relative; transform: scale(0.9); transition: 0.3s; }
.vip-premium-overlay.show .vip-premium-box { transform: scale(1); }
.prem-header { text-align: center; margin-bottom: 30px; } .prem-header i { font-size: 50px; color: #f5c518; margin-bottom: 15px; animation: floatElement 3s infinite; } .prem-header h2 { color: white; font-size: 24px; text-transform: uppercase; letter-spacing: 2px; }
.prem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 25px; }
.prem-card { background: rgba(255,255,255,0.03); border: 2px solid rgba(255,255,255,0.05); border-radius: 15px; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; }
.prem-card.active { border-color: #f5c518; background: rgba(245, 197, 24, 0.05); box-shadow: 0 0 20px rgba(245, 197, 24, 0.2); }
.prem-card .badge { position: absolute; top: -10px; right: -5px; background: #e50914; color: white; font-size: 10px; padding: 4px 8px; border-radius: 20px; font-weight: 900; }
.prem-dur { color: white; font-size: 18px; font-weight: bold; } .prem-price { color: #f5c518; font-size: 20px; font-weight: 900; margin: 5px 0; } .prem-desc { color: #777; font-size: 12px; }
.btn-buy-premium { width: 100%; padding: 18px; border-radius: 12px; border: none; font-size: 18px; font-weight: 900; cursor: pointer; background: linear-gradient(45deg, #f5c518, #ff9800); color: black; transition: 0.3s; text-transform: uppercase; }
.btn-buy-premium:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(245, 197, 24, 0.5); }

/* ================= MODAL TẮT QUẢNG CÁO DÀNH CHO USER THƯỜNG ================= */
.no-ads-modal-box { background: linear-gradient(135deg, #16161a 0%, #0d0d10 100%) !important; border: 1px solid rgba(0, 230, 118, 0.3) !important; box-shadow: 0 20px 60px rgba(0,0,0,0.9), inset 0 0 20px rgba(0, 230, 118, 0.05) !important; max-width: 450px !important; }
.no-ads-header { position: relative; width: 60px; height: 60px; margin: 0 auto 15px auto; background: rgba(229, 9, 20, 0.1); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; color: #fff; border: 2px solid #e50914; box-shadow: 0 0 15px rgba(229, 9, 20, 0.4); }
.slash-line { position: absolute; width: 100%; height: 3px; background: #e50914; transform: rotate(-45deg); box-shadow: 0 0 5px #e50914; }
.no-ads-info-box { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; text-align: left; margin-bottom: 20px; }
.na-row { color: #ccc; font-size: 13.5px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.na-row:last-child { margin-bottom: 0; }
.na-row i { color: #00e676; margin-top: 3px; font-size: 15px; }
.na-warning { color: #888; font-size: 12.5px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 12px; }
.na-warning i { color: #f5c518; }
.btn-buy-noads { width: 100%; padding: 16px; border: none; border-radius: 12px; background: linear-gradient(45deg, #00e676, #00c6ff); color: #000; font-weight: 900; font-size: 16px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 5px 20px rgba(0, 230, 118, 0.3); }
.btn-buy-noads:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 230, 118, 0.5); filter: brightness(1.1); }

/* ================= 15. FOOTER ================= */
.main-footer { padding: 60px 5% 30px 5%; background: #050505; color: #ccc; font-size: 15px; line-height: 1.8; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 30px; }
.footer-grid h4 { font-size: 20px; margin-bottom: 25px; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; color: var(--primary-color); }
.footer-about p { margin-bottom: 15px; text-align: justify; }
.footer-links ul { list-style: none; } .footer-links ul li { margin-bottom: 15px; }
.footer-links ul li a { color: #aaa; text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links ul li a:hover { color: var(--primary-color); transform: translateX(8px); }
.footer-bottom-line { border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: #666; letter-spacing: 1px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ================= 16. APP INSTALL ================= */
.app-install-banner { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; z-index: 99995; box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(255, 152, 0, 0.1); animation: slideUpBanner 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.install-left { display: flex; align-items: center; gap: 15px; cursor: pointer; flex: 1; }
.install-icon-box { width: 45px; height: 45px; background: linear-gradient(135deg, #f5c518, #ff4e00); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 20px; color: white; box-shadow: 0 5px 15px rgba(255, 78, 0, 0.4); animation: floatIcon 3s ease-in-out infinite; }
.install-text-box h4 { color: white; font-size: 15px; font-weight: bold; margin-bottom: 3px; letter-spacing: 0.5px;} .install-text-box p { color: #f5c518; font-size: 12px; font-weight: 500; }
.install-close-btn { background: rgba(255,255,255,0.05); border: none; color: #888; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.3s; margin-left: 10px; }
.install-close-btn:hover { background: #e50914; color: white; transform: rotate(90deg); }
@keyframes slideUpBanner { 0% { bottom: -100px; opacity: 0; } 100% { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); opacity: 1; } }

.app-install-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 100000; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; overflow-y: auto; padding: calc(20px + env(safe-area-inset-top, 0px)) env(safe-area-inset-right, 0px) calc(20px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px); }
.app-install-overlay.show { display: flex; opacity: 1; }
.app-install-box { background: linear-gradient(rgba(11, 11, 12, 0.65), rgba(0, 0, 0, 0.85)), url('https://i.postimg.cc/KzKXBFzd/A292A3C8_125D_4BF9_B965_77F735C7DDC8.png') center/cover no-repeat !important; backdrop-filter: blur(35px) saturate(250%); -webkit-backdrop-filter: blur(35px) saturate(250%); width: 95%; max-width: 520px; border-radius: 28px; border: 1px solid rgba(255,255,255,0.2); padding: 35px 25px; box-shadow: 0 30px 60px rgba(0,0,0,0.9), inset 0 1px 2px rgba(255,255,255,0.4); transform: scale(0.9); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; margin: auto; }
.app-install-overlay.show .app-install-box { transform: scale(1); }
.install-modal-header { text-align: center; margin-bottom: 25px; }
.install-logo-header { width: 75px; height: 75px; margin: 0 auto 15px auto; border-radius: 20px; overflow: hidden; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 10px 30px rgba(229, 9, 20, 0.5), inset 0 0 15px rgba(255,255,255,0.2); animation: floatIcon 3s ease-in-out infinite; }
.install-logo-header img { width: 100%; height: 100%; object-fit: cover; display: block; }
.install-modal-header h2 { color: white; font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;}
.install-os-tabs { display: flex; background: rgba(0,0,0,0.6); border-radius: 12px; padding: 6px; margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);}
.os-tab { flex: 1; padding: 12px; border: none; background: transparent; color: #888; font-size: 16px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.os-tab.active { background: rgba(255,255,255,0.15); color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05);}
.install-tab-content { display: none; animation: fadeIn 0.4s ease; text-align: center;}
.install-tab-content.active { display: block; }
.install-img-wrapper { width: 100%; max-width: 340px; aspect-ratio: 3 / 4; margin: 0 auto 20px auto; border-radius: 18px; overflow: hidden; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5); }
.install-img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.install-success-msg { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 198, 255, 0.15); border: 1px solid rgba(0, 198, 255, 0.4); color: #00c6ff; padding: 12px 25px; border-radius: 30px; font-size: 13.5px; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.install-success-msg i { font-size: 18px; }

/* ================= 17. AD UNLOCK MODAL & OTHERS ================= */
.ad-progress-toast { display: none !important; }
.ad-unlock-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(10px); z-index: 100010; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.ad-unlock-modal-overlay.show { display: flex; opacity: 1; }
.ad-unlock-modal-box { background: linear-gradient(145deg, #18181c, #0b0b0c); border: 1px solid rgba(0, 198, 255, 0.2); border-radius: 20px; width: 90%; max-width: 400px; padding: 25px; text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(0, 198, 255, 0.05); position: relative; transform: translateY(20px); transition: transform 0.3s ease; }
.ad-unlock-modal-overlay.show .ad-unlock-modal-box { transform: translateY(0); }
.ad-unlock-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.05); border: none; color: #888; font-size: 16px; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.ad-unlock-close:hover { background: #e50914; color: white; transform: rotate(90deg); }
.ad-unlock-icon { width: 60px; height: 60px; margin: 0 auto 15px; border-radius: 50%; background: linear-gradient(135deg, #ff4e00, #f5c518); color: white; font-size: 28px; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(245, 197, 24, 0.3); }
.ad-unlock-title { color: white; font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: 0.5px; }
.ad-unlock-desc { color: #aaa; font-size: 14px; line-height: 1.5; margin-bottom: 25px; font-weight: 500; }
.ad-unlock-actions { display: flex; flex-direction: column; gap: 15px; }
.btn-ad-premium { width: 100%; padding: 14px; border-radius: 12px; border: none; font-size: 15px; font-weight: bold; cursor: pointer; color: black; background: linear-gradient(45deg, #f5c518, #ff9800); box-shadow: 0 5px 15px rgba(245, 197, 24, 0.3); transition: 0.3s; text-transform: uppercase; }
.btn-ad-premium:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(245, 197, 24, 0.5); }
.ad-watch-wrapper { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 12px; border: 1px solid rgba(255,255,255,0.05); }
.btn-ad-watch { width: 100%; padding: 12px; border-radius: 8px; border: none; font-size: 14px; font-weight: bold; cursor: pointer; color: white; background: linear-gradient(45deg, #ff416c, #ff4b2b); box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4); transition: 0.3s; margin-bottom: 10px; text-transform: uppercase; animation: pulseRed 2s infinite; }
.btn-ad-watch:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 65, 108, 0.6); animation: none; }
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 65, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0); }
}
.ad-mini-progress-wrapper { display: flex; align-items: center; gap: 10px; }
.ad-mini-progress-bar { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.ad-mini-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #00e676, #00c6ff); border-radius: 10px; transition: width 0.3s ease; }
.ad-mini-progress-text { font-size: 12px; color: #00e676; font-weight: bold; width: 30px; text-align: right; }

/* ================= 18. HIỆU ỨNG LOADING ================= */
.global-loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(15px); z-index: 99999999; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.global-loader-overlay.show { display: flex; opacity: 1; }
.cyber-loader { position: relative; width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; }
.circle-outer { position: absolute; width: 100%; height: 100%; border: 3px solid transparent; border-top-color: #ff4e00; border-bottom-color: #f5c518; border-radius: 50%; animation: spin 1.5s linear infinite; }
.circle-inner { position: absolute; width: 80%; height: 80%; border: 3px solid transparent; border-left-color: #00c6ff; border-right-color: #00e676; border-radius: 50%; animation: spinReverse 1s linear infinite; }
.loader-logo { width: 50%; height: 50%; object-fit: cover; border-radius: 50%; animation: pulseGlow 1.5s infinite alternate; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }

/* ================= 19. THÔNG BÁO VIDEO QUẢNG CÁO CHÍNH GIỮA (PROMO MODAL) ================= */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    visibility: hidden;
}

.welcome-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.promo-modal-card {
    position: relative;
    width: 320px;
    max-width: 88vw;
    background: #131317;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95);
    transform: scale(0.92) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    user-select: none;
    margin: auto;
}

.welcome-modal-overlay.show .promo-modal-card {
    transform: scale(1) translateY(0);
}

/* Nút tắt X */
.promo-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(18, 18, 23, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.promo-close-btn:hover {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Nút Bật/Tắt Âm Thanh */
.promo-sound-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    height: 34px;
    padding: 0 12px;
    border-radius: 17px;
    background: rgba(18, 18, 23, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.promo-sound-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.promo-sound-btn.sound-on {
    background: rgba(245, 197, 24, 0.22);
    border-color: rgba(245, 197, 24, 0.6);
    color: #f5c518;
}

/* Khung Video 9:16 sắc nét */
.promo-video-container {
    position: relative;
    width: 100%;
    max-height: calc(85vh - 85px);
    max-height: calc(85dvh - 85px);
    aspect-ratio: 9 / 16;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.promo-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000000;
}

/* Phần Footer & Nút bấm ngay dưới video */
.promo-modal-footer {
    padding: 12px 14px 14px 14px;
    background: #15151b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
}

.promo-action-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

.promo-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.55);
    filter: brightness(1.08);
}

.promo-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

.promo-cooldown-note {
    color: #8e8e98;
    font-size: 11px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

@media (max-width: 480px) {
    .promo-modal-card {
        width: 300px;
        max-width: 88vw;
        border-radius: 18px;
    }
    .promo-close-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
        top: 10px;
        right: 10px;
    }
    .promo-sound-btn {
        height: 30px;
        padding: 0 10px;
        font-size: 11.5px;
        top: 10px;
        left: 10px;
    }
    .promo-modal-footer {
        padding: 10px 12px 12px 12px;
        gap: 6px;
    }
    .promo-action-btn {
        padding: 11px 14px;
        font-size: 13px;
    }
}

/* ================= 20. TRÌNH PHÁT NHẠC DƯỚI ĐÁY MÀN HÌNH (GLOBAL) ================= */
.bottom-music-player { position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%); width: 96%; max-width: 1000px; height: 95px; background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(10, 10, 15, 0.98)); backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; z-index: 100005; display: flex; justify-content: space-between; align-items: center; padding: 0 25px; box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 20px rgba(0, 0, 0, 0.5); transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.bottom-music-player.show { bottom: calc(25px + env(safe-area-inset-bottom, 0px)); }

.bmp-left { display: flex; align-items: center; gap: 15px; width: 320px; }
.bmp-left img { width: 65px; height: 65px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); }
.bmp-info h4 { color: white; font-size: 16px; font-weight: bold; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; letter-spacing: 0.5px; }
.bmp-info p { color: #aaa; font-size: 13px; }

.bmp-center { flex: 1; max-width: 600px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bmp-controls { display: flex; align-items: center; gap: 30px; }
.bmp-controls button { background: transparent; border: none; color: #ddd; font-size: 20px; cursor: pointer; transition: 0.2s; }
.bmp-controls button:hover { color: white; transform: scale(1.1); }
.bmp-play { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #ff4e00, #e50914); color: white !important; display: flex; justify-content: center; align-items: center; font-size: 18px !important; padding-left: 3px; box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4); }
.bmp-play.playing { padding-left: 0; }
.bmp-play:hover { transform: scale(1.1) !important; box-shadow: 0 8px 20px rgba(229, 9, 20, 0.6); filter: brightness(1.1); }

.bmp-progress { width: 100%; display: flex; align-items: center; gap: 12px; }
.bmp-progress span { color: #aaa; font-size: 12px; width: 45px; text-align: center; font-family: monospace; font-weight: bold; }
.bmp-seek-bar { -webkit-appearance: none; flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; outline: none; cursor: pointer; transition: 0.2s; }
.bmp-seek-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--primary-color); cursor: pointer; transition: 0.2s; box-shadow: 0 0 8px rgba(229,9,20,0.6); }
.bmp-seek-bar::-webkit-slider-thumb:hover { transform: scale(1.4); }

.bmp-right { display: flex; align-items: center; gap: 18px; width: 320px; justify-content: flex-end; }
.bmp-text-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: #ddd; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.bmp-text-btn:hover { background: rgba(255,255,255,0.15); color: white; border-color: var(--primary-color); }
.bmp-icon-btn { background: transparent; border: none; color: #ccc; font-size: 20px; cursor: pointer; transition: 0.2s; }
.bmp-icon-btn:hover { color: white; }
.bmp-close-btn { color: #e50914; margin-left: 10px; background: rgba(229, 9, 20, 0.1); width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; } 
.bmp-close-btn:hover { background: #e50914; color: white; transform: rotate(90deg); }

@media (max-width: 768px) {
    .bottom-music-player { height: auto; flex-direction: column; padding: 15px 15px 20px 15px; width: 92%; bottom: -200px; gap: 15px; }
    .bottom-music-player.show { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
    .bmp-left { width: 100%; padding-right: 120px; justify-content: flex-start; margin-bottom: 0; }
    .bmp-info h4 { max-width: 100%; text-align: left; font-size: 14.5px; }
    .bmp-info p { text-align: left; font-size: 12px; }
    .bmp-center { width: 100%; max-width: 100%; margin-top: 0; gap: 15px; }
    .bmp-controls { gap: 40px; }
    .bmp-right { position: absolute; top: 12px; right: 12px; width: auto; gap: 10px; background: rgba(0,0,0,0.7); padding: 5px 8px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
    .bmp-close-btn { margin-left: 0; width: 28px; height: 28px; font-size: 14px; }
    .bmp-text-btn { padding: 4px 8px; font-size: 12px; }
}

/* ================= 21. ADMIN PANEL (FULLSCREEN ENTERPRISE CONSOLE) ================= */
/* Chế độ Toàn Màn Hình Tuyệt Đối khi mở Admin: ẩn hoàn toàn Header, Search Bar, Banner Sự Kiện & Thanh Đáy của trang chủ */
body.cnp-admin-fullscreen-active {
    overflow: hidden !important;
}
body.cnp-admin-fullscreen-active #header,
body.cnp-admin-fullscreen-active .navbar,
body.cnp-admin-fullscreen-active .search-container-wrapper,
body.cnp-admin-fullscreen-active #search-bar-outer,
body.cnp-admin-fullscreen-active #global-search-bar,
body.cnp-admin-fullscreen-active .global-search-wrapper,
body.cnp-admin-fullscreen-active #top-right-event-banner,
body.cnp-admin-fullscreen-active #floating-event-banner,
body.cnp-admin-fullscreen-active .event-floating-banner,
body.cnp-admin-fullscreen-active #promo-floating-widget,
body.cnp-admin-fullscreen-active #app-install-banner,
body.cnp-admin-fullscreen-active .app-install-banner,
body.cnp-admin-fullscreen-active .bottom-nav,
body.cnp-admin-fullscreen-active #sidebar {
    display: none !important;
}

#tab-admin.active {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 95000 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #090b10 !important;
    color: #e2e8f0;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
}

.admin-fullscreen-shell {
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #090b10;
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-workspace-container {
    width: 100%;
    max-width: 1560px;
    min-width: 0;
    margin: 0 auto;
    padding: 20px 24px 64px 24px;
    box-sizing: border-box;
}

/* THANH HEADER CỐ ĐỊNH TOÀN MÀN HÌNH */
.admin-exec-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 24px;
    background: rgba(9, 11, 16, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-exec-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.admin-back-web-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    background: #141822;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.admin-back-web-btn:hover {
    background: #1e2433;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-2px);
}

.admin-exec-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.admin-exec-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.admin-console-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}
.admin-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 9px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.admin-exec-subtitle {
    color: #64748b;
    font-size: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.admin-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    display: inline-block;
}

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

#admin-2fa-security-modal {
    z-index: 100000100 !important;
}
.admin-security-pill:hover {
    background: #1a202e;
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-exec-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    background: #131722;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.admin-exec-btn:hover {
    background: #1a202e;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.2);
}
.admin-exec-btn.active {
    background: #1e2433;
    border-color: rgba(255, 255, 255, 0.22);
    color: #f8fafc;
}
.admin-exec-btn.privacy-on {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}
.admin-exec-btn-primary {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #090b10;
    font-weight: 700;
}
.admin-exec-btn-primary:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #090b10;
}

/* MÀU CHỮ SỐ LIỆU TINH TẾ (KHÔNG CHÓI MẮT) */
.kpi-val-emerald { color: #34d399 !important; }
.kpi-val-amber { color: #fbbf24 !important; }
.kpi-val-rose { color: #f87171 !important; }

/* 8 THẺ KPI TỔNG QUAN */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.admin-stat-card {
    background: #10131b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.admin-stat-card:hover {
    background: #141822;
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    font-size: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.stat-info { min-width: 0; flex: 1; }
.stat-info p {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    letter-spacing: 0.04em;
}
.stat-info h3 {
    color: #f8fafc;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-sub-meta {
    display: block;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BIỂU ĐỒ TRỰC QUAN ADMIN */
.admin-charts-row {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.admin-chart-card {
    background: #10131b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 18px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.admin-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.admin-chart-header h4 {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-chart-header h4 i { color: #94a3b8; }
.admin-chart-header p { color: #64748b; font-size: 12px; margin: 0; }
.admin-chart-range-pills { display: flex; gap: 6px; }
.chart-range-pill {
    background: #141822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.chart-range-pill:hover { color: #f8fafc; border-color: rgba(255, 255, 255, 0.18); }
.chart-range-pill.active {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #090b10;
    font-weight: 700;
}

.admin-bar-chart-stage {
    min-height: 185px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.admin-chart-bars-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 145px;
    padding: 14px 6px 6px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-chart-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}
.admin-chart-bar-pair {
    width: 100%;
    max-width: 28px;
    height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}
.admin-chart-bar-rev {
    flex: 1;
    background: linear-gradient(180deg, #34d399, rgba(52, 211, 153, 0.25));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s ease;
}
.admin-chart-bar-usr {
    width: 6px;
    background: linear-gradient(180deg, #94a3b8, rgba(148, 163, 184, 0.22));
    border-radius: 3px 3px 0 0;
    min-height: 3px;
    transition: height 0.3s ease;
}
.admin-chart-col:hover .admin-chart-bar-rev { filter: brightness(1.18); }
.admin-chart-day-lbl {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 6px;
    white-space: nowrap;
}
.admin-chart-val-tip {
    font-size: 10px;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.admin-chart-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

.admin-tier-dist-stage { display: flex; flex-direction: column; gap: 11px; }
.admin-dist-row { display: flex; flex-direction: column; gap: 5px; }
.admin-dist-head { display: flex; justify-content: space-between; font-size: 12.5px; color: #cbd5e1; font-weight: 600; }
.admin-dist-track { width: 100%; height: 7px; background: rgba(255, 255, 255, 0.05); border-radius: 999px; overflow: hidden; }
.admin-dist-fill { height: 100%; border-radius: 999px; transition: width 0.35s ease; }

/* BỘ LỌC THỜI GIAN */
.admin-time-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.time-filter-btn {
    background: #10131b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.time-filter-btn:hover { background: #161a25; color: #f8fafc; border-color: rgba(255, 255, 255, 0.16); }
.time-filter-btn.active {
    background: #f8fafc;
    color: #090b10;
    border-color: #f8fafc;
    font-weight: 700;
}
.admin-custom-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* LỊCH FLATPICKR NỔI TRÊN FULLSCREEN ADMIN */
.flatpickr-calendar {
    z-index: 100200 !important;
    background: #131722 !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.85) !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected:hover {
    background: #f8fafc !important;
    border-color: #f8fafc !important;
    color: #090b10 !important;
    font-weight: 700;
}
.flatpickr-day.inRange {
    background: rgba(248, 250, 252, 0.15) !important;
    border-color: transparent !important;
}

/* THANH TAB ĐIỀU HƯỚNG 12 PHÂN HỆ */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-tabs::-webkit-scrollbar { height: 5px; }
.admin-tabs::-webkit-scrollbar-track { background: transparent; }
.admin-tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.admin-tab-btn {
    flex-shrink: 0;
    background: #10131b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    padding: 9px 15px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.admin-tab-btn:hover { color: #f8fafc; background: #161a25; border-color: rgba(255, 255, 255, 0.15); }
.admin-tab-btn.active {
    background: #1e2433;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.25);
    font-weight: 700;
}
.admin-nav-count {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.admin-tab-btn.active .admin-nav-count {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}
.admin-nav-count-warn {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}

/* KHUNG NỘI DUNG CHÍNH */
.admin-panel-content {
    background: #10131b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 20px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.admin-sub-tab { display: none; animation: fadeIn 0.22s ease; width: 100%; min-width: 0; box-sizing: border-box; }
.admin-sub-tab.active { display: block; }

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.admin-search-box {
    flex: 1;
    min-width: 240px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}
.admin-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}
.admin-search-box input {
    flex: 1;
    min-width: 0;
    background: #0b0e14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 10px 14px 10px 38px;
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.admin-search-box input:focus {
    border-color: rgba(255, 255, 255, 0.28);
}
.btn-admin-search {
    background: #f8fafc;
    color: #090b10;
    border: 1px solid #f8fafc;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-admin-search:hover { background: #e2e8f0; }
.admin-filter-select {
    background: #0b0e14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    min-width: 165px;
    box-sizing: border-box;
}

.admin-sub-summary-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 9px 14px;
    margin-bottom: 14px;
    background: #0c0f16;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    font-size: 12.5px;
    color: #94a3b8;
    box-sizing: border-box;
}
.admin-summary-divider { color: rgba(255, 255, 255, 0.16); }

/* BẢNG DỮ LIỆU ENTERPRISE */
.admin-table-wrapper {
    width: 100%;
    max-height: 620px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: #0c0f16;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
.admin-table-wrapper::-webkit-scrollbar { width: 7px; height: 7px; }
.admin-table-wrapper::-webkit-scrollbar-thumb { background: #262c3a; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table thead { position: sticky; top: 0; z-index: 10; }
.admin-table th {
    background: #131722;
    color: #94a3b8;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 13.5px;
    vertical-align: middle;
}
.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
    color: #f8fafc;
}
.admin-td-val {
    display: contents;
}

/* NÚT THAO TÁC TRONG BẢNG (LOẠI BỎ MÀU LÒE LOẸT, CHUẨN GHOST BUTTON TINH TẾ) */
.btn-admin-action {
    background: #161b26 !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 6px 10px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-admin-action:hover {
    background: #232a3b !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    transform: translateY(-1px);
}
.btn-admin-action.act-danger:hover {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}
.btn-admin-action.act-primary {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f8fafc !important;
}

/* PHÂN HỆ THẤU HIỂU NGƯỜI DÙNG (USER INTELLIGENCE) */
.admin-insights-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.admin-insight-card {
    background: #0c0f16;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}
.admin-insight-card:hover {
    background: #131722;
    border-color: rgba(255, 255, 255, 0.16);
}
.insight-card-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.insight-card-val {
    font-size: 19px;
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
}
.insight-card-sub {
    font-size: 11px;
    color: #64748b;
}

.admin-segment-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.segment-filter-pill {
    background: #0c0f16;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.segment-filter-pill:hover {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.2);
}
.segment-filter-pill.active {
    background: #f8fafc;
    color: #090b10;
    border-color: #f8fafc;
    font-weight: 700;
}

/* PUSH GRID & QUICK CHIPS */
.admin-push-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 18px;
    align-items: start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.admin-push-form-card, .admin-push-history-card {
    background: #0c0f16;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.admin-field-label {
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.admin-primary-submit-btn {
    background: #f8fafc !important;
    color: #090b10 !important;
    font-weight: 700 !important;
    margin-top: 8px;
}
.admin-sub-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}
.admin-quick-amount-chips, .admin-quick-reply-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}
.admin-quick-amount-chips button, .admin-quick-reply-chips button {
    background: #141822;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.admin-quick-amount-chips button:hover, .admin-quick-reply-chips button:hover {
    background: #f8fafc;
    color: #090b10;
}

/* SECURITY & HEALTH CARDS */
.admin-security-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.admin-health-card {
    background: #0c0f16;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.health-label { font-size: 11.5px; color: #94a3b8; font-weight: 600; }
.health-value { font-size: 19px; color: #f8fafc; font-weight: 800; }
.health-sub { font-size: 11.5px; color: #64748b; }
.admin-health-actions-card { justify-content: center; gap: 8px; }
.admin-sec-action-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #161b26;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.admin-sec-action-btn:hover { background: #f8fafc; color: #090b10; }
.admin-sec-section-title {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CSS CHO SUB-TABS TRONG BẢNG */
.ticket-sub-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ticket-tab-btn {
    background: #0c0f16;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
}
.ticket-tab-btn:hover { color: #f8fafc; border-color: rgba(255, 255, 255, 0.18); }
.ticket-tab-btn.active {
    background: #f8fafc;
    color: #090b10;
    border-color: #f8fafc;
    font-weight: 700;
}
.ticket-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 6px;
}
.ticket-tab-btn.active .ticket-badge {
    background: #090b10;
    color: #fbbf24;
}
.ticket-content-pane { display: none; }
.ticket-content-pane.active { display: block; animation: fadeIn 0.22s ease; }

/* NÚT XÓA HÀNG LOẠT VÀ CHECKBOX */
.admin-bulk-action-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.btn-admin-bulk-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 9px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
}
.btn-admin-bulk-delete:hover { background: #ef4444; color: #fff; }
.admin-table-checkbox { width: 16px; height: 16px; cursor: pointer; accent-color: #f8fafc; }

/* ĐẢM BẢO MỌI MODAL ADMIN TƯƠNG THÍCH 100% KHUNG HÌNH ĐIỆN THOẠI & TABLET */
#admin-add-balance-modal .global-modal-box,
#admin-deduct-balance-modal .global-modal-box,
#admin-edit-user-modal .global-modal-box,
#admin-add-premium-modal .global-modal-box,
#admin-reply-modal .global-modal-box,
#admin-2fa-security-modal .global-modal-box,
#admin-movie-edit-modal .global-modal-box,
#admin-user-detail-modal .global-modal-box {
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
}

/* RESPONSIVE ĐA THIẾT BỊ (PC, LAPTOP, TABLET, ĐIỆN THOẠI) */
@media (max-width: 1280px) {
    .admin-insights-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .admin-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-charts-row { grid-template-columns: minmax(0, 1fr); }
    .admin-push-grid { grid-template-columns: minmax(0, 1fr); }
    .admin-security-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .admin-exec-header {
        padding: 10px 12px;
        gap: 8px;
    }
    .admin-exec-left {
        width: 100%;
        gap: 10px;
    }
    .admin-back-web-btn {
        padding: 8px 11px;
        flex-shrink: 0;
    }
    .admin-back-web-btn span {
        display: none;
    }
    .admin-console-title {
        font-size: 15.5px;
    }
    .admin-version-badge {
        font-size: 10px;
        padding: 2px 7px;
    }
    .admin-exec-subtitle {
        font-size: 11px;
    }
    .admin-exec-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .admin-exec-btn {
        width: 100%;
        justify-content: center;
        padding: 7px 6px;
        font-size: 11.5px;
        gap: 5px;
        white-space: nowrap;
        box-sizing: border-box;
    }
    .admin-workspace-container {
        padding: 12px 10px 64px 10px;
    }
    .admin-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 14px;
    }
    .admin-insights-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .admin-security-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .admin-health-actions-card {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .admin-health-actions-card .admin-sec-action-btn {
        flex: 1 1 calc(50% - 6px);
    }
    .admin-panel-content {
        padding: 12px 10px;
        border-radius: 12px;
    }
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    .admin-toolbar > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .admin-search-box {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    .admin-search-box input {
        font-size: 13px;
        padding: 9px 10px 9px 34px;
    }
    .btn-admin-search {
        padding: 9px 13px;
        font-size: 12.5px;
    }
    .admin-filter-select {
        flex: 1 1 calc(50% - 6px);
        min-width: 0 !important;
        width: 100%;
        font-size: 12.5px;
        padding: 9px 10px;
    }
    .ticket-sub-tabs {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .ticket-tab-btn {
        flex: 1 1 auto;
        padding: 8px 10px;
        font-size: 12px;
    }
    .admin-sub-summary-bar {
        font-size: 11.5px;
        padding: 8px 11px;
        gap: 6px;
    }
    .admin-bar-chart-stage {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-chart-bars-wrap {
        min-width: 280px;
    }

    /* CHUYỂN ĐỔI BẢNG DỮ LIỆU SANG DẠNG THẺ ENTERPRISE CARD TRÊN MOBILE & TABLET NHỎ */
    .admin-table-wrapper {
        max-height: none;
        overflow-x: visible;
        overflow-y: visible;
        border: none;
        background: transparent;
        border-radius: 0;
    }
    .admin-table {
        min-width: 0 !important;
        width: 100% !important;
        display: block;
    }
    .admin-table thead {
        display: none;
    }
    .admin-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .admin-table tbody tr {
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        background: #0c0f16;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 12px;
        padding: 11px 13px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    .admin-table tbody tr:hover td {
        background: transparent;
    }
    .admin-table tbody td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 7px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 13px;
        word-break: break-word;
    }
    .admin-table tbody td:first-child {
        padding-top: 2px;
    }
    .admin-table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 2px;
    }
    .admin-table tbody td.admin-td-hydrated {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
    }
    .admin-table tbody td.admin-td-hydrated::before {
        content: attr(data-label);
        font-size: 10.5px;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        text-align: left;
        flex: 0 0 36%;
        max-width: 38%;
        padding-top: 2px;
        line-height: 1.35;
    }
    .admin-table tbody td.admin-td-hydrated > .admin-td-val {
        display: block;
        flex: 1 1 60%;
        min-width: 0;
        text-align: right;
        line-height: 1.45;
    }
    /* Ô chứa ảnh bìa phim/nhạc trên Mobile: hiển thị full chiều ngang gọn đẹp */
    .admin-table tbody td.admin-td-media {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-table tbody td.admin-td-media::before {
        display: none;
    }
    .admin-table tbody td.admin-td-media > .admin-td-val {
        text-align: left;
        width: 100%;
    }
    /* Ô chứa các nút Thao tác quản trị trên Mobile: dàn ngang đều nhau ở đáy thẻ */
    .admin-table tbody td.admin-td-actions {
        flex-direction: column;
        align-items: stretch;
        padding-top: 9px;
        margin-top: 2px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-bottom: none;
    }
    .admin-table tbody td.admin-td-actions::before {
        display: none;
    }
    .admin-table tbody td.admin-td-actions > .admin-td-val {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        justify-content: flex-end;
        text-align: center;
    }
    .admin-table tbody td.admin-td-actions > .admin-td-val > div {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .admin-table tbody td.admin-td-actions .btn-admin-action {
        flex: 1 1 auto;
        min-height: 35px;
        padding: 6px 10px;
        font-size: 12px;
    }
    /* Hàng thông báo trống hoặc nút Xem thêm 100 */
    .admin-table tbody td[colspan] {
        display: block !important;
        text-align: center !important;
        border-bottom: none !important;
        padding: 16px 8px !important;
    }
    .admin-table tbody td[colspan]::before {
        display: none !important;
    }
}

@media (max-width: 640px) {
    /* BỘ LỌC THỜI GIAN 4 CỘT x 2 HÀNG CÂN ĐỐI TUYỆT ĐỐI TRÊN ĐIỆN THOẠI */
    .admin-time-filter {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .time-filter-btn {
        width: 100%;
        padding: 7px 4px;
        font-size: 11.5px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }
    /* 8 THẺ KPI TRÊN ĐIỆN THOẠI: BỐ CỤC DỌC CHUYÊN NGHIỆP, SỐ LIỆU RỘNG 100% KHÔNG BAO GIỜ BỊ CẮT */
    .admin-stat-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 11px 12px;
        gap: 7px;
    }
    .stat-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
        border-radius: 8px;
    }
    .stat-info {
        width: 100%;
        min-width: 0;
    }
    .stat-info p {
        font-size: 10px;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .stat-info h3 {
        font-size: clamp(15px, 4.4vw, 18.5px);
        line-height: 1.2;
        margin-bottom: 2px;
    }
    .stat-sub-meta {
        font-size: 10.5px;
    }
    .admin-insight-card {
        padding: 11px 12px;
    }
    .insight-card-label {
        font-size: 10px;
    }
    .insight-card-val {
        font-size: clamp(15px, 4.4vw, 18px);
    }
    .insight-card-sub {
        font-size: 10.5px;
    }
}

@media (max-width: 380px) {
    .admin-time-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-exec-btn {
        font-size: 10.5px;
        padding: 6px 4px;
    }
    .admin-table tbody td.admin-td-hydrated::before {
        flex: 0 0 34%;
        font-size: 10px;
    }
}

/* ================= 22. TRANG PREMIUM CHUYÊN NGHIỆP ================= */
#tab-premium { background-color: #0b0b0c; }
.premium-hero-banner { width: 100%; height: 50vh; min-height: 400px; background: linear-gradient(to bottom, rgba(10,10,12,0.2) 0%, rgba(10,10,12,0.7) 60%, #0a0a0c 100%), url('https://i.postimg.cc/gJqNLcGW/25E1DC0C-A2F3-4C09-8E4A-0F8954610E17.png') center/cover no-repeat; display: flex; justify-content: center; align-items: center; text-align: center; position: relative; margin-top: -85px; padding-top: calc(85px + env(safe-area-inset-top, 0px)); border-bottom: 1px solid rgba(245, 197, 24, 0.1); box-shadow: inset 0 -50px 100px -20px #0a0a0c; }
.premium-hero-content { position: relative; z-index: 10; max-width: 800px; padding: 0 20px; }
.premium-title-glow { font-size: 3.5rem; font-weight: 900; background: linear-gradient(to right, #f5c518, #ffeb3b, #fff, #f5c518); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineText 3s linear infinite; text-transform: uppercase; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(245, 197, 24, 0.4)); }
.premium-hero-content p { color: #ccc; font-size: 1.2rem; line-height: 1.6; }

.premium-status-board { background: linear-gradient(145deg, #121217 0%, #0d0d11 100%); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 28px 32px; margin-top: -60px; position: relative; z-index: 20; box-shadow: 0 24px 60px rgba(0,0,0,0.65); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 44px; max-width: 880px; margin-left: auto; margin-right: auto; }
.ps-left { display: flex; align-items: center; gap: 20px; }
.ps-avatar { width: 72px; height: 72px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; font-size: 30px; color: #64748b; transition: 0.3s; flex-shrink: 0; }
.ps-avatar.is-vip { border-color: rgba(234, 179, 8, 0.45); background: rgba(234, 179, 8, 0.08); color: #facc15; box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15); }
.ps-info h3 { color: #f8fafc; font-size: 22px; font-weight: 800; margin-bottom: 5px; letter-spacing: -0.01em; }
.ps-info p { color: #94a3b8; font-size: 14px; }
.ps-tier-name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.ps-right { text-align: right; background: rgba(255,255,255,0.025); padding: 14px 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.07); }
.ps-right h4 { color: #94a3b8; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.08em; }
.ps-days-left { font-size: 28px; font-weight: 800; color: #f8fafc; display: flex; align-items: baseline; gap: 5px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.ps-days-left span { font-size: 13px; color: #64748b; font-weight: 500; }
.ps-days-left.active { color: #34d399; }
.ps-noads-quick-btn { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); color: #e2e8f0; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; }
.ps-noads-quick-btn:hover { background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.4); color: #facc15; }

.premium-plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.p-plan-card { background: rgba(20,20,25,0.8); border: 2px solid rgba(255,255,255,0.08); padding: 30px 20px; border-radius: 20px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; }
.p-plan-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.p-plan-card.active { border-color: #f5c518; background: linear-gradient(180deg, rgba(245,197,24,0.1) 0%, rgba(0,0,0,0) 100%); box-shadow: 0 10px 30px rgba(245, 197, 24, 0.2); }
.p-plan-card.plan-diamond { border-color: rgba(0, 242, 255, 0.4); }
.p-plan-card.plan-diamond.active { border-color: #00f2ff; background: linear-gradient(180deg, rgba(0,242,255,0.15) 0%, rgba(0,0,0,0) 100%); box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3); }
.plan-badge { position: absolute; top: 15px; right: -30px; background: #e50914; color: white; font-size: 11px; font-weight: bold; padding: 5px 30px; transform: rotate(45deg); letter-spacing: 1px; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.plan-tier { font-size: 13px; color: #cd7f32; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 2px; }
.plan-duration { font-size: 26px; color: white; font-weight: 900; margin-bottom: 10px; }
.plan-price { font-size: 22px; color: #f5c518; font-weight: bold; margin-bottom: 15px; text-shadow: 0 0 10px rgba(245, 197, 24, 0.3); }
.p-plan-card p { color: #888; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
@media (max-width: 1000px) { .premium-plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .premium-plans-grid { grid-template-columns: 1fr; } }

.btn-buy-premium-huge { width: 100%; max-width: 600px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 20px; font-size: 18px; font-weight: 900; border-radius: 15px; border: none; background: linear-gradient(45deg, #f5c518, #ff9800); color: black; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 30px rgba(245, 197, 24, 0.4); text-transform: uppercase; letter-spacing: 1px; }
.btn-buy-premium-huge:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 40px rgba(245, 197, 24, 0.6); filter: brightness(1.1); }
.btn-buy-premium-huge i { font-size: 22px; animation: shake 1s infinite alternate; }

/* ================== UI NÂNG CẤP PREMIUM ================== */
.no-ads-plan-card {
    background: rgba(255, 77, 77, 0.05);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.no-ads-plan-card:hover {
    background: rgba(255, 77, 77, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 77, 77, 0.5);
}
.no-ads-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff4d4d;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(255, 77, 77, 0.5);
}
.no-ads-info { flex: 1; }
.no-ads-duration {
    display: inline-block;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
}
.no-ads-duration strong { color: #00e676; }
.no-ads-price-box {
    text-align: right;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.no-ads-price {
    font-size: 28px;
    font-weight: 900;
    color: #ff4d4d;
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
    margin-bottom: 8px;
}
.no-ads-buy-text {
    font-size: 13px;
    color: white;
    font-weight: bold;
    background: linear-gradient(45deg, #ff4d4d, #ff8080);
    padding: 6px 15px;
    border-radius: 20px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .no-ads-plan-card { flex-direction: column; text-align: center; }
    .no-ads-price-box { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-top: 15px; margin-top: 15px; text-align: center; width: 100%; }
    .no-ads-badge { top: 10px; right: -35px; }
}

.new-premium-grid .p-plan-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.new-premium-grid .p-plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: transparent;
    transition: 0.3s;
}
.new-premium-grid .bronze-card::before { background: #cd7f32; }
.new-premium-grid .silver-card::before { background: #e0e0e0; }
.new-premium-grid .gold-card::before { background: #f5c518; }
.new-premium-grid .diamond-card::before { background: #00f2ff; }

.new-premium-grid .plan-icon { font-size: 35px; margin-bottom: 15px; opacity: 0.8; }
.new-premium-grid .bronze-card .plan-icon, .new-premium-grid .bronze-card .plan-tier { color: #cd7f32; }
.new-premium-grid .silver-card .plan-icon, .new-premium-grid .silver-card .plan-tier { color: #e0e0e0; }
.new-premium-grid .gold-card .plan-icon, .new-premium-grid .gold-card .plan-tier, .new-premium-grid .gold-card .plan-price { color: #f5c518; text-shadow: 0 0 10px rgba(245,197,24,0.3); }
.new-premium-grid .diamond-card .plan-icon, .new-premium-grid .diamond-card .plan-tier, .new-premium-grid .diamond-card .plan-price { color: #00f2ff; text-shadow: 0 0 15px rgba(0,242,255,0.4); }

.new-premium-grid .p-plan-card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.2); }
.new-premium-grid .bronze-card:hover { box-shadow: 0 15px 30px rgba(205,127,50,0.2); }
.new-premium-grid .silver-card:hover { box-shadow: 0 15px 30px rgba(224,224,224,0.2); }
.new-premium-grid .gold-card:hover { box-shadow: 0 15px 30px rgba(245,197,24,0.3); }
.new-premium-grid .diamond-card:hover { box-shadow: 0 20px 40px rgba(0,242,255,0.4); }

.new-premium-grid .p-plan-card.active { transform: scale(1.05); z-index: 2; border: 2px solid; background: rgba(0, 0, 0, 0.6); }
.new-premium-grid .bronze-card.active { border-color: #cd7f32; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.new-premium-grid .silver-card.active { border-color: #e0e0e0; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.new-premium-grid .gold-card.active { border-color: #f5c518; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.new-premium-grid .diamond-card.active { border-color: #00f2ff; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

.silver-badge { background: #e0e0e0; color: black; }
.gold-badge { background: #f5c518; color: black; animation: pulse 2s infinite; }
.diamond-badge { background: linear-gradient(45deg, #00f2ff, #0088ff); color: white; animation: pulse 1.5s infinite; }

.premium-summary-box {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(20, 20, 25, 0.9); padding: 20px 30px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1); margin-bottom: 30px; margin-top: 40px;
    backdrop-filter: blur(10px);
}
.premium-summary-box span { font-size: 18px; color: #aaa; }

.premium-hero-showcase { margin-bottom: 50px; display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; }
.premium-showcase-card {
    width: 100%;
    max-width: 880px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.showcase-banner-box {
    width: 100%;
    background: #09090c;
    position: relative;
    line-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
}

.showcase-perks-table {
    background: #16161c;
    padding: 16px 20px;
}

.perk-table-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.perk-table-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.perk-table-col:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.perk-col-icon {
    font-size: 20px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.perk-col-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0 0 3px 0;
    letter-spacing: 0.2px;
}

.perk-col-info p {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 820px) {
    .perk-table-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .perk-table-col {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 10px 12px;
        gap: 12px;
    }
    .perk-col-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .perk-col-info h4 {
        font-size: 12.5px;
    }
    .perk-col-info p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .showcase-perks-table {
        padding: 12px;
    }
    .perk-table-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .perk-table-col {
        padding: 8px 10px;
        gap: 10px;
    }
    .perk-col-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .perk-col-info h4 {
        font-size: 12px;
    }
    .perk-col-info p {
        font-size: 10.5px;
    }
}

@media (max-width: 500px) { .premium-status-board { flex-direction: column; text-align: center; justify-content: center; } .ps-left { flex-direction: column; } .ps-right { width: 100%; text-align: center; } .ps-days-left { justify-content: center; } }

.premium-plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.p-plan-card { background: rgba(20,20,25,0.8); border: 2px solid rgba(255,255,255,0.08); padding: 30px 20px; border-radius: 20px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; }
.p-plan-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }
.p-plan-card.active { border-color: #f5c518; background: linear-gradient(180deg, rgba(245,197,24,0.1) 0%, rgba(0,0,0,0) 100%); box-shadow: 0 10px 30px rgba(245, 197, 24, 0.2); }
.p-plan-card.plan-diamond { border-color: rgba(0, 242, 255, 0.4); }
.p-plan-card.plan-diamond.active { border-color: #00f2ff; background: linear-gradient(180deg, rgba(0,242,255,0.15) 0%, rgba(0,0,0,0) 100%); box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3); }
.plan-badge { position: absolute; top: 15px; right: -30px; background: #e50914; color: white; font-size: 11px; font-weight: bold; padding: 5px 30px; transform: rotate(45deg); letter-spacing: 1px; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.plan-tier { font-size: 13px; color: #cd7f32; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 2px; }
.plan-duration { font-size: 26px; color: white; font-weight: 900; margin-bottom: 10px; }
.plan-price { font-size: 22px; color: #f5c518; font-weight: bold; margin-bottom: 15px; text-shadow: 0 0 10px rgba(245, 197, 24, 0.3); }
.p-plan-card p { color: #888; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
@media (max-width: 1000px) { .premium-plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .premium-plans-grid { grid-template-columns: 1fr; } }

.btn-buy-premium-huge { width: 100%; max-width: 600px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 20px; font-size: 18px; font-weight: 900; border-radius: 15px; border: none; background: linear-gradient(45deg, #f5c518, #ff9800); color: black; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 30px rgba(245, 197, 24, 0.4); text-transform: uppercase; letter-spacing: 1px; }
.btn-buy-premium-huge:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 40px rgba(245, 197, 24, 0.6); filter: brightness(1.1); }
.btn-buy-premium-huge i { font-size: 22px; animation: shake 1s infinite alternate; }

/* ================== UI NÂNG CẤP PREMIUM ================== */
.no-ads-plan-card {
    background: rgba(255, 77, 77, 0.05);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.no-ads-plan-card:hover {
    background: rgba(255, 77, 77, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 77, 77, 0.5);
}
.no-ads-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff4d4d;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(255, 77, 77, 0.5);
}
.no-ads-info { flex: 1; }
.no-ads-duration {
    display: inline-block;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
}
.no-ads-duration strong { color: #00e676; }
.no-ads-price-box {
    text-align: right;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.no-ads-price {
    font-size: 28px;
    font-weight: 900;
    color: #ff4d4d;
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
    margin-bottom: 8px;
}
.no-ads-buy-text {
    font-size: 13px;
    color: white;
    font-weight: bold;
    background: linear-gradient(45deg, #ff4d4d, #ff8080);
    padding: 6px 15px;
    border-radius: 20px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .no-ads-plan-card { flex-direction: column; text-align: center; }
    .no-ads-price-box { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-top: 15px; margin-top: 15px; text-align: center; width: 100%; }
    .no-ads-badge { top: 10px; right: -35px; }
}

.new-premium-grid .p-plan-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.new-premium-grid .p-plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: transparent;
    transition: 0.3s;
}
.new-premium-grid .bronze-card::before { background: #cd7f32; }
.new-premium-grid .silver-card::before { background: #e0e0e0; }
.new-premium-grid .gold-card::before { background: #f5c518; }
.new-premium-grid .diamond-card::before { background: #00f2ff; }

.new-premium-grid .plan-icon { font-size: 35px; margin-bottom: 15px; opacity: 0.8; }
.new-premium-grid .bronze-card .plan-icon, .new-premium-grid .bronze-card .plan-tier { color: #cd7f32; }
.new-premium-grid .silver-card .plan-icon, .new-premium-grid .silver-card .plan-tier { color: #e0e0e0; }
.new-premium-grid .gold-card .plan-icon, .new-premium-grid .gold-card .plan-tier, .new-premium-grid .gold-card .plan-price { color: #f5c518; text-shadow: 0 0 10px rgba(245,197,24,0.3); }
.new-premium-grid .diamond-card .plan-icon, .new-premium-grid .diamond-card .plan-tier, .new-premium-grid .diamond-card .plan-price { color: #00f2ff; text-shadow: 0 0 15px rgba(0,242,255,0.4); }

.new-premium-grid .p-plan-card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.2); }
.new-premium-grid .bronze-card:hover { box-shadow: 0 15px 30px rgba(205,127,50,0.2); }
.new-premium-grid .silver-card:hover { box-shadow: 0 15px 30px rgba(224,224,224,0.2); }
.new-premium-grid .gold-card:hover { box-shadow: 0 15px 30px rgba(245,197,24,0.3); }
.new-premium-grid .diamond-card:hover { box-shadow: 0 20px 40px rgba(0,242,255,0.4); }

.new-premium-grid .p-plan-card.active { transform: scale(1.05); z-index: 2; border: 2px solid; background: rgba(0, 0, 0, 0.6); }
.new-premium-grid .bronze-card.active { border-color: #cd7f32; box-shadow: 0 0 30px rgba(205,127,50,0.3); }
.new-premium-grid .silver-card.active { border-color: #e0e0e0; box-shadow: 0 0 30px rgba(224,224,224,0.3); }
.new-premium-grid .gold-card.active { border-color: #f5c518; box-shadow: 0 0 40px rgba(245,197,24,0.4); }
.new-premium-grid .diamond-card.active { border-color: #00f2ff; box-shadow: 0 0 50px rgba(0,242,255,0.5); }

.silver-badge { background: #e0e0e0; color: black; }
.gold-badge { background: #f5c518; color: black; animation: pulse 2s infinite; }
.diamond-badge { background: linear-gradient(45deg, #00f2ff, #0088ff); color: white; animation: pulse 1.5s infinite; }

.premium-summary-box {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(20, 20, 25, 0.9); padding: 20px 30px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1); margin-bottom: 30px; margin-top: 40px;
    backdrop-filter: blur(10px);
}
.premium-summary-box span { font-size: 18px; color: #aaa; }
.premium-summary-box strong { font-size: 32px; color: #00f2ff; text-shadow: 0 0 20px rgba(0,242,255,0.5); }

.new-buy-btn { background: linear-gradient(45deg, #00f2ff, #0088ff); color: white; box-shadow: 0 10px 30px rgba(0,242,255,0.4); }
.new-buy-btn:hover { box-shadow: 0 15px 40px rgba(0,242,255,0.6); }
.hidden-by-lock { display: none !important; }

/* ================= 10. UNIFIED PREMIUM FLOW (LUXURY DARK CINEMA) ================= */
.pu-flow-header-block {
    max-width: 820px;
    margin: 0 auto 18px auto;
}
.pu-flow-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid #eab308;
    line-height: 1.3;
}

.premium-unified-flow {
    max-width: 820px;
    margin: 0 auto 56px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pu-step {
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.pu-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.pu-step-num {
    width: 28px;
    height: 28px;
    background: rgba(234, 179, 8, 0.14);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #facc15;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.premium-unified-flow.is-max-flow .pu-step-num {
    background: rgba(225, 29, 72, 0.15);
    border-color: rgba(225, 29, 72, 0.4);
    color: #fb7185;
}
.pu-step-head-text {
    flex: 1;
    min-width: 0;
}
.pu-step-title-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.pu-step-header h3 {
    font-size: 16px;
    color: #f8fafc;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.pu-tier-indicator,
.pu-selected-plan-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.28);
}
.pu-tier-indicator.is-max,
.pu-selected-plan-pill.is-max {
    background: rgba(225, 29, 72, 0.15);
    color: #fda4af;
    border-color: rgba(225, 29, 72, 0.35);
}

/* Trigger Button (Step 1 & Step 2) */
.custom-tier-selector,
.custom-plan-selector {
    position: relative;
    width: 100%;
}
.btn-open-plans {
    width: 100%;
    background: #18181f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-align: left;
}
.btn-open-plans:hover {
    background: #1d1d26;
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-open-plans.active {
    background: #1d1d26;
    border-color: rgba(255, 255, 255, 0.18);
}
.tier-btn-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}
.tier-btn-main {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
}
.tier-btn-subtext {
    color: #94a3b8;
    font-weight: 500;
    font-size: 13.5px;
}
.pu-trigger-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 11px;
    border-radius: 8px;
}
.pu-trigger-action i {
    transition: transform 0.25s ease;
    font-size: 11px;
}

/* Step 1: Tier Cards Container (No Nested Double Border) */
.custom-tiers-list {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.custom-tiers-list.open {
    max-height: 1200px;
    opacity: 1;
    margin-top: 14px;
}
.pu-type-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.pu-type-card {
    background: #17171e;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.pu-type-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.pu-type-card.active {
    border-color: #eab308;
    background: #1a1917;
}
.pu-type-card#pu-type-card-max.active {
    border-color: #e11d48;
    background: #1c1519;
}
.pu-type-card.disabled-locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.pu-type-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.pu-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}
.pu-type-icon.gold {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
}
.pu-type-icon.diamond {
    background: rgba(225, 29, 72, 0.14);
    color: #fb7185;
}
.pu-type-badge-top {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.pu-type-badge-top.hot {
    background: rgba(225, 29, 72, 0.16);
    color: #fda4af;
}
.pu-type-title {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 6px;
}
.pu-type-price-hint {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pu-type-price-hint strong {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
}
.pu-type-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}
.pu-type-checklist li {
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.4;
}
.pu-type-checklist li.check-yes {
    color: #e2e8f0;
}
.pu-type-checklist li.check-yes i {
    color: #10b981;
    font-size: 13px;
}
.pu-type-checklist li.check-no {
    color: #64748b;
}
.pu-type-checklist li.check-no i {
    color: #64748b;
    font-size: 13px;
}
.pu-type-btn {
    width: 100%;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-type-gold,
.btn-type-diamond {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.pu-type-card.active .btn-type-gold {
    background: #eab308;
    color: #09090b;
    border-color: #eab308;
}
.pu-type-card.active .btn-type-diamond {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

/* Step 2: Value Nudge Banner & Clean Package List */
.pu-upsell-nudge {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pu-upsell-nudge.is-promo {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.12) 0%, rgba(234, 179, 8, 0.04) 100%);
    border: 1px dashed rgba(234, 179, 8, 0.4);
    color: #e2e8f0;
}
.pu-upsell-nudge.is-promo:hover {
    background: rgba(234, 179, 8, 0.16);
    border-color: #eab308;
}
.pu-upsell-nudge.is-promo i.fa-fire {
    color: #facc15;
    font-size: 15px;
    flex-shrink: 0;
}
.pu-upsell-nudge.is-promo strong {
    color: #facc15;
}
.pu-upsell-nudge .nudge-action {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #09090b;
    background: #eab308;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pu-upsell-nudge.is-saved {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #d1fae5;
}
.pu-upsell-nudge.is-saved i {
    color: #34d399;
    font-size: 15px;
    flex-shrink: 0;
}
.pu-upsell-nudge.is-saved strong {
    color: #34d399;
}

.custom-plans-list {
    background: #17171e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.custom-plans-list.open {
    max-height: 680px;
    opacity: 1;
    margin-top: 12px;
    overflow-y: auto;
}
.custom-plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease;
}
.custom-plan-item:last-child {
    border-bottom: none;
}
.custom-plan-item.is-value-plan {
    background: rgba(255, 255, 255, 0.015);
}
.custom-plan-item:hover {
    background: rgba(255, 255, 255, 0.045);
}
.custom-plan-item.selected,
.custom-plan-item.active {
    background: rgba(234, 179, 8, 0.09);
    border-left-color: #eab308;
}
.premium-unified-flow.is-max-flow .custom-plan-item.selected,
.premium-unified-flow.is-max-flow .custom-plan-item.active {
    background: rgba(225, 29, 72, 0.11);
    border-left-color: #e11d48;
}
.c-plan-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.c-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}
.c-item-noads .c-icon { color: #94a3b8; background: rgba(148, 163, 184, 0.1); }
.c-item-bronze .c-icon, .c-item-bronze-max .c-icon { color: #d99b66; background: rgba(217, 155, 102, 0.12); }
.c-item-silver .c-icon, .c-item-silver-max .c-icon { color: #e2e8f0; background: rgba(148, 163, 184, 0.14); }
.c-item-gold .c-icon, .c-item-gold-max .c-icon { color: #facc15; background: rgba(234, 179, 8, 0.16); }
.c-item-diamond .c-icon, .c-item-diamond-max .c-icon { color: #38bdf8; background: rgba(56, 189, 248, 0.16); }
.c-item-ruby .c-icon, .c-item-ruby-max .c-icon { color: #fb7185; background: rgba(225, 29, 72, 0.16); animation: none; }

.c-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.c-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}
.c-name {
    font-weight: 700;
    font-size: 15px;
    color: #f8fafc !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin: 0;
}
.c-save-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.c-save-badge.save-tier-green {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.c-save-badge.save-tier-gold {
    background: rgba(234, 179, 8, 0.18);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.4);
}
.c-save-badge.save-tier-cyan {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.38);
}
.c-save-badge.save-tier-ruby {
    background: rgba(225, 29, 72, 0.18);
    color: #fda4af;
    border: 1px solid rgba(225, 29, 72, 0.4);
}
.c-sub {
    font-size: 12.5px;
    color: #64748b;
}
.c-sub.is-highlight-sub {
    color: #cbd5e1;
    font-weight: 500;
}
.c-plan-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    text-align: right;
}
.c-orig-price {
    font-size: 12px;
    color: #64748b;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.c-price {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
}
.custom-plan-item.is-value-plan .c-price {
    color: #facc15;
}
.custom-plan-item.selected .c-price,
.custom-plan-item.active .c-price {
    color: #facc15;
}
.premium-unified-flow.is-max-flow .custom-plan-item.selected .c-price,
.premium-unified-flow.is-max-flow .custom-plan-item.active .c-price {
    color: #fda4af;
}

/* Step 3: Clean Plan Details */
.pu-empty-state {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    color: #94a3b8;
    font-size: 13.5px;
    text-align: center;
}
.pu-plan-details-box {
    background: #17171e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 20px;
    border-radius: 12px;
}
.pu-simple-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #94a3b8;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pu-simple-meta-row strong {
    color: #f8fafc;
    font-weight: 700;
}
.pu-meta-dot {
    color: #475569;
}
.pu-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pu-plan-features li {
    color: #e2e8f0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.45;
}
.pu-plan-features li i {
    color: #10b981;
    font-size: 13px;
    flex-shrink: 0;
}

/* Step 4: Clean Checkout Box */
.pu-checkout-box {
    background: #17171e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}
.pu-invoice-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}
.pu-invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pu-inv-label {
    font-size: 14px;
    color: #94a3b8;
}
.pu-inv-val {
    font-size: 14.5px;
    color: #f8fafc;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.pu-inv-val.is-savings {
    color: #34d399;
}
.pu-invoice-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 2px 0;
}
.pu-inv-total-title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
}
.pu-price-display {
    margin: 0;
}
#pu-price-amount {
    font-size: 24px;
    font-weight: 800;
    color: #facc15;
    font-variant-numeric: tabular-nums;
    margin: 0;
}
.premium-unified-flow.is-max-flow #pu-price-amount {
    color: #fb7185;
}
.pu-warning-msg {
    background: rgba(244, 63, 94, 0.1);
    color: #fda4af;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(244, 63, 94, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.pu-warning-msg i {
    color: #fb7185;
    font-size: 15px;
    flex-shrink: 0;
}

.btn-buy-premium-huge.enhanced {
    max-width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 10px;
    letter-spacing: 0.03em;
    background: #eab308;
    color: #09090b;
    border: none;
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.2);
    transition: all 0.2s ease;
}
.btn-buy-premium-huge.enhanced i {
    animation: none;
    font-size: 16px;
}
.btn-buy-premium-huge.enhanced:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}
.btn-buy-premium-huge.enhanced.state-ready-max {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25);
}
.btn-buy-premium-huge.enhanced.state-insufficient {
    background: #272732;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* Mobile & Tablet Responsive */
@media (max-width: 768px) {
    .premium-status-board {
        padding: 18px;
        margin-top: -36px;
        margin-bottom: 28px;
    }
    .ps-right {
        width: 100%;
        text-align: left;
    }
    .ps-days-left {
        justify-content: flex-start;
    }
    .pu-flow-main-title {
        font-size: 19px;
    }
    .pu-step {
        padding: 16px;
        border-radius: 14px;
    }
    .pu-type-selector-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pu-type-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .btn-open-plans {
        padding: 12px 14px;
        gap: 8px;
    }
    .tier-btn-main {
        font-size: 14px;
    }
    .tier-btn-subtext {
        font-size: 12px;
        width: 100%;
    }
    .pu-trigger-hint {
        display: none;
    }
    .custom-plan-item {
        padding: 12px 14px;
    }
    .c-name {
        font-size: 14px;
    }
    .c-save-badge {
        font-size: 10.5px;
        padding: 2px 6px;
    }
    .c-sub {
        font-size: 11.5px;
    }
    .c-price {
        font-size: 15px;
    }
    .pu-upsell-nudge {
        font-size: 12px;
        padding: 9px 11px;
        flex-wrap: wrap;
    }
    .pu-upsell-nudge .nudge-action {
        display: none;
    }
    .pu-checkout-box,
    .pu-plan-details-box {
        padding: 15px;
    }
    #pu-price-amount {
        font-size: 21px;
    }
}

/* Red Crown for Ruby / Lifetime members */
.crown-ruby,
.crown-ruby-max,
.crown-red {
    color: #ff0055 !important;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.8), 0 0 20px rgba(255, 0, 85, 0.4) !important;
    animation: redCrownGlow 2s infinite alternate !important;
}
@keyframes redCrownGlow {
    from { filter: drop-shadow(0 0 2px #ff0055); }
    to { filter: drop-shadow(0 0 8px #ff2a5f); }
}

/* Video Player Badges */
.video-badge-vip {
    background: rgba(245, 197, 24, 0.15);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.4);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.video-badge-max {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.22), rgba(255, 179, 0, 0.28));
    color: #ffd700;
    border: 1.5px solid rgba(255, 215, 0, 0.75);
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.35);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.video-badge-ad {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.45);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.video-badge-free {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.45);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* ================== COMMUNITY MODAL ================== */
.community-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.community-modal-overlay.show { opacity: 1; }

.community-modal-box {
    background: #0a0a0c;
    border: 2px solid rgba(245, 197, 24, 0.3);
    border-radius: 20px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 197, 24, 0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.community-modal-overlay.show .community-modal-box { transform: scale(1); }


.community-image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}
.community-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.community-join-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px; font-weight: bold; text-transform: uppercase;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    color: white; border: none; border-radius: 12px;
    cursor: pointer; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}
.community-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.6); filter: brightness(1.1);
}
/* ================== WALLET TRANSACTION HISTORY ================== */
.wallet-transaction-history { width: 100%; }
.wallet-tx-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}
.wallet-tx-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.tx-left { display: flex; flex-direction: column; gap: 5px; }
.tx-title { font-weight: bold; color: white; font-size: 15px; }
.tx-date { font-size: 12px; color: #888; }
.tx-right { text-align: right; display: flex; flex-direction: column; gap: 5px; }
.tx-amount { font-size: 16px; font-weight: 900; }
.tx-amount.positive { color: #00e676; }
.tx-amount.negative { color: #ff4d4d; }
.tx-status { font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: bold; text-transform: uppercase; display: inline-block; align-self: flex-end; }
.tx-status.success { background: rgba(0, 230, 118, 0.1); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.tx-status.pending { background: rgba(245, 197, 24, 0.1); color: #f5c518; border: 1px solid rgba(245, 197, 24, 0.3); }
.tx-status.failed { background: rgba(255, 77, 77, 0.1); color: #ff4d4d; border: 1px solid rgba(255, 77, 77, 0.3); }

.auth-divider {
    text-align: center; margin: 20px 0 10px 0; color: #888; font-size: 13px; position: relative; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
    content: ""; position: absolute; top: 50%; width: 25%; height: 1px; background: rgba(255,255,255,0.1);
}
.auth-divider::before { left: 5%; }
.auth-divider::after { right: 5%; }

.google-auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px; border-radius: 25px;
    background: linear-gradient(145deg, #202124, #1a1a1c);
    border: 1px solid rgba(255,255,255,0.1);
    color: white; font-size: 15px; font-weight: bold; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.google-auth-btn img { width: 22px; height: 22px; }
.google-auth-btn:hover {
    background: linear-gradient(145deg, #303134, #2a2a2c);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}



.google-auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; margin-top: 10px; padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.4s ease;
    position: relative; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.google-auth-btn::before {
    content: ""; position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg); transition: all 0.6s ease;
}
.google-auth-btn:hover::before { left: 150%; }
.google-auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00c6ff;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
    transform: translateY(-3px);
    color: #00c6ff;
}
.google-auth-btn img {
    width: 24px; height: 24px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

/* ================== PASSWORD TOGGLE & STRENGTH ================== */
.password-wrapper { position: relative; width: 100%; margin-bottom: 20px; }
.password-wrapper .auth-input { padding-right: 45px; margin-bottom: 0 !important; }
.password-toggle {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #888; font-size: 16px; transition: 0.3s;
}
.password-toggle:hover { color: #fff; }

.password-strength-container {
    width: 100%; margin-top: 8px; margin-bottom: 20px;
    padding: 0 5px; display: flex; flex-direction: column; gap: 5px;
}
.strength-bar-bg {
    width: 100%; height: 5px; background: rgba(255, 255, 255, 0.1);
    border-radius: 3px; overflow: hidden;
}
.strength-bar { height: 100%; width: 0%; border-radius: 3px; transition: all 0.4s ease; }
#pw-strength-text { font-size: 12px; font-weight: 700; text-align: right; letter-spacing: 0.5px; }

/* ================= WALLET MODAL ================= */
.wallet-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.wallet-modal-overlay.show { opacity: 1; pointer-events: auto; }

.wallet-modal-box {
    background: linear-gradient(145deg, #18181b, #0f0f11);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 15px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.wallet-modal-overlay.show .wallet-modal-box { transform: scale(1) translateY(0); }

.wallet-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
}
.wallet-image-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wallet-modal-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 10px 10px 10px;
}

.wallet-btn-understand {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff4d4d, #cc0000); /* Đỏ nổi bật */
    color: #fff;
    color: #111;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    transition: all 0.3s ease;
}
.wallet-btn-understand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.6);
}
.wallet-btn-understand:active {
    transform: translateY(1px);
}

.wallet-btn-contact {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.wallet-btn-contact:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================
   GIAO DIỆN TÁC GIẢ KHÁC (OTHER AUTHORS)
========================================= */
.authors-hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 400px;
    background-image: url('https://i.postimg.cc/Z5HQ2YQv/5968F698-83E3-4791-9E3C-72D7AA4EECE7.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.authors-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,12,0.3) 0%, rgba(10,10,12,0.95) 100%);
    backdrop-filter: blur(3px);
}
.authors-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    transform: translateY(20px);
}
.authors-hero-content h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 800;
}
.authors-hero-content p {
    font-size: 16px;
    color: #ccc;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.author-card {
    background: rgba(25, 25, 30, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
}
.author-card-cover {
    height: 80px;
    width: 100%;
}
.author-card-avatar {
    width: 70px;
    height: 70px;
    background: #111;
    border: 3px solid #1a1a1f;
    border-radius: 50%;
    margin: -35px auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #f5c518;
    position: relative;
    z-index: 2;
}
.author-card-info {
    text-align: center;
    padding: 0 15px 20px 15px;
}
.author-card-info h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}
.author-card-info p {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 12px;
}
.author-followers {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #f5c518;
}

/* =========================================
   GIAO DIỆN TÁC GIẢ KHÁC (V2)
========================================= */
.authors-hero-container {
    width: 100%;
    text-align: center;
    background: #0a0a0c;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.authors-hero-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: contain;
}
.authors-hero-text {
    padding: 20px 20px 0 20px;
}
.authors-hero-text h1 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 800;
}
.authors-hero-text p {
    font-size: 15px;
    color: #aaa;
}

/* Modern Author Cards */
.author-card-modern {
    background: #15151a;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.author-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.2);
}
.author-card-modern-cover {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.author-card-modern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(21,21,26,0) 0%, rgba(21,21,26,1) 100%);
}
.author-card-modern-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #15151a;
    margin: -40px auto 10px auto;
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.author-card-modern-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-card-modern-info {
    text-align: center;
    padding: 0 15px 25px 15px;
}
.author-card-modern-info h4 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 4px;
}
.author-card-modern-info p {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}
.author-followers-badge {
    background: rgba(245, 197, 24, 0.1);
    color: #f5c518;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Empty State */
.empty-state-box {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    border: 2px dashed rgba(255,255,255,0.05);
    border-radius: 15px;
    background: rgba(0,0,0,0.2);
}
.empty-state-box i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Author Profile Full Screen */
#tab-author-profile {
    height: 100vh !important;
    height: 100dvh !important;
}
.author-profile-full {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
    background: #0d0d0f;
    position: relative;
}
.btn-author-back-modern {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top, 0px));
    left: calc(20px + env(safe-area-inset-left, 0px));
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.btn-author-back-modern:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}
.btn-author-share-modern {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    z-index: 10;
}
.btn-author-share-modern:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: scale(1.05);
}
.author-profile-cover-full {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.author-profile-cover-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(13,13,15,0) 0%, rgba(13,13,15,1) 100%);
}
.author-profile-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    margin-top: -60px;
}
.author-profile-header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 25px;
}
@media (min-width: 768px) {
    .author-profile-header-main {
        flex-direction: row;
        align-items: flex-end;
        text-align: left;
    }
}
.author-profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #0d0d0f;
    overflow: hidden;
    background: #222;
}
.author-profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-profile-titles {
    flex: 1;
    margin-top: 15px;
}
@media (min-width: 768px) {
    .author-profile-titles {
        margin-top: 0;
        margin-left: 20px;
        padding-bottom: 10px;
    }
}
.author-profile-titles h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 5px;
}
.author-profile-titles p {
    color: #aaa;
    font-size: 15px;
}
.author-profile-actions {
    margin-top: 20px;
}
@media (min-width: 768px) {
    .author-profile-actions {
        margin-top: 0;
        padding-bottom: 10px;
    }
}
.btn-author-follow {
    background: #f5c518;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn-author-follow:hover {
    transform: scale(1.05);
}

/* Hiệu ứng trượt lên mượt mà cho Trang cá nhân Tác Giả */
#tab-author-profile.active {
    display: block !important;
    animation: slideUpProfile 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUpProfile {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= BADGES FOR AUTHOR PROFILE ================= */
.movie-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.premium-tag {
    background: linear-gradient(135deg, #f5c518 0%, #ff4e00 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Badge Base for Author Movie Cards (NEW & HOT) - Clean, calm, non-AI styling */
.badge-new,
.badge-hot {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3.5px 8.5px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 6px;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    user-select: none;
    pointer-events: none;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease;
}

/* NEW Badge: Clean Deep Sky Blue, Calm & Steady */
.badge-new {
    background: rgba(2, 132, 199, 0.94);
}
.badge-new i {
    color: #ffffff;
    font-size: 9px;
}

/* HOT Badge: Clean Crimson Red, Calm & Steady */
.badge-hot {
    background: rgba(229, 9, 20, 0.94);
}
.badge-hot i {
    color: #fef08a;
    font-size: 9.5px;
}

@media (max-width: 768px) {
    .badge-new,
    .badge-hot {
        top: 6px;
        right: 6px;
        padding: 2.5px 6.5px;
        font-size: 9px;
        letter-spacing: 0.4px;
        border-radius: 4px;
    }
    .badge-new i,
    .badge-hot i {
        font-size: 8.5px;
    }
    .movie-tag {
        top: 6px;
        left: 6px;
        padding: 2.5px 6px;
        font-size: 9px;
        border-radius: 4px;
    }
}

/* ================= AUTHOR PROFILE V3 (STATS, TABS, SUB-CONTENT) ================= */

/* Author Stats */
.author-stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 25px;
}
.author-stat-box {
    text-align: center;
}
.author-stat-box .stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}
.author-stat-box .stat-label {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Donate Button */
.btn-author-donate {
    background: linear-gradient(135deg, #ff4081, #d81b60);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-author-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.6);
}
.author-profile-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Nav Tabs */
.author-nav-container {
    padding: 0 15px;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.author-nav-container {
    width: 100%;
    max-width: 850px;
    margin: 18px auto 0;
    padding: 0 12px;
    box-sizing: border-box;
}

.author-nav-tabs {
    display: flex;
    position: relative;
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
    justify-content: space-between;
}

.author-nav-tabs::-webkit-scrollbar {
    display: none;
}

.author-tab-btn {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: none;
    overflow: hidden;
}

.author-tab-btn i {
    font-size: 15px;
    flex-shrink: 0;
}

.author-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.author-tab-btn.active {
    color: #ffd700;
    background: rgba(245, 197, 24, 0.12);
    border-color: rgba(245, 197, 24, 0.4);
    box-shadow: none;
}

.author-tab-indicator {
    display: none;
}

@media (max-width: 768px) {
    .author-nav-container {
        padding: 0 8px;
        margin-top: 14px;
    }
    .author-nav-tabs {
        gap: 6px;
    }
    .author-tab-btn {
        flex-direction: column;
        padding: 8px 3px;
        font-size: 11px;
        font-weight: 600;
        gap: 4px;
        border-radius: 8px;
        letter-spacing: 0;
        min-height: 52px;
    }
    .author-tab-btn i {
        font-size: 16px;
        margin: 0;
    }
}

@media (max-width: 390px) {
    .author-nav-tabs {
        gap: 4px;
    }
    .author-tab-btn {
        padding: 7px 2px;
        font-size: 10px;
        gap: 3px;
        min-height: 48px;
    }
    .author-tab-btn i {
        font-size: 14px;
    }
}

/* Content Area */
.author-subtab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.author-subtab-content.active {
    display: block;
}

.author-section-title {
    margin-bottom: 20px;
}
.author-section-title h3 {
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Demo Grid for Movies (Re-using some styles from Home but scoped to Author) */
.author-demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}
@media (max-width: 600px) {
    .author-demo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Community Cards */
.author-community-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.community-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.community-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}
.community-card.telegram .comm-icon {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}
.community-card.zalo .comm-icon {
    background: rgba(0, 104, 255, 0.1);
}
.comm-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}
.comm-info {
    flex: 1;
}
.comm-info h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}
.comm-info p {
    color: #888;
    font-size: 13px;
}
.comm-arrow {
    color: #555;
    font-size: 14px;
    transition: transform 0.3s;
}
.community-card:hover .comm-arrow {
    transform: translateX(4px);
    color: #fff;
}

/* ================= AUTHOR PROFILE BUTTONS & MODALS ================= */

/* Follow Button State */
.btn-author-follow {
    transition: all 0.3s ease;
}
.btn-author-follow.following {
    background: rgba(255, 255, 255, 0.1);
    color: #f5c518;
    border: 1px solid #f5c518;
    box-shadow: none;
}
.btn-author-follow.following:hover {
    background: rgba(245, 197, 24, 0.15);
}

/* Author Donate Modal */
.author-donate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.author-donate-modal-overlay.show {
    opacity: 1;
}

.author-donate-modal-box {
    background: linear-gradient(to bottom, #1e1e24, #121214);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 30px 20px;
    position: relative;
    border: 1px solid rgba(255,64,129,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(255,64,129,0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}
.author-donate-modal-overlay.show .author-donate-modal-box {
    transform: scale(1) translateY(0);
}

.author-donate-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.author-donate-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.author-donate-header {
    margin-bottom: 20px;
}
.author-donate-header i.fa-heart {
    font-size: 30px;
    color: #ff4081;
    margin-bottom: 10px;
    animation: heartbeat 1.5s infinite;
}
.author-donate-header h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 5px;
}
.author-donate-header p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
    padding: 0 10px;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

.author-donate-qr {
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.author-donate-qr img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.author-donate-message {
    background: rgba(255, 64, 129, 0.05);
    border-left: 3px solid #ff4081;
    padding: 15px;
    border-radius: 0 12px 12px 0;
    text-align: left;
    position: relative;
}
.author-donate-message .quote-icon {
    position: absolute;
    top: -10px;
    left: 10px;
    color: rgba(255, 64, 129, 0.3);
    font-size: 24px;
}
.author-donate-message p {
    color: #ddd;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 10px;
    margin-top: 5px;
}
.author-sign {
    color: #ff4081;
    font-weight: 700;
    font-size: 14px;
    text-align: right;
}

/* ================= AUTHOR PROFILE V3.1 (ICONS & FOOTER) ================= */
.author-tab-btn i {
    margin-right: 6px;
    font-size: 14px;
}

.author-profile-footer {
    margin-top: 50px;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
}
.author-footer-logo {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.7;
}
.author-profile-footer p {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

/* ================= PREMIUM FOOTER ================= */
.author-profile-footer-premium {
    margin-top: 60px;
    padding: 0 0 40px 0;
    text-align: center;
    position: relative;
}
.footer-premium-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.3), transparent);
    margin: 0 auto 30px auto;
}
.footer-premium-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-author-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
    background: linear-gradient(to right, #f5c518, #ff4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-slogan {
    color: #888;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 20px;
}
.footer-social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.footer-social-links .social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.footer-social-links .social-btn:hover {
    background: #f5c518;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(245, 197, 24, 0.3);
    border-color: transparent;
}
.footer-copyright p {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}
.highlight-platform {
    color: #f5c518;
    font-weight: 600;
}

/* ================= AUTHOR PAGINATION ================= */
.author-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.author-page-btn {
    background: #151515;
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}
.author-page-btn:hover {
    background: #252525;
    color: #fff;
}
.author-page-btn.active {
    background: #e50914; /* Red color matching reference */
    color: #fff;
    border-color: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}
.author-page-dots {
    color: #888;
    letter-spacing: 2px;
    padding: 0 5px;
}

/* ================= AUTHOR VIP TAB STYLES (STUDIO OBSIDIAN & REFINED) ================= */
.author-vip-dashboard {
    padding: 18px 0 12px 0;
    display: flex;
    justify-content: center;
}

.author-vip-status-panel {
    width: 100%;
    max-width: 680px;
    background: #121217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease;
}

.author-vip-status-panel.theme-max {
    border-color: rgba(229, 9, 20, 0.35);
}

.vip-panel-glow {
    display: none !important;
}

.vip-panel-content {
    background: transparent;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.vip-panel-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.vip-panel-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.vip-panel-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.vip-icon-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a1a22;
    border: 1.5px solid rgba(245, 197, 24, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5c518;
    font-size: 17px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.vip-icon-container.theme-max {
    background: #1a1a22;
    border-color: rgba(229, 9, 20, 0.65);
    color: #ff4d5e;
}

.vip-panel-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #f5c518;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #121217;
    color: #111;
    font-size: 7.5px;
}

.vip-panel-badge.theme-max {
    background: #e50914;
    color: #fff;
}

.vip-panel-info {
    min-width: 0;
}

.vip-panel-info h4 {
    margin: 0 0 3px 0;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vip-panel-meta {
    font-size: 12.5px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-panel-meta b {
    color: #e4e4e7;
    font-weight: 600;
}

.meta-status {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-status.status-free {
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-status.status-vip {
    background: rgba(245, 197, 24, 0.12);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.3);
}

.meta-status.status-max {
    background: rgba(229, 9, 20, 0.14);
    color: #ff4d5e;
    border: 1px solid rgba(229, 9, 20, 0.35);
}

.vip-panel-expiry {
    font-size: 11.5px;
    color: #71717a;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

@media (max-width: 540px) {
    .vip-panel-content {
        padding: 14px 15px;
        gap: 10px;
    }
    .vip-panel-avatar-wrap {
        width: 40px;
        height: 40px;
    }
    .vip-panel-info h4 {
        font-size: 14.5px;
    }
    .vip-panel-meta {
        font-size: 12px;
    }
    .vip-panel-expiry {
        font-size: 11px;
    }
}

/* ================= NÚT CHUYỂN ĐỔI VIP VS MAX (PILL SWITCH) ================= */
.author-membership-type-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 25px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px;
    border-radius: 30px;
    box-shadow: none;
    max-width: 520px;
    width: 100%;
}

.author-mem-btn.is-disabled,
.author-mem-btn.locked {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.6);
}
.author-mem-btn.is-disabled:hover,
.author-mem-btn.locked:hover {
    transform: none !important;
    box-shadow: none !important;
}

.author-mem-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: none;
}

.author-mem-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.author-mem-btn#btn-author-mem-vip.active {
    background: #f5c518;
    color: #0f0f12;
    box-shadow: none;
    transform: none;
}
.author-mem-btn#btn-author-mem-vip.active i {
    color: #0f0f12 !important;
}

.author-mem-btn#btn-author-mem-max.active {
    background: #e50914;
    color: #ffffff;
    box-shadow: none;
    transform: none;
}
.author-mem-btn#btn-author-mem-max.active i {
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .author-membership-type-tabs {
        border-radius: 12px;
        padding: 4px;
        gap: 5px;
    }
    .author-mem-btn {
        padding: 9px 8px;
        font-size: 12px;
        border-radius: 8px;
        gap: 5px;
    }
}

/* ================= DANH SÁCH GÓI HỘI VIÊN (CARDS CLEAN FLAT) ================= */
.author-vip-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 10px 0 35px;
}

.vip-pkg-card {
    background: #16161c;
    border-radius: 16px;
    padding: 28px 20px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none;
}

.vip-pkg-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.vip-pkg-card.recommended {
    background: #191922;
    border: 1.5px solid #f5c518;
    box-shadow: none;
    transform: none;
}

.vip-pkg-card.recommended:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

#author-vip-packages-max .vip-pkg-card {
    border-color: rgba(255, 255, 255, 0.1);
}
#author-vip-packages-max .vip-pkg-card:hover {
    border-color: rgba(229, 9, 20, 0.5);
    box-shadow: none;
}

#author-vip-packages-max .vip-pkg-card.recommended {
    border: 1.5px solid #e50914;
    box-shadow: none;
}

.pkg-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #e50914;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: none;
    white-space: nowrap;
}

.pkg-duration {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.pkg-price {
    font-size: 28px;
    font-weight: 800;
    color: #f5c518;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: none;
}

#author-vip-packages-max .pkg-price {
    color: #ffffff;
    text-shadow: none;
}

.pkg-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
    text-align: left;
    flex-grow: 1;
}

.pkg-benefits li {
    font-size: 13.5px;
    color: #cbd5e1;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.pkg-btn {
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    background: #e50914;
    color: #ffffff;
}

.pkg-btn.highlight {
    background: #e50914;
    color: #ffffff;
    box-shadow: none;
}

.pkg-btn:hover {
    filter: brightness(1.08);
    box-shadow: none;
}

.pkg-btn:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .vip-pkg-card.recommended {
        transform: none;
    }
    .vip-pkg-card.recommended:hover {
        transform: none;
    }
}

/* ================= AUTHOR SELECTOR IN SEARCH BAR ================= */
.search-author-selector {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.selector-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
    white-space: nowrap;
}

.selector-trigger:hover {
    color: #fff;
}

.selector-trigger i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.search-author-selector.active .selector-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}

.author-dropdown-menu {
    position: absolute;
    top: 50px;
    right: -15px;
    width: 250px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000;
    max-height: 330px;
    overflow-y: auto;
}

.author-dropdown-menu::-webkit-scrollbar { width: 5px; }
.author-dropdown-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 5px; }
.author-dropdown-menu::-webkit-scrollbar-track { background: transparent; }

.search-author-selector.active .author-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.author-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    color: #eee;
    font-size: 15px;
    font-weight: 500;
}

.author-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(3px);
}

.author-dd-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .search-author-selector { margin-right: 10px; padding-right: 10px; }
    .selector-trigger { font-size: 13px; gap: 5px; }
    .selector-trigger span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
    .author-dropdown-menu { right: -60px; width: 220px; }
}



/* ================= FEATURED AUTHORS (STORIES STYLE) ================= */
.featured-authors-wrapper {
    margin-top: 20px;
    margin-bottom: 40px;
}
.cnp-grp-99 {
    position: relative;
    z-index: 10;
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 10px 30px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.cnp-grp-99::-webkit-scrollbar {
    display: none;
}
.cnp-itm-88 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 105px;
    max-width: 105px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(26, 26, 29, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    padding: 12px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6) !important;
}
.cnp-itm-88:hover {
    transform: translateY(-4px);
    background: rgba(35, 35, 40, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8) !important;
}
.cnp-rng-77 {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c518 0%, #ff4b2b 100%) !important;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}
.cnp-img-66 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #1a1a1d !important;
    background-color: #1a1a1d !important;
    filter: brightness(1.05) contrast(1.05) !important;
}
.cnp-txt-55 {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(to right, #ffffff, #e0e0e0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    letter-spacing: 0.2px;
}



/* SKELETON LOADING EFFECTS */
.skeleton-card {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.skeleton-img {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(90deg, #1a1a1a 0px, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
.skeleton-title {
    width: 80%;
    height: 14px;
    margin: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a1a1a 0px, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}
.skeleton-subtitle {
    width: 50%;
    height: 12px;
    margin: 0 10px 10px 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a1a1a 0px, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ZALO & FACEBOOK BUTTONS */
.btn-zalo { border-color: rgba(0, 104, 255, 0.5); box-shadow: 0 5px 15px rgba(0, 104, 255, 0.3); } 
.btn-zalo::before { background-image: linear-gradient(135deg, #002255 0%, #0068ff 100%); } 
.btn-zalo:hover { border-color: #00c6ff; }

.btn-fb { border-color: rgba(24, 119, 242, 0.5); box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3); } 
.btn-fb::before { background-image: linear-gradient(135deg, #001133 0%, #1877f2 100%); } 
.btn-fb:hover { border-color: #4facfe; }

/* VIDEO GUIDE BUTTON */
.video-guide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    background: linear-gradient(45deg, #e50914, #ff4b2b);
    color: white !important;
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
    animation: pulse-red 2s infinite;
    position: relative;
    overflow: hidden;
}
.video-guide-btn i {
    font-size: 24px;
}
.video-guide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.6);
    background: linear-gradient(45deg, #ff4b2b, #e50914);
}
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* ==========================================================================
   NÂNG CẤP MEDIA MODAL: TAB NGHE AUDIO & XEM VIDEO (VIDEO.JS THEME)
   ========================================================================== */

/* 1. THANH CHUYỂN ĐỔI TAB MEDIA */
.lm-media-switch-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 6px;
    gap: 8px;
    margin-bottom: 22px;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lm-media-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #9da3af;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.lm-media-tab i {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lm-media-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.lm-media-tab:hover i {
    transform: scale(1.18);
}

.lm-media-tab.active#lm-tab-audio {
    background: linear-gradient(135deg, #e50914, #ff334b);
    color: #ffffff;
    box-shadow: none;
}

.lm-media-tab.active#lm-tab-video {
    background: linear-gradient(135deg, #e50914, #ff4e00);
    color: #ffffff;
    box-shadow: none;
}

.lm-tab-badge {
    background: #f5c518;
    color: #0b0b0c;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: normal;
}

/* 2. HEADER VIEW & BADGE TRẠNG THÁI */
.lm-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.lm-media-status-badge {
    font-size: 12px;
    font-weight: 700;
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.lm-badge-video {
    color: #f5c518;
    background: rgba(245, 197, 24, 0.1);
    border-color: rgba(245, 197, 24, 0.35);
    box-shadow: none;
}

/* 3. KHUNG THÔNG BÁO EMPTY STATE (KHI CHƯA CẬP NHẬT AUDIO HOẶC VIDEO) */
.lm-empty-state {
    padding: 45px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    margin-bottom: 22px;
    box-shadow: none;
}

.lm-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ff334b;
    box-shadow: none;
}

.lm-empty-state h4 {
    font-size: 19px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.lm-empty-state p {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 22px auto;
}

.lm-empty-state p strong {
    color: #f5c518;
}

.lm-empty-switch-btn {
    background: linear-gradient(135deg, #e50914, #ff4e00);
    color: #ffffff;
    border: none;
    padding: 11px 26px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.lm-empty-switch-btn:hover {
    filter: brightness(1.08);
}

/* 4. KHUNG VIDEO PLAYER & TRÌNH PHÁT VIDEO.JS */
.lm-video-player-wrapper {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
    aspect-ratio: 16 / 9;
}

.video-js.vjs-theme-cnp {
    width: 100% !important;
    height: 100% !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: #000;
}

/* Big Play Button Customization */
.video-js.vjs-theme-cnp .vjs-big-play-button {
    width: 72px;
    height: 72px;
    line-height: 68px;
    font-size: 34px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    margin-top: -36px !important;
    margin-left: -36px !important;
}

.video-js.vjs-theme-cnp:hover .vjs-big-play-button {
    background: #e50914;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    border-color: #ffffff;
}

/* Video Control Bar */
.video-js.vjs-theme-cnp .vjs-control-bar {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    height: 48px;
}

.video-js.vjs-theme-cnp .vjs-play-progress {
    background: #e50914;
}

.video-js.vjs-theme-cnp .vjs-load-progress {
    background: rgba(255, 255, 255, 0.25);
}

.video-js.vjs-theme-cnp .vjs-load-progress div {
    background: rgba(255, 255, 255, 0.25);
}

.video-js.vjs-theme-cnp .vjs-slider {
    background: rgba(255, 255, 255, 0.15);
}

.video-js.vjs-theme-cnp .vjs-button > .vjs-icon-placeholder:before {
    font-size: 20px;
    line-height: 48px;
}

.video-js.vjs-theme-cnp .vjs-playback-rate .vjs-playback-rate-value {
    font-size: 13px;
    line-height: 48px;
    font-weight: 800;
    color: #f5c518;
}

/* Now playing video banner - Clean, Flat, Normal Design */
.lm-now-playing-video {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #e50914;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.lm-np-cover-wrap {
    position: relative;
    width: 48px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lm-np-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lm-np-cover-wrap .lm-np-live-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #e50914;
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
}

.lm-np-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lm-np-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lm-np-platform-tag {
    font-size: 11px;
    font-weight: 700;
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.25);
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
}

.lm-np-quality-tag {
    font-size: 10px;
    font-weight: 700;
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lm-np-movie-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.lm-np-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.lm-np-ep-badge {
    color: #ffffff;
    font-weight: 700;
    background: #e50914;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lm-np-status-dot {
    color: #888888;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot-pulse {
    width: 6px;
    height: 6px;
    background-color: #00e676;
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 600px) {
    .lm-now-playing-video {
        padding: 8px 10px;
        gap: 10px;
    }
    .lm-np-cover-wrap {
        width: 42px;
        height: 56px;
    }
    .lm-np-movie-title {
        font-size: 13.5px;
    }
    .lm-np-platform-tag {
        font-size: 9.5px;
        padding: 1px 5px;
    }
    .lm-np-ep-badge {
        font-size: 9.5px;
        padding: 1px 6px;
    }
}

/* 5. DANH SÁCH TẬP VIDEO (EPISODES LIST) - Clean Normal Flat */
.lm-video-episodes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v-ep-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    border: none;
    font-size: 15px;
    letter-spacing: 0.5px;
    user-select: none;
    min-height: 50px;
    box-sizing: border-box;
    box-shadow: none;
}

.v-ep-btn-play {
    background: linear-gradient(45deg, #e50914, #ff4e00);
    color: #ffffff;
    box-shadow: none;
    border: 1px solid transparent;
}

.v-ep-btn-play:hover {
    transform: translateX(4px);
    filter: brightness(1.08);
    box-shadow: none;
}

.v-ep-btn-play.active {
    background: linear-gradient(45deg, #e50914, #ff4e00);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
    transform: none;
}

.v-ep-btn-play span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.v-ep-btn-premium {
    background: rgba(245, 197, 24, 0.08);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.3);
    box-shadow: none;
}

.v-ep-btn-premium:hover {
    background: rgba(245, 197, 24, 0.16);
    transform: translateX(4px);
    box-shadow: none;
    border-color: rgba(245, 197, 24, 0.5);
}

.v-ep-btn-premium.active {
    background: rgba(245, 197, 24, 0.18);
    border: 1.5px solid #f5c518;
    box-shadow: none;
    transform: none;
}

.v-ep-btn-premium span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f5c518;
}

.v-ep-btn-premium.active .video-badge-now-playing {
    border-color: rgba(245, 197, 24, 0.9);
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}
.v-ep-btn-premium.active .video-badge-now-playing i {
    color: #f5c518;
}

/* Badges for video buttons */
.video-badge-now-playing {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    animation: pulseGlow 1.5s infinite alternate;
}
.video-badge-now-playing i {
    color: #ff3b50;
    font-size: 11px;
}

.video-badge-free {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.video-badge-ad {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Lời ngỏ Admin trong Khung Video */
.admin-love-message-video {
    margin-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: none;
}

.btn-alm-max {
    background: linear-gradient(45deg, #f5c518, #ff9800);
    color: #0f0f12;
    box-shadow: none;
    font-weight: 800;
}

.btn-alm-max:hover {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    box-shadow: none;
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    .lm-media-switch-bar {
        margin-bottom: 16px;
    }
    .lm-media-tab {
        padding: 10px 14px;
        font-size: 14px;
    }
    .lm-empty-state {
        padding: 30px 16px;
    }
    .lm-empty-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    .video-js.vjs-theme-cnp .vjs-big-play-button {
        width: 56px;
        height: 56px;
        line-height: 52px;
        font-size: 26px;
        margin-top: -28px !important;
        margin-left: -28px !important;
    }
}

/* ================= MÀN HÌNH KHÓA QUẢNG CÁO VIDEO (GATE OVERLAY) ================= */
.lm-video-gate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(18, 18, 26, 0.94), rgba(6, 6, 10, 0.98));
    backdrop-filter: blur(8px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.lm-video-gate-overlay:hover {
    background: radial-gradient(circle at center, rgba(22, 22, 32, 0.94), rgba(8, 8, 12, 0.98));
}

.lm-gate-badge {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff3b50;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lm-gate-play-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e50914, #ff4e00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.lm-video-gate-overlay:hover .lm-gate-play-btn {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.lm-video-gate-overlay h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: 0.3px;
}

.lm-video-gate-overlay p {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.lm-video-gate-overlay p span {
    color: #f5c518;
    font-weight: 600;
}

.lm-gate-btn {
    background: linear-gradient(135deg, #e50914, #ff4e00);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lm-gate-btn:hover {
    filter: brightness(1.08);
}

@media (max-width: 600px) {
    .lm-video-gate-overlay {
        padding: 6px 8px;
        gap: 2px;
    }
    .lm-gate-badge {
        font-size: 8.5px;
        padding: 2px 7px;
        margin-bottom: 2px;
    }
    .lm-gate-play-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
        margin-bottom: 3px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }
    .lm-video-gate-overlay h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .lm-video-gate-overlay p {
        font-size: 9.5px;
        line-height: 1.25;
        margin-bottom: 4px;
    }
    .lm-gate-btn {
        padding: 5px 12px;
        font-size: 10px;
        gap: 4px;
        box-shadow: none;
    }
    .v-ep-btn {
        padding: 12px 16px;
        font-size: 14.5px;
        border-radius: 12px;
        min-height: 48px;
    }
    .video-badge-max, .video-badge-ad, .video-badge-free {
        font-size: 10px;
        padding: 2px 7px;
    }
}

/* ================= NÚT XEM VIDEO HƯỚNG DẪN PREMIUM ================= */
.premium-tutorial-bar-wrapper {
    width: 100%;
    max-width: 880px;
    margin: -25px auto 40px auto;
    display: flex;
    justify-content: center;
}

.btn-premium-tutorial {
    width: 100%;
    background: linear-gradient(135deg, #18181e 0%, #202028 100%);
    border: 1px solid rgba(245, 197, 24, 0.35);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-premium-tutorial:hover {
    background: linear-gradient(135deg, #22222a 0%, #2b2b36 100%);
    border-color: rgba(245, 197, 24, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.btn-premium-tutorial:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-tut-left {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.btn-tut-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c518 0%, #e5a800 100%);
    color: #0b0b0c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.35);
}

.btn-tut-icon i {
    margin-left: 2px;
}

.btn-tut-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.btn-tut-title {
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.btn-tut-subtitle {
    color: #a0a0a8;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.35;
}

.btn-tut-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: rgba(245, 197, 24, 0.1);
    color: #f5c518;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(245, 197, 24, 0.2);
}

.btn-tut-badge .arrow-icon {
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.btn-premium-tutorial:hover .btn-tut-badge .arrow-icon {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .premium-tutorial-bar-wrapper {
        margin: -20px auto 30px auto;
    }
    .btn-premium-tutorial {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 14px;
    }
    .btn-tut-left {
        gap: 12px;
    }
    .btn-tut-icon {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    .btn-tut-title {
        font-size: 14px;
    }
    .btn-tut-subtitle {
        font-size: 11.5px;
    }
    .btn-tut-badge {
        padding: 4px 8px;
        font-size: 11px;
        gap: 5px;
    }
}

/* ================= MODAL XEM VIDEO HƯỚNG DẪN PREMIUM ================= */
.premium-tutorial-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.premium-tutorial-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.premium-tutorial-modal-box {
    width: 100%;
    max-width: 780px;
    max-height: 94vh;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-tutorial-modal-overlay.show .premium-tutorial-modal-box {
    transform: scale(1);
}

.premium-tutorial-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #18181f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ptm-header-badge {
    background: rgba(245, 197, 24, 0.15);
    color: #f5c518;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ptm-header-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 0 0;
}

.ptm-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ptm-close-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

.premium-tutorial-video-wrapper {
    background: #000;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 68vh;
    overflow: hidden;
}

.premium-tutorial-video-wrapper video {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    display: block;
    background: #000;
    outline: none;
}

.premium-tutorial-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #18181f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 15px;
}

.ptm-footer-tip {
    color: #9e9ea7;
    font-size: 12.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ptm-action-btn {
    background: linear-gradient(135deg, #f5c518 0%, #e5a800 100%);
    color: #0b0b0c;
    font-weight: 700;
    font-size: 13.5px;
    border: none;
    border-radius: 12px;
    padding: 8px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ptm-action-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.4);
}

@media (max-width: 600px) {
    .premium-tutorial-modal-box {
        max-height: 96vh;
        border-radius: 16px;
    }
    .premium-tutorial-modal-header {
        padding: 12px 14px;
    }
    .ptm-header-title {
        font-size: 13.5px;
    }
    .premium-tutorial-modal-footer {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .ptm-action-btn {
        width: 100%;
        justify-content: center;
        padding: 11px;
        font-size: 13.5px;
    }
}

/* ================= NÚT ĐĂNG XUẤT TÀI KHOẢN (MÀU ĐỎ HẲN) ================= */
.btn-account-logout {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e50914 0%, #b80610 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
    text-transform: uppercase;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-account-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(229, 9, 20, 0.55);
    filter: brightness(1.08);
}

.btn-account-logout:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

.btn-account-logout i {
    font-size: 16px;
}

/* ================= MODAL XÁC NHẬN ĐĂNG XUẤT ================= */
.logout-confirm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logout-confirm-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.logout-confirm-modal-box {
    position: relative;
    width: 100%;
    max-width: 390px;
    background: linear-gradient(145deg, #181820 0%, #121216 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 28px 24px 22px 24px;
    text-align: center;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

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

.lcm-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.lcm-close-btn:hover {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
    transform: rotate(90deg);
}

.lcm-icon-wrapper {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.28);
    color: #ff4757;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.lcm-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: 0.3px;
}

.lcm-desc {
    color: #9e9ea8;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 24px 0;
    padding: 0 6px;
}

.lcm-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* NÚT HỦY (Ở LẠI) NỔI BẬT HƠN HẲN THEO YÊU CẦU */
.lcm-btn-cancel {
    flex: 1.25;
    padding: 13px 18px;
    background: #ffffff;
    color: #0d0d12;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.lcm-btn-cancel:hover {
    background: #f1f1f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.32);
}

.lcm-btn-cancel:active {
    transform: translateY(0);
}

/* NÚT XÁC NHẬN ĐĂNG XUẤT */
.lcm-btn-confirm {
    flex: 1;
    padding: 13px 16px;
    background: rgba(229, 9, 20, 0.12);
    border: 1.5px solid rgba(229, 9, 20, 0.45);
    color: #ff5252;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.lcm-btn-confirm:hover {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.lcm-btn-confirm:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .logout-confirm-modal-box {
        max-width: 330px;
        padding: 24px 18px 20px 18px;
        border-radius: 18px;
    }
    .lcm-title {
        font-size: 17.5px;
    }
    .lcm-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .lcm-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .lcm-btn-cancel {
        width: 100%;
        padding: 13px;
    }
    .lcm-btn-confirm {
        width: 100%;
        padding: 12px;
    }
}

/* ================= AUTHOR VIP STUDIO MEMBERSHIP SHELL ================= */
.au-vip-studio-shell {
    width: 100%;
    max-width: 680px;
    margin: 6px auto 36px auto;
    background: #121217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.au-vip-studio-shell.theme-max-active {
    border-color: rgba(229, 9, 20, 0.22);
}

.au-studio-section {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.au-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #d4d4d8;
    letter-spacing: 0.2px;
}

.au-section-sub {
    font-size: 12px;
    font-weight: 600;
    color: #71717a;
}

.au-section-sub.is-vip {
    color: #f5c518;
}

.au-section-sub.is-max {
    color: #ff4d5e;
}

/* 1. Tab Đôi Chọn Hạng Hội Viên (VIP vs MAX) */
.au-tier-tabs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.au-tier-tab-card {
    background: #17171e;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 15px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.au-tier-tab-card:hover {
    background: #1c1c25;
    border-color: rgba(255, 255, 255, 0.18);
}

.au-tier-tab-card.disabled-locked {
    opacity: 0.45;
    cursor: not-allowed;
}

#au-type-card-vip.active {
    background: rgba(245, 197, 24, 0.06);
    border-color: rgba(245, 197, 24, 0.65);
    box-shadow: none;
}

#au-type-card-max.active {
    background: rgba(229, 9, 20, 0.07);
    border-color: rgba(229, 9, 20, 0.7);
    box-shadow: none;
}

.au-tier-tab-top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.au-tier-tab-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.au-tier-tab-icon.vip {
    background: rgba(245, 197, 24, 0.12);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.25);
}

.au-tier-tab-icon.max {
    background: rgba(229, 9, 20, 0.14);
    color: #ff4d5e;
    border: 1px solid rgba(229, 9, 20, 0.28);
}

.au-tier-tab-head {
    min-width: 0;
}

.au-tier-tab-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.au-hot-pill {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(229, 9, 20, 0.2);
    color: #ff4d5e;
    border: 1px solid rgba(229, 9, 20, 0.35);
    letter-spacing: 0.3px;
}

.au-tier-tab-tag {
    font-size: 11.5px;
    color: #a1a1aa;
    margin-top: 2px;
}

.au-tier-tab-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #8e8e99;
}

/* 2. Danh Sách Gói Thời Hạn Hiển Thị Trực Tiếp */
.au-plans-direct-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.au-plan-card {
    background: #17171e;
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 13px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.au-plan-card:hover {
    background: #1c1c25;
    border-color: rgba(255, 255, 255, 0.16);
}

.au-plan-card.plan-vip.active {
    background: rgba(245, 197, 24, 0.06);
    border-color: rgba(245, 197, 24, 0.65);
}

.au-plan-card.plan-max.active {
    background: rgba(229, 9, 20, 0.07);
    border-color: rgba(229, 9, 20, 0.7);
}

.au-plan-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.au-plan-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #52525b;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.18s ease;
}

.au-plan-card.plan-vip.active .au-plan-radio {
    border-color: #f5c518;
}

.au-plan-card.plan-max.active .au-plan-radio {
    border-color: #ff4d5e;
}

.au-plan-card.active .au-plan-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #f5c518;
}

.au-plan-card.plan-max.active .au-plan-radio::after {
    background: #ff4d5e;
}

.au-plan-text {
    min-width: 0;
}

.au-plan-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.au-plan-title {
    font-size: 14px;
    font-weight: 700;
    color: #f4f4f5;
}

.au-plan-tag {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #d4d4d8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.au-plan-card.plan-vip.active .au-plan-tag {
    background: rgba(245, 197, 24, 0.14);
    color: #f5c518;
    border-color: rgba(245, 197, 24, 0.3);
}

.au-plan-card.plan-max.active .au-plan-tag {
    background: rgba(229, 9, 20, 0.15);
    color: #ff4d5e;
    border-color: rgba(229, 9, 20, 0.32);
}

.au-plan-sub {
    font-size: 12px;
    color: #8e8e99;
    margin-top: 2px;
}

.au-plan-card-right {
    text-align: right;
    flex-shrink: 0;
}

.au-plan-price {
    font-size: 15.5px;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.au-plan-card.plan-vip.active .au-plan-price {
    color: #f5c518;
}

.au-plan-card.plan-max.active .au-plan-price {
    color: #ff4d5e;
}

/* 3. Khung Tóm Tắt Quyền Lợi Gọn Gàng */
.au-privileges-box {
    background: #17171e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    padding: 15px 16px;
}

.au-priv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 11px;
    margin-bottom: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.au-priv-title {
    font-size: 13px;
    color: #a1a1aa;
}

.au-priv-title strong {
    font-weight: 700;
    color: #f5c518;
    margin-left: 3px;
}

.au-priv-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #d4d4d8;
}

.au-priv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 14px;
}

.au-priv-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.42;
    color: #d4d4d8;
}

.au-priv-list li i {
    color: #a1a1aa;
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

.au-priv-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11.5px;
    color: #71717a;
    line-height: 1.4;
}

/* 4. Khung Thanh Toán Tối Giản: Chỉ Số Tiền Cần Trả & Số Dư Ví Hiện Tại */
.au-checkout-card {
    background: #17171e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.au-checkout-summary-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.au-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.au-summary-item:last-child {
    text-align: right;
}

.au-summary-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.au-summary-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.au-summary-value {
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.au-summary-value.price {
    color: #f5c518;
}

.au-summary-value.wallet {
    color: #e4e4e7;
}

.au-checkout-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 12.5px;
    line-height: 1.4;
}

.au-submit-buy-btn {
    width: 100%;
    height: 48px;
    border-radius: 11px;
    border: none;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.au-submit-buy-btn:hover {
    opacity: 0.94;
}

.au-submit-buy-btn:active {
    transform: scale(0.99);
}

.au-submit-buy-btn.state-vip {
    background: #f5c518;
    color: #09090c;
}

.au-submit-buy-btn.state-max {
    background: #e50914;
    color: #ffffff;
}

.au-submit-buy-btn.state-login {
    background: #27272a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.au-submit-buy-btn.state-topup {
    background: #27272a;
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.35);
}

@media (max-width: 640px) {
    .au-vip-studio-shell {
        padding: 16px 14px;
        gap: 18px;
        border-radius: 15px;
    }

    .au-tier-tabs-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .au-tier-tab-card {
        padding: 13px 14px;
        gap: 6px;
    }

    .au-plan-card {
        padding: 12px 13px;
    }

    .au-plan-title {
        font-size: 13.5px;
    }

    .au-plan-price {
        font-size: 14.5px;
    }

    .au-priv-list {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .au-checkout-card {
        padding: 14px;
    }

    .au-summary-value {
        font-size: 16.5px;
    }
}




