:root {
    --bg-main: #f5f5f9; 
    --glass-bg: rgba(255, 255, 255, 0.85); 
    --glass-border: rgba(0, 0, 0, 0.06); 
    --glass-border-light: rgba(255, 255, 255, 0.6);
    
    /* Giao diện Premium Fox (Cam Đỏ Sang Trọng) */
    --accent-color: #ff5e00; 
    --accent-hover: #e04a00; 
    --accent-gradient: linear-gradient(135deg, #ff8c3b, #ff4500);
    
    --text-main: #1c1c1e; 
    --text-muted: #8e8e93; 
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(255, 94, 0, 0.25);
    --bezier-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }

body { background: #ffffff; color: var(--text-main); overflow-x: hidden; position: relative; display: flex; flex-direction: column; min-height: 100vh; width: 100%; max-width: 100vw; }

header { position: fixed; top: 0; left: 0; width: 100%; height: 75px; background-color: rgba(255, 255, 255, 0.94); backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%); display: flex; justify-content: space-between; align-items: center; padding: 0 24px; z-index: 1000; border-bottom: 1px solid rgba(15, 23, 42, 0.07); box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04); }
.logo-container { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-container img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4); transition: transform 0.4s var(--bezier-smooth); }
.logo-container:hover img { transform: scale(1.1) rotate(5deg); }
.logo-container h1 { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; background: var(--accent-gradient); -webkit-background-clip: text; color: transparent; white-space: nowrap; }
.right-actions { display: flex; align-items: center; gap: 25px; }
.action-icon { font-size: 22px; color: var(--text-main); cursor: pointer; transition: color 0.3s, transform 0.3s var(--bezier-smooth); }
.action-icon:hover { color: var(--accent-color); transform: scale(1.15); }

/* ICON HEADER MỚI (TẮT QC & VƯƠNG MIỆN) */
.ad-block-icon { transition: 0.3s; }
.ad-block-icon.red { color: #ff3b30 !important; animation: pulseRed 2s infinite; }
.ad-block-icon.green { color: #34c759 !important; }
@keyframes pulseRed { 0% { text-shadow: 0 0 0 rgba(255, 59, 48, 0.4); } 50% { text-shadow: 0 0 10px rgba(255, 59, 48, 0.8); } 100% { text-shadow: 0 0 0 rgba(255, 59, 48, 0.4); } }
.premium-crown-icon { display: none; transition: 0.3s; }
.premium-crown-icon.active { display: inline-block; animation: floatCrown 3s ease-in-out infinite; }
@keyframes floatCrown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.crown-dong { color: #b45309 !important; text-shadow: 0 0 8px rgba(180, 83, 9, 0.45); }
.crown-bac { color: #64748b !important; text-shadow: 0 0 8px rgba(100, 116, 139, 0.5); }
.crown-vang { color: #d97706 !important; text-shadow: 0 0 10px rgba(217, 119, 6, 0.65); }
.crown-kimcuong { color: #2563eb !important; text-shadow: 0 0 12px rgba(37, 99, 235, 0.7); }
.crown-rubi, .crown-ruby { color: #e11d48 !important; text-shadow: 0 0 14px rgba(225, 29, 72, 0.8); }
.crown-max { color: #ea580c !important; text-shadow: 0 0 12px rgba(234, 88, 12, 0.75); }
.crown-admin { background: linear-gradient(135deg, #9c27b0, #ff3b30); -webkit-background-clip: text; color: transparent !important; text-shadow: 0 2px 10px rgba(156, 39, 176, 0.5); }

.side-menu { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background-color: #ffffff; border-left: 1px solid rgba(15, 23, 42, 0.08); z-index: 1002; transition: right 0.5s var(--bezier-smooth); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(15, 23, 42, 0.06); }
.side-menu.active { right: 0; }
.side-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--glass-border); }
.side-menu-header h2 { color: var(--text-main); font-size: 20px; font-weight: 700; }
.close-menu-icon { font-size: 24px; color: var(--text-muted); cursor: pointer; transition: 0.3s; }
.close-menu-icon:hover { color: var(--accent-color); transform: rotate(90deg); }
.side-menu-links { display: flex; flex-direction: column; padding: 15px; gap: 10px; }
.side-menu-links a { color: var(--text-main); text-decoration: none; padding: 16px 20px; font-size: 16px; font-weight: 600; border-radius: 16px; transition: all 0.3s ease; display: flex; align-items: center; }
.side-menu-links a:hover, .side-menu-links a.active-link { background: #fff; color: var(--accent-hover); box-shadow: var(--shadow-soft); transform: translateX(5px); }
.side-menu-links i { width: 35px; font-size: 20px; color: var(--text-muted); transition: 0.3s; }
.side-menu-links a:hover i, .side-menu-links a.active-link i { color: var(--accent-hover); }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(3px); z-index: 1001; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.overlay.active { opacity: 1; visibility: visible; }

.search-bar-container { position: fixed; top: 75px; left: 0; width: 100%; background-color: var(--glass-bg); backdrop-filter: blur(20px); padding: 15px 20px; display: none; justify-content: center; z-index: 999; border-bottom: 1px solid var(--glass-border); animation: slideDown 0.4s var(--bezier-smooth) forwards; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.search-bar-container.active { display: flex; }
.search-box-outer {
    width: 100%;
    max-width: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.search-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: rgba(255, 94, 0, 0.45);
    box-shadow: 0 10px 30px rgba(255, 94, 0, 0.15);
}

.search-input-icon {
    padding-left: 20px;
    font-size: 17px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.search-wrapper input {
    flex: 1;
    padding: 16px 14px;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 500;
    min-width: 0;
}

.search-wrapper input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.clear-search-btn:hover {
    color: #ff3b30;
    transform: scale(1.12);
}

.search-wrapper button#executeSearch {
    padding: 0 28px;
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-wrapper button#executeSearch:hover {
    opacity: 0.92;
}

/* =================================================================
   MENU GỢI Ý TÌM KIẾM THỜI GIAN THỰC (REALTIME SUGGESTIONS)
   ================================================================= */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 94, 0, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 0 25px rgba(255, 94, 0, 0.08);
    overflow: hidden;
    z-index: 1050;
    max-height: 480px;
    overflow-y: auto;
    animation: suggestionsFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes suggestionsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.suggestion-header {
    padding: 12px 18px 8px 18px;
    font-size: 11.5px;
    font-weight: 800;
    color: #ff5e00;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 94, 0, 0.04);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    gap: 14px;
    cursor: pointer;
    transition: background 0.18s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

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

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(255, 94, 0, 0.08);
}

.suggestion-thumb {
    width: 48px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

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

.suggestion-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-highlight {
    color: #ff5e00;
    font-weight: 800;
    background: rgba(255, 94, 0, 0.13);
    padding: 1px 3px;
    border-radius: 4px;
}

.suggestion-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.suggestion-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.suggestion-author {
    color: #ff7700;
}

.suggestion-episodes {
    background: rgba(52, 199, 89, 0.12);
    color: #28a745;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.suggestion-views {
    color: var(--text-muted);
}

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

.suggestion-play-action {
    background: linear-gradient(135deg, #ff9500, #ff5e00);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 94, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggestion-play-action:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 94, 0, 0.5);
}

.suggestion-locate-action {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.suggestion-locate-action:hover {
    background: #ff5e00;
    color: #fff;
    border-color: #ff5e00;
    transform: scale(1.1);
}

.suggestion-empty {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.suggestion-empty i {
    font-size: 32px;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.suggestion-empty p {
    font-size: 14px;
    color: var(--text-main);
    margin: 0;
}

.suggestion-empty span {
    font-size: 12px;
    color: var(--text-muted);
}

.suggestion-footer {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-footer kbd {
    background: #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: inherit;
    font-weight: 700;
    font-size: 10px;
    color: #475569;
}

.chat-bubble { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--accent-gradient); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 26px; cursor: pointer; box-shadow: var(--shadow-hover); z-index: 990; transition: transform 0.4s var(--bezier-smooth); }
.chat-bubble:hover { transform: scale(1.15) translateY(-5px); }

.btn-primary { background: var(--accent-gradient); color: #fff; border: none; padding: 14px 35px; border-radius: 20px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.4s var(--bezier-smooth); box-shadow: 0 8px 20px rgba(255, 94, 0, 0.3); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-hover); }

main { margin-top: 100px; padding: 0 20px 40px 20px; display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; }
.tab-content { display: none; width: 100%; max-width: 1100px; flex-direction: column; gap: 20px; animation: fadeInScale 0.5s var(--bezier-smooth) forwards; }
.tab-content.active { display: flex; }
@keyframes fadeInScale { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.section-header { width: 100%; display: flex; align-items: center; margin-bottom: 15px; padding-left: 15px; border-left: 6px solid var(--accent-color); border-radius: 3px; }
.section-header h2 { font-size: 24px; color: var(--text-main); font-weight: 800; letter-spacing: 0.5px; }

/* CỘNG ĐỒNG VÀ LỜI NGỎ */
.community-section { width: 100%; margin-top: 20px; animation: fadeInScale 0.6s var(--bezier-smooth); }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.community-card { position: relative; border-radius: 24px; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; min-height: 160px; box-shadow: var(--shadow-soft); transition: transform 0.4s var(--bezier-smooth), box-shadow 0.4s ease; border: 1px solid var(--glass-border-light); }
.community-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--bezier-smooth); z-index: 1; }
.community-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%); z-index: 2; }
.community-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 136, 204, 0.3); border-color: #0088cc; }
.community-card:hover img { transform: scale(1.1); }
.community-info { position: relative; z-index: 3; padding: 20px; width: 100%; }
.community-info h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.community-info p { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; }

.admin-message-box { background: #fff; border: 1px solid var(--glass-border); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.admin-message-box::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--accent-gradient); }
.admin-message-box h4 { font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.admin-message-box p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 15px; font-weight: 500; text-align: justify; }
.admin-message-box p:last-child { margin-bottom: 0; font-style: italic; color: var(--text-main); font-weight: 600; text-align: left; }
.admin-message-box strong { color: var(--accent-color); }

.movie-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 25px; width: 100%; }
.movie-card { width: 100%; background: #ffffff; border-radius: 24px; border: 1px solid rgba(15, 23, 42, 0.08); display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); transition: all 0.4s var(--bezier-smooth); cursor: pointer; overflow: hidden; position: relative; }
.movie-card:hover { transform: translateY(-10px) scale(1.02); background: #ffffff; border-color: var(--accent-color); box-shadow: var(--shadow-hover); }
.highlight-card { animation: pulseBorder 1.5s infinite alternate; z-index: 10; }
@keyframes pulseBorder { 0% { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0.4); } 100% { box-shadow: 0 0 0 15px rgba(255, 94, 0, 0); transform: scale(1.05); } }

.movie-thumbnail { width: 100%; aspect-ratio: 9 / 13; position: relative; overflow: hidden; border-radius: 24px 24px 0 0; }
.movie-thumbnail .bg-blur { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s var(--bezier-smooth); }
.movie-card:hover .bg-blur { transform: scale(1.12); } 
.movie-thumbnail .update-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 85%; text-align: center; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); color: var(--accent-hover); padding: 10px; border-radius: 16px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-soft); }
.badge-new { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--accent-gradient); color: white; font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 12px; box-shadow: 0 4px 10px rgba(255, 94, 0, 0.4); text-transform: uppercase; letter-spacing: 1px; }
.card-stats { position: absolute; bottom: 10px; left: 10px; z-index: 3; display: flex; gap: 10px; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); padding: 4px 10px; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 600; }
.card-stats i { font-size: 10px; margin-right: 3px; }
.card-stats .fa-heart { color: #ff3b30; }
.movie-info { padding: 16px; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); }
.movie-info h2 { font-size: 16px; font-weight: 700; color: var(--text-main); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }

/* CHI TIẾT PHIM */
.movie-detail-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #ffffff; z-index: 10005; display: flex; justify-content: center; align-items: flex-start; opacity: 0; visibility: hidden; transition: opacity 0.22s ease, visibility 0.22s ease; padding: 0; overflow-y: auto; overflow-x: hidden; }
.movie-detail-modal.active { opacity: 1; visibility: visible; }
.movie-detail-box { position: relative; background: #fff; border-radius: 0; width: 100%; max-width: 800px; min-height: 100vh; padding: 60px 20px 40px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: none; transform: translateY(20px); transition: transform 0.26s var(--bezier-smooth); margin: 0 auto; }
.movie-detail-box::-webkit-scrollbar { width: 0px; }
.movie-detail-box::-webkit-scrollbar-thumb { background: transparent; }
.movie-detail-modal.active .movie-detail-box { transform: translateY(0); }
.close-detail-btn { position: absolute; top: 20px; right: 20px; width: 35px; height: 35px; border-radius: 50%; background: var(--bg-main); border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; transition: 0.3s; z-index: 10; }
.close-detail-btn:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg); }
.detail-poster { width: 160px; aspect-ratio: 9 / 13; border-radius: 20px; margin-bottom: 25px; background-size: cover; background-position: center; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.detail-title { color: var(--text-main); font-size: 24px; font-weight: 800; margin-bottom: 10px; line-height: 1.3; word-break: break-word; }
.detail-publisher { color: var(--text-muted); font-size: 15px; margin-bottom: 15px; font-weight: 500; }
.detail-publisher i { color: var(--accent-color); margin-right: 5px;}
.movie-stats { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 14px; width: 100%; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; margin-bottom: 20px; }
.stat-item { color: var(--text-main); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.stat-item i { color: var(--text-muted); }
.stat-btn { background: rgba(255, 59, 48, 0.1); color: #ff3b30; border: none; padding: 6px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.stat-btn:hover { background: #ff3b30; color: #fff; }

.detail-poster.compact-hidden { display: none; }

/* THANH CHUYỂN CHẾ ĐỘ XEM VIDEO / NGHE AUDIO (CHUẨN APPLE SEGMENTED CONTROL) */
.detail-mode-switcher {
    display: inline-flex;
    align-items: center;
    background: #f2f2f7;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 22px;
    width: 100%;
    max-width: 340px;
    gap: 4px;
}
.mode-switch-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}
.mode-switch-btn i {
    font-size: 14px;
    transition: color 0.22s ease;
}
.mode-switch-btn:hover {
    color: #1d1d1f;
}
.mode-switch-btn.active {
    background: #ffffff;
    color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mode-switch-btn.active i {
    color: var(--accent-color);
}
.mode-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34c759;
    display: inline-block;
    flex-shrink: 0;
}

/* KHU VỰC XEM VIDEO & NGHE AUDIO */
.detail-video-section,
.detail-audio-section {
    width: 100%;
    animation: fadeInDetailMode 0.25s ease;
}
@keyframes fadeInDetailMode {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.seasons-section-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
}
.seasons-label-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #1d1d1f;
}
.seasons-label-left i {
    color: var(--accent-color);
    font-size: 14px;
}
.seasons-section-hint {
    font-size: 12px;
    font-weight: 600;
    color: #8e8e93;
}

/* KHUNG MÀN HÌNH XEM VIDEO CHUYÊN NGHIỆP (CINEMA VIDEO STAGE) */
.cinema-video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    background: #0d0d10;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 0, 0, 0.08);
    user-select: none;
    -webkit-user-select: none;
}
.cinema-video-stage:fullscreen,
.cinema-video-stage:-webkit-full-screen {
    max-height: none;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    border: none;
}
.cinema-ambient-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.35);
    transform: scale(1.15);
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}
.cinema-video-element {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    cursor: pointer;
}

/* Thanh thông tin tập phía trên màn hình Video */
.cinema-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(to bottom, rgba(10, 10, 14, 0.72) 0%, rgba(10, 10, 14, 0) 100%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.cinema-playing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 20, 24, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cinema-playing-badge i {
    color: var(--accent-color);
    font-size: 11px;
}
.cinema-episode-label {
    background: rgba(20, 20, 24, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f5f5f7;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Lớp chờ trước khi bấm phát (Standby Overlay) */
.cinema-standby-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 16, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.25s ease;
}
.cinema-standby-poster {
    width: 82px;
    aspect-ratio: 9 / 13;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 12px;
}
.cinema-standby-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.cinema-big-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: #1d1d1f;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
    padding-left: 3px;
}
.cinema-standby-overlay:hover .cinema-big-play-btn {
    transform: scale(1.06);
    background: #ffffff;
}
.cinema-standby-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.cinema-standby-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 500;
}

/* Lớp Loading khi tải Video */
.cinema-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(10, 10, 14, 0.48);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}
.cinema-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cinemaSpin 0.8s linear infinite;
}
@keyframes cinemaSpin {
    to { transform: rotate(360deg); }
}

/* Lớp thông báo khi bộ phim chưa cập nhật Video */
.cinema-empty-overlay {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 16, 20, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    text-align: center;
}
.cinema-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #d1d1d6;
    margin-bottom: 12px;
}
.cinema-empty-overlay h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}
.cinema-empty-overlay p {
    font-size: 13px;
    color: #a1a1aa;
    max-width: 380px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.cinema-switch-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #ffffff;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cinema-switch-audio-btn:hover {
    background: #f2f2f7;
    transform: translateY(-1px);
}

/* Thanh điều khiển Video phía dưới */
.cinema-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 18px 14px 12px 14px;
    background: linear-gradient(to top, rgba(8, 8, 12, 0.92) 0%, rgba(8, 8, 12, 0.55) 65%, rgba(8, 8, 12, 0) 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.3s ease;
}
.cinema-video-stage.controls-hidden .cinema-controls-bar,
.cinema-video-stage.controls-hidden .cinema-top-bar {
    opacity: 0;
    pointer-events: none;
}
.cinema-video-stage.controls-hidden .cinema-video-element {
    cursor: none;
}

.cinema-timeline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.cinema-time {
    color: #e5e5ea;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: center;
}
.cinema-progress-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.26);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    accent-color: var(--accent-color);
}
.cinema-progress-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}
.cinema-progress-range:hover::-webkit-slider-thumb {
    transform: scale(1.15);
}

.cinema-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.cinema-actions-left,
.cinema-actions-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cinema-ctrl-btn {
    background: transparent;
    border: none;
    color: #f5f5f7;
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.cinema-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}
.cinema-play-toggle {
    background: rgba(255, 255, 255, 0.14);
    width: 36px;
}
.cinema-skip-btn span {
    font-size: 11px;
    font-weight: 700;
}
.cinema-speed-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    padding: 0 10px;
}

@media (max-width: 600px) {
    .cinema-video-stage {
        border-radius: 14px;
    }
    .cinema-standby-poster {
        width: 64px;
        margin-bottom: 8px;
    }
    .cinema-big-play-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .cinema-standby-title {
        font-size: 14px;
    }
    .cinema-controls-bar {
        padding: 14px 10px 8px 10px;
    }
    .cinema-ctrl-btn {
        height: 30px;
        min-width: 28px;
        padding: 0 6px;
        font-size: 13px;
    }
}

.seasons-container { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; margin-bottom: 25px; }
.season-btn { background: var(--bg-main); border: 1px solid var(--glass-border); color: var(--text-main); font-weight: 700; font-size: 14px; padding: 12px 5px; border-radius: 12px; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.season-btn:hover { background: #fff; border-color: var(--accent-color); color: var(--accent-color); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.season-btn.playing { background: var(--accent-gradient) !important; color: #fff !important; border: 1px solid transparent !important; box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3) !important; }
.locked-btn { color: #a1a1aa !important; }

.premium-required-btn { background: linear-gradient(135deg, #fef3c7, #fde68a) !important; border: 1px solid #fbbf24 !important; color: #b45309 !important; font-weight: 800; position: relative; overflow: hidden; transition: all 0.3s var(--bezier-smooth); box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1); }
.premium-required-btn::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%); transform: rotate(30deg) translateX(-100%); animation: shineEffect 2.5s infinite; pointer-events: none; }
.premium-required-btn:hover { background: linear-gradient(135deg, #fcd34d, #fbbf24) !important; color: #92400e !important; border-color: #f59e0b !important; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important; transform: translateY(-2px); }
.premium-required-btn.playing { background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; color: #fff !important; border: 1px solid #d97706 !important; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5) !important; }
.premium-required-btn .crown-icon { margin-right: 5px; color: #b45309; transition: color 0.3s; }
.premium-required-btn.playing .crown-icon { color: #fff !important; }
@keyframes shineEffect { 0% { transform: rotate(30deg) translateX(-100%); } 20%, 100% { transform: rotate(30deg) translateX(100%); } }

.premium-notice-box { width: 100%; background: linear-gradient(135deg, #fffaf0, #fff5e6); border: 1px solid rgba(255, 140, 59, 0.3); padding: 20px; border-radius: 20px; text-align: left; }
.premium-notice-box h4 { color: #d97706; font-size: 16px; margin-bottom: 8px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.premium-notice-box p { color: var(--text-main); font-size: 13px; line-height: 1.6; margin-bottom: 15px; font-weight: 500; }
.premium-btn { width: 100%; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); padding: 12px; font-size: 15px; }
.premium-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }

/* TRÌNH PHÁT AUDIO */
body.player-active { padding-bottom: 124px; }
.global-player { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 980px; height: auto; min-height: 84px; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 94, 0, 0.08); z-index: 10020; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 18px; animation: slideUpPlayer 0.45s var(--bezier-smooth) forwards; }
@keyframes slideUpPlayer { from { transform: translate(-50%, 150%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (min-width: 769px) {
    .global-player:not([style*="display: none"]) { display: flex !important; }
}
.gp-info { display: flex; align-items: center; gap: 12px; flex: 0 1 28%; min-width: 210px; max-width: 290px; cursor: pointer; padding: 5px 10px 5px 5px; margin: -5px 0 -5px -5px; border-radius: 14px; transition: background-color 0.18s ease, transform 0.15s ease; user-select: none; }
.gp-info:hover { background-color: rgba(255, 94, 0, 0.06); }
.gp-info:active { transform: scale(0.985); }
.gp-info:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.gp-thumb { width: 54px; height: 54px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: #f1f5f9; border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1); }
.gp-text { display: flex; flex-direction: column; min-width: 0; flex: 1; overflow: hidden; }
.gp-title { font-size: 14.5px; font-weight: 750; color: var(--text-main); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; line-height: 1.3; }
.gp-sub-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
.gp-season { font-size: 12.5px; color: var(--accent-color); font-weight: 700; white-space: nowrap; }
.gp-open-cue { font-size: 11px; font-weight: 600; color: #64748b; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; transition: color 0.18s ease; }
.gp-open-cue i { font-size: 9px; }
.gp-info:hover .gp-open-cue { color: #ea580c; }

.gp-controls { flex: 1; display: flex; flex-direction: column; align-items: center; max-width: 470px; min-width: 240px; gap: 6px; }
.gp-buttons { display: flex; align-items: center; gap: 10px; }
.ctrl-btn { background: transparent; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; transition: all 0.18s ease; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; }
.ctrl-btn:hover:not(:disabled) { background: rgba(15, 23, 42, 0.06); color: var(--text-main); }
.ctrl-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.gp-skip-btn { width: auto; height: 34px; padding: 0 9px; border-radius: 999px; gap: 4px; font-size: 15px; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; }
.gp-skip-btn:hover { background: rgba(255, 94, 0, 0.08); border-color: rgba(255, 94, 0, 0.35); color: #ea580c; }
.gp-skip-sec { font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: -0.2px; }
.gp-ep-nav-btn { width: 32px; height: 32px; font-size: 14px; color: #475569; }
.text-btn { font-size: 13px; font-weight: 800; }
.play-pause-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: #0f172a; color: #ffffff; font-size: 16px; cursor: pointer; transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18); }
.play-pause-btn:hover { transform: scale(1.06); background: var(--accent-color); box-shadow: 0 6px 16px rgba(255, 94, 0, 0.32); }

.gp-progress { display: flex; align-items: center; gap: 9px; width: 100%; }
.gp-progress span { color: #64748b; font-size: 11.5px; font-weight: 600; min-width: 38px; text-align: center; }
.gp-progress input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 5px; background: linear-gradient(to right, #ff5e00 var(--gp-pct, 0%), #e2e8f0 var(--gp-pct, 0%)); border-radius: 999px; outline: none; cursor: pointer; accent-color: var(--accent-color); transition: height 0.15s ease; }
.gp-progress input[type="range"]:hover { height: 6px; }
.gp-progress input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; border: 2.5px solid #ff5e00; box-shadow: 0 2px 6px rgba(255, 94, 0, 0.35); transition: transform 0.15s ease; }
.gp-progress input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.gp-progress input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #ffffff; border: 2.5px solid #ff5e00; box-shadow: 0 2px 6px rgba(255, 94, 0, 0.35); }

.gp-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; justify-content: flex-end; }
.gp-speed-pill { font-variant-numeric: tabular-nums; font-weight: 750; color: #334155; }
.gp-speed-pill.is-fast { background: rgba(255, 94, 0, 0.12); border-color: rgba(255, 94, 0, 0.45); color: #ea580c; }
.close-gp-btn { color: #94a3b8; width: 32px; height: 32px; font-size: 16px; flex-shrink: 0; }
.close-gp-btn:hover { background: #fee2e2; color: #dc2626; }

/* PHÂN TRANG */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; margin-bottom: 20px; flex-wrap: wrap; width: 100%; }
.page-btn { min-width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--glass-border); color: var(--text-main); font-size: 17px; font-weight: 700; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s var(--bezier-smooth); box-shadow: var(--shadow-soft); padding: 0 10px; }
.page-btn:hover:not(.active):not(.dots):not(.disabled) { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.page-btn.active { background: var(--accent-gradient); color: #fff; border: none; box-shadow: 0 8px 20px rgba(255, 94, 0, 0.4); transform: scale(1.05); }
.page-btn.dots { background: transparent; border: none; box-shadow: none; font-size: 20px; color: var(--text-muted); cursor: default;}
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* TRUNG TÂM TRỢ GIÚP */
.contact-page-title { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; color: var(--text-main); margin-bottom: 20px; border-left: 5px solid var(--accent-color); padding-left: 15px; width: 100%; max-width: 550px; margin-left: auto; margin-right: auto; }
.contact-container { width: 100%; max-width: 550px; margin: 0 auto; background: #fff; border-radius: 32px; padding: 35px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-soft); border: 1px solid var(--glass-border-light); overflow: hidden; }
.form-title { color: var(--text-main); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.form-title i { color: var(--accent-color); font-size: 20px; }
.form-input { width: 100%; background: var(--bg-main); border: 1px solid transparent; border-radius: 16px; padding: 18px 20px; color: var(--text-main); font-size: 15px; font-weight: 500; outline: none; transition: 0.3s; }
.form-input:focus { background: #fff; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.15); }
.form-input::placeholder { color: var(--text-muted); }
.upload-btn { width: 100%; border: 2px dashed #007aff; border-radius: 16px; background: rgba(0, 122, 255, 0.05); color: #007aff; padding: 16px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.upload-btn:hover { background: rgba(0, 122, 255, 0.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.divider { width: 100%; height: 1px; background: var(--glass-border); margin: 10px 0; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-card { padding: 25px 10px; border-radius: 20px; text-decoration: none; font-weight: 700; font-size: 15px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform 0.4s var(--bezier-smooth); }
.contact-card:hover { transform: translateY(-5px) scale(1.02); }
.card-tele { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; }
.card-zalo { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }

/* AUTH VÀ PROFILE (TÀI KHOẢN) */
.auth-container, .profile-container { width: 100%; max-width: 550px; margin: 0 auto; background: #fff; border-radius: 32px; padding: 35px; box-shadow: var(--shadow-soft); border: 1px solid var(--glass-border-light); }
.auth-toggle { display: flex; background: var(--bg-main); border-radius: 20px; padding: 5px; margin-bottom: 25px; }
.auth-toggle-btn { flex: 1; padding: 12px; border: none; background: transparent; color: var(--text-muted); font-size: 16px; font-weight: 700; border-radius: 16px; cursor: pointer; transition: 0.3s; }
.auth-toggle-btn.active { background: #fff; color: var(--accent-color); box-shadow: var(--shadow-soft); }
.auth-form { display: none; flex-direction: column; gap: 15px; animation: fadeInScale 0.4s var(--bezier-smooth); }
.auth-form.active { display: flex; }
.auth-form .form-input { margin-bottom: 5px; }
.auth-submit-btn { width: 100%; padding: 16px; font-size: 16px; margin-top: 10px; }
.auth-hint { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 10px; font-weight: 500;}
.forgot-otp-input { text-align: center; font-size: 21px; letter-spacing: 6px; font-weight: 800; }
.forgot-otp-input::placeholder { font-size: 14px; letter-spacing: 0.2px; font-weight: 500; }
.forgot-otp-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.forgot-resend-btn { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; border-radius: 12px; padding: 8px 13px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
.forgot-resend-btn:hover:not(:disabled) { background: #ffedd5; border-color: #fb923c; }
.forgot-resend-btn:disabled { background: #f8fafc; color: #94a3b8; border-color: #e2e8f0; cursor: not-allowed; }
.forgot-change-email-btn { background: transparent; border: none; color: #64748b; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 6px 4px; }
.forgot-change-email-btn:hover { color: #0f172a; }

.profile-header { display: flex; flex-direction: column; align-items: center; border-bottom: 1px dashed var(--glass-border); padding-bottom: 25px; margin-bottom: 25px; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 10px 25px rgba(255, 94, 0, 0.2); margin-bottom: 15px; object-fit: cover; }
.profile-name { font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.profile-level { font-size: 14px; font-weight: 700; color: #fff; background: var(--accent-gradient); padding: 5px 15px; border-radius: 12px; box-shadow: 0 4px 10px rgba(255, 94, 0, 0.3); }

.profile-info-grid { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.info-card { display: flex; align-items: center; gap: 15px; padding: 15px 20px; background: var(--bg-main); border-radius: 20px; border: 1px solid transparent; transition: 0.3s; }
.info-card:hover { border-color: rgba(255, 94, 0, 0.2); background: #fff; box-shadow: var(--shadow-soft); }
.info-card i { font-size: 22px; color: var(--accent-color); width: 30px; text-align: center; }
.info-text { display: flex; flex-direction: column; gap: 3px; }
.info-text .label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.info-text .val { font-size: 16px; color: var(--text-main); font-weight: 700; word-break: break-all; }

.logout-btn { width: 100%; background: #fee2e2; color: #ef4444; box-shadow: none; display: flex; justify-content: center; align-items: center; gap: 10px; }
.logout-btn:hover { background: #fecaca; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2); transform: translateY(-3px); }

/* VÍ VÀ SỐ DƯ */
.wallet-container { background: #fff; border: 1px solid var(--glass-border-light); border-radius: 24px; padding: 20px; margin-bottom: 25px; box-shadow: var(--shadow-soft); }
.wallet-balance-card { background: var(--accent-gradient); border-radius: 18px; padding: 25px; color: #fff; text-align: center; box-shadow: 0 10px 25px rgba(255,94,0,0.3); margin-bottom: 20px; position: relative; overflow: hidden; }
.wallet-balance-card::before { content: '\f53d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -15px; bottom: -25px; font-size: 110px; color: rgba(255,255,255,0.15); transform: rotate(-15deg); }
.balance-title { font-size: 15px; opacity: 0.9; margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.balance-amount { font-size: 36px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.deposit-section { padding: 20px; background: var(--bg-main); border-radius: 18px; border: 1px solid var(--glass-border); }
.preset-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.preset-btn { background: #fff; border: 1px solid var(--glass-border); color: var(--text-main); font-weight: 800; font-size: 16px; padding: 12px 0; border-radius: 14px; cursor: pointer; transition: 0.3s; box-shadow: var(--shadow-soft); }
.preset-btn:hover { border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-3px); }
.tx-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: var(--bg-main); border-radius: 16px; border: 1px solid transparent; transition: 0.3s; }
.tx-item:hover { background: #fff; border-color: rgba(0,0,0,0.05); box-shadow: var(--shadow-soft); }
.tx-info { display: flex; flex-direction: column; gap: 5px; }
.tx-type { font-weight: 800; color: var(--text-main); font-size: 15px; }
.tx-date { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.tx-amount { font-weight: 800; font-size: 16px; color: #34c759; }
.tx-status { font-size: 11px; padding: 3px 8px; border-radius: 8px; font-weight: 700; display: inline-block; margin-top: 3px; }
.status-COMPLETED { background: #dcfce7; color: #34c759; }
.status-FAILED { background: #fee2e2; color: #ef4444; }
.status-CANCELLED { background: #f3f4f6; color: #6b7280; }
.status-PENDING { background: #fef08a; color: #d97706; }

/* SỰ KIỆN KHUYẾN MÃI NỔI (FLOATING PROMO) */
.floating-promo { position: fixed; top: 90px; right: 20px; z-index: 998; background: #fff; border-radius: 16px; border: 2px solid var(--accent-color); box-shadow: 0 10px 25px rgba(255, 94, 0, 0.3); transition: all 0.5s var(--bezier-smooth); animation: floatPromoAnim 3s infinite ease-in-out; display: flex; flex-direction: column; overflow: hidden; max-width: 250px; }
.floating-promo.hidden-promo { transform: translateX(150%); opacity: 0; pointer-events: none; }
.floating-promo-close { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; font-size: 12px; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; transition: 0.3s; }
.floating-promo-close:hover { background: #ff3b30; transform: rotate(90deg); }
.floating-promo-content { display: flex; align-items: center; padding: 8px 12px; gap: 10px; cursor: pointer; text-decoration: none; transition: 0.3s; background: linear-gradient(135deg, rgba(255,94,0,0.05), transparent); }
.floating-promo-content:hover { background: rgba(255,94,0,0.1); }
.floating-promo-content img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.floating-promo-text { display: flex; flex-direction: column; }
.floating-promo-text strong { font-size: 16px; font-weight: 800; color: var(--text-main); margin-bottom: 2px; white-space: nowrap; }
.floating-promo-text span { font-size: 13px; font-weight: 600; color: var(--accent-color); animation: blinkText 1.5s infinite alternate; white-space: nowrap; }
@keyframes floatPromoAnim { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blinkText { from { opacity: 1; } to { opacity: 0.6; } }

/* BANNER SỰ KIỆN TRONG VÍ */
.wallet-promo-card { position: relative; background: #fff; border-radius: 18px; padding: 0; padding-bottom: 15px; margin-bottom: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 15px; cursor: pointer; overflow: hidden; box-shadow: var(--shadow-soft); transition: 0.4s var(--bezier-smooth); text-align: center; }
.wallet-promo-card::before { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; background: linear-gradient(45deg, #ff3b30, #ff9500, #ffcc00, #34c759, #007aff); background-size: 400%; z-index: -1; border-radius: 20px; animation: rgbBorder 8s linear infinite; opacity: 0.5; }
.wallet-promo-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(255, 94, 0, 0.2); }
.wallet-promo-card:hover::before { opacity: 1; }
.wallet-promo-card img { width: 100%; height: auto; max-height: 250px; border-radius: 18px 18px 0 0; object-fit: contain; background: #fdfdfd; z-index: 1; border-bottom: 1px solid var(--glass-border); }
.wallet-promo-info { flex: 1; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 0 15px; align-items: center; }
.wallet-promo-info h4 { color: #ff3b30; font-size: 16px; font-weight: 800; text-transform: uppercase; margin: 0; }
.wallet-promo-info p { color: var(--text-main); font-size: 13px; font-weight: 500; line-height: 1.4; margin: 0; }
@keyframes rgbBorder { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* =================================================================
   TRUNG TÂM GÓI PREMIUM (2 HẠNG THƯỜNG & MAX + QUY TRÌNH 4 BƯỚC)
   Thiết kế chuẩn chỉnh, rõ ràng, sang trọng, không lòe loẹt AI
   ================================================================= */
.prem-status-box {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}
.prem-status-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 260px;
}
.prem-tier-pill-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.prem-current-tier-pill,
.profile-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.prem-current-tier-pill.tier-none,
.profile-tier-pill.tier-none {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.prem-current-tier-pill.tier-noads,
.profile-tier-pill.tier-noads {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.prem-current-tier-pill.tier-standard,
.profile-tier-pill.tier-standard {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.prem-current-tier-pill.tier-max,
.profile-tier-pill.tier-max {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.prem-remaining-days-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.prem-remaining-days-pill.active-days {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}
.prem-remaining-days-pill.lifetime-days {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}
.prem-level-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.prem-level-val {
    font-size: 28px;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.2;
}
.prem-privilege-summary {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-top: 2px;
}
.prem-status-right {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    min-width: 310px;
    flex: 1;
    max-width: 430px;
}
.prem-status-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.prem-detail-label {
    color: #475569;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.prem-detail-label i {
    color: #64748b;
    width: 15px;
    text-align: center;
}
.prem-detail-val {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}
.prem-status-wallet-row {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.prem-wallet-topup-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.prem-wallet-topup-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

/* THANH TIẾN TRÌNH 4 BƯỚC (STEPPER) */
.prem-wizard-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 26px 28px 32px 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.prem-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 26px;
    gap: 8px;
    overflow-x: auto;
}
.prem-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.prem-step-item:hover {
    background: #f1f5f9;
}
.prem-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.prem-step-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.prem-step-num {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.4px;
}
.prem-step-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.prem-step-item.active .prem-step-circle {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
}
.prem-step-item.active .prem-step-num {
    color: #ea580c;
}
.prem-step-item.active .prem-step-title {
    color: #0f172a;
    font-weight: 800;
}
.prem-step-item.completed .prem-step-circle {
    background: #16a34a;
    color: #ffffff;
}
.prem-step-item.completed .prem-step-num {
    color: #16a34a;
}
.prem-step-line {
    flex: 1;
    height: 2px;
    min-width: 18px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: background 0.25s ease;
}
.prem-step-line.completed {
    background: #16a34a;
}

.prem-step-panel {
    display: none;
    animation: fadeInPremStep 0.25s ease-out;
}
.prem-step-panel.active {
    display: block;
}
@keyframes fadeInPremStep {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.prem-step-header {
    text-align: center;
    margin-bottom: 24px;
}
.prem-step-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}
.prem-step-header p {
    font-size: 14px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

/* BƯỚC 1: 2 CARD CHỌN PHÂN HẠNG (THƯỜNG VS MAX) */
.prem-tier-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    align-items: stretch;
}
.prem-tier-select-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.prem-tier-select-card:hover:not(.tier-locked) {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border-color: #94a3b8;
}
.prem-tier-select-card.tier-card-max-featured {
    border: 2px solid #ea580c;
    background: #fffdf9;
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.08);
}
.prem-tier-select-card.tier-locked {
    opacity: 0.72;
    background: #f8fafc;
    border-color: #cbd5e1;
}
.tier-featured-ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ea580c;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.tier-card-top {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.tier-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}
.tier-card-tag.tag-standard {
    background: #eff6ff;
    color: #1d4ed8;
}
.tier-card-tag.tag-max {
    background: #fff7ed;
    color: #c2410c;
}
.tier-card-name {
    font-size: 22px;
    font-weight: 850;
    color: #0f172a;
    margin-bottom: 6px;
}
.tier-card-sub {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
}
.tier-card-price-from {
    font-size: 14px;
    color: #334155;
}
.tier-card-price-from strong {
    font-size: 24px;
    font-weight: 850;
    color: #0f172a;
}
.tier-card-max-featured .tier-card-price-from strong {
    color: #c2410c;
}
.tier-card-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 20px;
    flex: 1;
}
.tier-card-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #1e293b;
    line-height: 1.45;
}
.tier-card-benefits li i {
    margin-top: 3px;
    font-size: 14px;
    flex-shrink: 0;
}
.tier-card-benefits li.benefit-yes i {
    color: #16a34a;
}
.tier-card-benefits li.benefit-yes.highlight i {
    color: #ea580c;
}
.tier-card-benefits li.benefit-no {
    color: #94a3b8;
}
.tier-card-benefits li.benefit-no i {
    color: #cbd5e1;
}
.tier-card-lock-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}
.tier-card-upgrade-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}
.tier-select-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
}
.btn-tier-standard {
    background: #1e293b;
    color: #ffffff;
}
.btn-tier-standard:hover:not(:disabled) {
    background: #0f172a;
}
.btn-tier-max {
    background: #ea580c;
    color: #ffffff;
}
.btn-tier-max:hover:not(:disabled) {
    background: #c2410c;
}
.tier-select-btn:disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    transform: none !important;
}

/* BƯỚC 2: THANH CHUYỂN NHANH & LƯỚI 6 GÓI */
.prem-step2-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.prem-back-step-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}
.prem-back-step-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.prem-tier-quick-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    gap: 4px;
}
.prem-quick-tab-btn {
    border: none;
    background: transparent;
    color: #475569;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.prem-quick-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.prem-quick-tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prem-rule-notice-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.prem-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    padding-top: 10px;
    padding-bottom: 10px;
}
.prem-pkg-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.prem-pkg-card:hover:not(.pkg-locked) {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.prem-pkg-card.pkg-locked {
    opacity: 0.6;
    background: #f8fafc;
}
.pkg-card-noads { border-color: #cbd5e1; }
.pkg-card-bronze { border-color: #d97706; }
.pkg-card-silver { border-color: #64748b; }
.pkg-card-gold { border-color: #eab308; background: #fefce8; }
.pkg-card-diamond { border-color: #2563eb; }
.pkg-card-ruby { border-color: #e11d48; background: #fff1f2; }

.pkg-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.badge-slate { background: #475569; }
.badge-bronze, .badge-bronze-max { background: #b45309; }
.badge-silver, .badge-silver-max { background: #475569; }
.badge-gold, .badge-gold-max { background: #ca8a04; }
.badge-diamond, .badge-diamond-max { background: #1d4ed8; }
.badge-ruby, .badge-ruby-max { background: #be123c; }

.pkg-name {
    font-size: 18px;
    font-weight: 850;
    color: #0f172a;
    margin-bottom: 4px;
    text-align: center;
    margin-top: 6px;
}
.pkg-sub-note {
    font-size: 12px;
    font-weight: 700;
    color: #be123c;
    text-align: center;
    margin-bottom: 4px;
}
.pkg-price {
    font-size: 24px;
    font-weight: 900;
    color: #ea580c;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.pkg-card-ruby .pkg-price {
    color: #be123c;
}
.pkg-price span {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.pkg-features {
    list-style: none;
    margin-bottom: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.pkg-features li {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.pkg-features li i {
    color: #16a34a;
    margin-top: 3px;
    flex-shrink: 0;
}
.pkg-features li.feat-disabled {
    color: #94a3b8;
    text-decoration: line-through;
}
.pkg-features li.feat-disabled i {
    color: #cbd5e1;
}

.pkg-action-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 800;
    box-shadow: none;
    transition: all 0.2s ease;
}
.btn-pkg-slate { background: #475569; color: #fff; }
.btn-pkg-bronze { background: #b45309; color: #fff; }
.btn-pkg-silver { background: #334155; color: #fff; }
.btn-pkg-gold { background: #ca8a04; color: #fff; }
.btn-pkg-diamond { background: #1d4ed8; color: #fff; }
.btn-pkg-ruby { background: #be123c; color: #fff; }
.pkg-action-btn:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.pkg-action-btn:disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    transform: none !important;
}

/* BƯỚC 3: KIỂM TRA ĐƠN HÀNG & XÁC NHẬN THANH TOÁN */
.prem-checkout-card {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.prem-checkout-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}
.prem-checkout-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #fed7aa;
}
.prem-checkout-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}
.prem-checkout-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.prem-checkout-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.prem-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 6px 0;
}
.chk-label {
    color: #475569;
    font-weight: 600;
}
.chk-val {
    text-align: right;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.chk-sub-badge,
.chk-badge-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.chk-tier-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.prem-checkout-benefits-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 6px 0;
}
.chk-benefits-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.chk-benefits-title i {
    color: #ea580c;
}
.chk-benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}
.chk-benefits-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chk-benefits-list li i {
    color: #16a34a;
}
.prem-checkout-Calculation {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chk-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #334155;
}
.chk-price-highlight {
    font-size: 18px;
    font-weight: 850;
    color: #dc2626;
}
.chk-calc-total {
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    font-weight: 700;
}
.prem-checkout-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
}
.prem-checkout-warning i {
    font-size: 18px;
    margin-top: 2px;
}
.prem-checkout-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.prem-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
}
.prem-btn-secondary:hover {
    background: #e2e8f0 !important;
}
.prem-btn-confirm {
    flex: 1;
    background: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.22) !important;
}
.prem-btn-confirm:hover {
    background: #15803d !important;
}
.prem-btn-topup {
    flex: 1;
    background: #ea580c !important;
    color: #ffffff !important;
}

/* BƯỚC 4: BIÊN LAI HOÀN TẤT KÍCH HOẠT */
.prem-receipt-card {
    max-width: 580px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #16a34a;
    border-radius: 22px;
    padding: 30px 26px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(22, 163, 74, 0.1);
}
.prem-receipt-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    border: 2px solid #86efac;
}
.prem-receipt-title {
    font-size: 21px;
    font-weight: 850;
    color: #0f172a;
    margin-bottom: 6px;
}
.prem-receipt-subtitle {
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 14px;
}
.prem-receipt-email-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}
.prem-receipt-email-notice i {
    color: #2563eb;
    font-size: 15px;
}
.prem-receipt-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    margin-bottom: 22px;
}
.rcp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #475569;
}
.rcp-row strong {
    color: #0f172a;
    text-align: right;
}
.prem-receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* THÔNG TIN GÓI PREMIUM TRONG HỒ SƠ CÁ NHÂN (#profileSection) */
.profile-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.profile-premium-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.profile-prem-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.profile-prem-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
}
.profile-prem-title i {
    color: #d97706;
}
.profile-prem-days-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #334155;
}
.profile-prem-days-badge.active {
    background: #dcfce7;
    color: #15803d;
}
.profile-prem-days-badge.lifetime {
    background: #ffe4e6;
    color: #be123c;
}
.profile-prem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 14px;
}
.profile-prem-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.pp-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}
.pp-val {
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 800;
}
.profile-prem-upgrade-btn {
    width: 100%;
    padding: 12px;
    font-size: 13.5px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .prem-tier-selection-grid {
        grid-template-columns: 1fr;
    }
    .prem-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .prem-status-box {
        padding: 18px;
    }
    .prem-status-right {
        min-width: 100%;
    }
    .prem-wizard-wrapper {
        padding: 18px 15px 22px 15px;
    }
    .prem-packages-grid {
        grid-template-columns: 1fr;
    }
    .profile-prem-grid {
        grid-template-columns: 1fr;
    }
    .prem-checkout-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .chk-val {
        text-align: left;
        justify-content: flex-start;
    }
}

/* ADMIN */
.admin-container { background: #fff; padding: 25px; border-radius: 24px; box-shadow: var(--shadow-soft); border: 1px solid var(--glass-border-light); width: 100%; max-width: 800px; margin: 0 auto; }
.admin-movie-item { display: flex; align-items: center; justify-content: space-between; padding: 15px; background: var(--bg-main); border-radius: 16px; transition: 0.3s; gap: 15px; border: 1px solid transparent; }
.admin-movie-item:hover { background: #fff; box-shadow: var(--shadow-soft); border-color: rgba(0,0,0,0.05); }
.admin-movie-thumb { width: 55px; height: 75px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.admin-movie-info { flex: 1; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.admin-movie-title { font-weight: 800; color: var(--text-main); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-movie-date { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.admin-movie-actions { display: flex; gap: 8px; }
.admin-action-btn { width: 38px; height: 38px; border-radius: 12px; border: none; color: #fff; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; font-size: 15px; }
.admin-btn-edit { background: #007aff; }
.admin-btn-delete { background: #ff3b30; }
.admin-action-btn:hover { opacity: 0.8; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* QUẢN LÝ CẤP CAO (SUPER ADMIN) */
.sa-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.sa-stat-card { background: var(--bg-main); padding: 25px; border-radius: 20px; display: flex; align-items: center; gap: 20px; border: 1px solid var(--glass-border); transition: 0.3s; }
.sa-stat-card:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow-soft); }
.sa-icon { font-size: 40px; color: #9c27b0; opacity: 0.8; }
.sa-stat-info { display: flex; flex-direction: column; gap: 5px; }
.sa-label { font-size: 14px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.sa-val { font-size: 26px; font-weight: 900; color: var(--text-main); }
.sa-tab-container { margin-top: 30px; }
.sa-tab-nav { display: flex; gap: 10px; border-bottom: 2px solid var(--glass-border); margin-bottom: 20px; overflow-x: auto; padding-bottom: 8px; }
.sa-tab-nav::-webkit-scrollbar { height: 6px; }
.sa-tab-nav::-webkit-scrollbar-thumb { background: rgba(156, 39, 176, 0.3); border-radius: 10px; }
.sa-tab-btn { background: none; border: none; padding: 15px 20px; font-size: 16px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.3s; border-bottom: 3px solid transparent; position: relative; top: 2px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap; }
.sa-tab-btn:hover { color: var(--text-main); }
.sa-tab-btn.active { color: #9c27b0; border-bottom-color: #9c27b0; }
.sa-tab-content { display: none; animation: fadeInScale 0.4s var(--bezier-smooth); }
.sa-tab-content.active { display: block; }

.sa-sub-tab-nav { display: flex; gap: 10px; margin-bottom: 20px; background: var(--bg-main); padding: 5px; border-radius: 12px; display: inline-flex; overflow-x: auto; max-width: 100%; padding-bottom: 5px; }
.sa-sub-tab-nav::-webkit-scrollbar { height: 6px; }
.sa-sub-tab-nav::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
.sa-sub-tab-btn { background: transparent; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.3s; font-size: 14px; flex-shrink: 0; white-space: nowrap; }
.sa-sub-tab-btn.active { background: #fff; color: #9c27b0; box-shadow: var(--shadow-soft); }
.sa-sub-tab-content { display: none; animation: fadeInScale 0.3s ease; }
.sa-sub-tab-content.active { display: block; }
.sa-count-badge { background: #ff3b30; color: #fff; padding: 2px 6px; border-radius: 10px; font-size: 11px; margin-left: 5px; }

.sa-list-box, .sa-form-box { background: #fff; padding: 25px; border-radius: 20px; box-shadow: var(--shadow-soft); border: 1px solid var(--glass-border); }
.sa-form-box { max-width: 100%; margin: 0; }

.sa-table-wrapper { width: 100%; max-height: 500px; overflow-y: auto; overflow-x: auto; }
.sa-table-wrapper::-webkit-scrollbar { width: 6px; height: 6px; }
.sa-table-wrapper::-webkit-scrollbar-thumb { background: rgba(156, 39, 176, 0.4); border-radius: 10px; }
.sa-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.sa-table th { background: #f9f5fb; color: #9c27b0; font-weight: 800; text-align: left; padding: 15px 20px; font-size: 14px; white-space: nowrap; position: sticky; top: 0; z-index: 10; border-bottom: 2px solid rgba(156, 39, 176, 0.2); }
.sa-table td { padding: 15px 20px; border-bottom: 1px solid var(--glass-border); font-size: 14px; font-weight: 600; color: var(--text-main); }
.sa-table tr:last-child td { border-bottom: none; }
.sa-table tr:hover td { background: #fff; }
.sa-badge { background: var(--accent-gradient); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 11px; }

/* SUPER ADMIN FILTERS */
.sa-filter-container { background: var(--bg-main); padding: 15px 20px; border-radius: 16px; border: 1px solid var(--glass-border); display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.sa-filter-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sa-filter-chip { background: #fff; border: 1px solid var(--glass-border); padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s var(--bezier-smooth); white-space: nowrap; box-shadow: var(--shadow-soft); }
.sa-filter-chip:hover { border-color: #9c27b0; color: #9c27b0; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(156, 39, 176, 0.15); }
.sa-filter-chip.active { background: rgba(156, 39, 176, 0.1); border-color: #9c27b0; color: #9c27b0; font-weight: 700; box-shadow: none; }
.sa-filter-input { width: auto; padding: 10px 15px !important; border-radius: 12px !important; background: #fff !important; box-shadow: var(--shadow-soft) !important; cursor: pointer; }
.sa-time-select { min-width: 180px; }
.sa-custom-dates { display: none; align-items: center; gap: 10px; flex-wrap: wrap; }
.sa-custom-dates input[type="date"] { padding: 10px 15px; border-radius: 12px; border: 1px solid var(--glass-border); outline: none; background: #fff; color: var(--text-main); }

/* SUPER ADMIN ACTIONS */
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.sa-edit-modal-box { max-width: 550px !important; text-align: left !important; }
.sa-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sa-edit-grid label { font-size: 12px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 5px; }
.sa-edit-grid .form-input { margin: 0; }

.sa-action-group { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-start; }
.sa-btn { border: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 4px; }
.sa-btn:hover { opacity: 0.8; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.sa-btn-add { background: #34c759; } .sa-btn-deduct { background: #ff9500; }
.sa-btn-edit { background: #007aff; } .sa-btn-delete { background: #ff3b30; }

/* =========================================
   CỘNG ĐỒNG CHAT (COMMUNITY TAB)
   ========================================= */
.menu-divider { width: 100%; height: 1px; background: var(--glass-border); margin: 5px 0; }
.side-menu-links { gap: 5px; }
.side-menu-links a { padding: 12px 20px; }

.chat-container { width: 100%; max-width: 800px; margin: 0 auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow-soft); border: 1px solid var(--glass-border-light); display: flex; flex-direction: column; height: 75vh; min-height: 500px; max-height: 800px; overflow: hidden; }
.chat-header { padding: 20px; border-bottom: 1px solid var(--glass-border); background: var(--bg-main); display: flex; justify-content: space-between; align-items: center; }
.chat-header-info { display: flex; align-items: center; gap: 15px; }
.chat-header-icon { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; display: flex; justify-content: center; align-items: center; font-size: 20px; }
.chat-header-info h3 { font-size: 18px; color: var(--text-main); font-weight: 800; }
.chat-header-info p { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; background: #f8fafc; }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.chat-msg-wrapper { display: flex; gap: 12px; max-width: 85%; align-items: flex-end; }
.chat-msg-wrapper.self { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-gradient); display: flex; justify-content: center; align-items: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.chat-msg-content { display: flex; flex-direction: column; gap: 4px; }
.chat-msg-wrapper.self .chat-msg-content { align-items: flex-end; }

.chat-author { font-size: 12px; font-weight: 700; color: var(--text-muted); display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.chat-author-badge { font-size: 10px; padding: 2px 6px; border-radius: 6px; color: #fff; font-weight: 800; letter-spacing: 0.5px; }

.chat-bubble-msg { padding: 12px 18px; border-radius: 20px; font-size: 15px; line-height: 1.5; color: var(--text-main); background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.03); word-wrap: break-word; position: relative; border-bottom-left-radius: 4px; font-weight: 500; }
.chat-msg-wrapper.self .chat-bubble-msg { background: var(--accent-gradient); color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 4px; box-shadow: 0 4px 15px rgba(255, 94, 0, 0.2); }

.chat-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

.chat-input-area { padding: 15px 20px; background: #fff; border-top: 1px solid var(--glass-border); display: flex; align-items: center; gap: 12px; }
.chat-input-wrapper { flex: 1; position: relative; display: flex; align-items: center; background: var(--bg-main); border-radius: 24px; border: 1px solid transparent; transition: 0.3s; padding-right: 55px; }
.chat-input-wrapper:focus-within { border-color: var(--accent-color); background: #fff; box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.1); }
#chatInput { width: 100%; border: none; background: transparent; padding: 16px 20px; font-size: 15px; outline: none; color: var(--text-main); font-weight: 500; }
.char-counter { position: absolute; right: 18px; font-size: 12px; color: var(--text-muted); font-weight: 700; pointer-events: none; transition: 0.3s; }
.char-counter.limit { color: #ff3b30; }

.chat-send-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-gradient); border: none; color: #fff; display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: pointer; transition: 0.3s; box-shadow: 0 6px 15px rgba(255, 94, 0, 0.3); flex-shrink: 0; }
.chat-send-btn:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 20px rgba(255, 94, 0, 0.4); }
.chat-send-btn:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; transform: none; }

.chat-auth-warning { padding: 30px; text-align: center; font-size: 15px; color: var(--text-muted); background: var(--bg-main); border-top: 1px solid var(--glass-border); font-weight: 500; }
.chat-auth-warning a { color: var(--accent-color); font-weight: 800; text-decoration: none; transition: 0.3s; }
.chat-auth-warning a:hover { text-decoration: underline; }

/* HIỆU ỨNG TRẢ LỜI & CẢM XÚC */
.chat-quote { background: rgba(0,0,0,0.05); border-left: 3px solid var(--accent-color); padding: 5px 10px; border-radius: 4px 8px 8px 4px; margin-bottom: 5px; font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.chat-msg-wrapper.self .chat-quote { background: rgba(255,255,255,0.2); border-left-color: #fff; color: rgba(255,255,255,0.9); }
.chat-quote strong { font-weight: 700; color: var(--text-main); }
.chat-msg-wrapper.self .chat-quote strong { color: #fff; }

.chat-reply-preview { display: flex; justify-content: space-between; align-items: center; background: #f1f5f9; padding: 10px 15px; border-top: 1px solid var(--glass-border); border-left: 4px solid var(--accent-color); font-size: 13px; }
.reply-preview-content { display: flex; flex-direction: column; overflow: hidden; flex: 1; margin-right: 10px; }
.reply-preview-content span:first-child { font-weight: 800; color: var(--accent-color); }
.reply-preview-content span:last-child { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cancel-reply-btn { background: #fee2e2; border: none; color: #ef4444; cursor: pointer; font-size: 14px; width: 28px; height: 28px; border-radius: 50%; transition: 0.3s; }
.cancel-reply-btn:hover { background: #ef4444; color: #fff; }

.chat-reactions-display { display: flex; align-items: center; gap: 4px; margin-top: 4px; position: absolute; bottom: -12px; right: 10px; background: #fff; padding: 2px 8px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 12px; z-index: 2; border: 1px solid var(--glass-border); cursor: pointer; font-weight: 700; color: var(--text-muted); transition: 0.3s; }
.chat-reactions-display:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.chat-msg-wrapper.self .chat-reactions-display { right: auto; left: 10px; }
.add-reaction-btn { font-size: 14px; color: var(--text-muted); margin-top: 2px; cursor: pointer; opacity: 0; transition: 0.3s; padding: 2px; text-align: right; }
.chat-msg-content:hover .add-reaction-btn { opacity: 1; }
.chat-msg-wrapper.self .add-reaction-btn { text-align: left; color: rgba(255,255,255,0.7); }

/* CONTEXT MENU NỔI (KHI GIỮ TIN NHẮN) */
.chat-context-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 10000; display: none; }
.chat-context-menu { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.25); padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 180px; z-index: 10001; transform: scale(0.9); opacity: 0; transition: 0.2s var(--bezier-smooth); pointer-events: none; border: 1px solid var(--glass-border); }
.chat-context-menu.active { transform: scale(1); opacity: 1; pointer-events: auto; }
.reaction-picker { display: flex; justify-content: space-around; background: #f8fafc; padding: 10px; border-radius: 20px; }
.reaction-picker span { font-size: 26px; cursor: pointer; transition: 0.2s; user-select: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.reaction-picker span:hover { transform: scale(1.3) translateY(-4px); filter: drop-shadow(0 5px 8px rgba(0,0,0,0.2)); }
.context-actions { display: flex; flex-direction: column; }
.context-actions button { background: none; border: none; padding: 12px 15px; text-align: left; font-size: 14px; font-weight: 700; color: var(--text-main); border-radius: 10px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.context-actions button:hover { background: #f1f5f9; }
.context-actions button.delete-btn { color: #ff3b30; }
.context-actions button.delete-btn:hover { background: #fee2e2; }

/* THÔNG BÁO (NOTIFICATION) */
.notification-badge { position: absolute; top: -5px; right: -5px; background: #ff3b30; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 10px; border: 2px solid var(--glass-bg); pointer-events: none; }
.notification-dropdown { position: absolute; top: 40px; right: -80px; width: 320px; background: #fff; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 1px solid var(--glass-border); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s var(--bezier-smooth); z-index: 1000; overflow: hidden; cursor: default; }
.notification-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.noti-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--glass-border); background: var(--bg-main); }
.noti-header h4 { font-size: 16px; color: var(--text-main); font-weight: 800; }
.noti-header button { background: none; border: none; color: var(--accent-color); font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.noti-header button:hover { text-decoration: underline; color: var(--accent-hover); }
.noti-list { max-height: 350px; overflow-y: auto; display: flex; flex-direction: column; }
.noti-list::-webkit-scrollbar { width: 4px; }
.noti-list::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
.noti-item { padding: 15px 20px; border-bottom: 1px solid var(--glass-border); transition: 0.3s; cursor: pointer; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.noti-item:hover { background: var(--bg-main); }
.noti-item.unread { background: rgba(255, 94, 0, 0.05); border-left: 3px solid var(--accent-color); }
.noti-title { font-size: 14px; font-weight: 700; color: var(--text-main); }
.noti-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.noti-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }
.noti-empty { padding: 30px; text-align: center; color: var(--text-muted); font-size: 14px; font-weight: 500; }

/* HƯỚNG DẪN CÀI APP - THANH NGANG */
.install-prompt-bar { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); border: 2px solid var(--accent-color); border-radius: 20px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 10px 30px rgba(255, 94, 0, 0.3); z-index: 10005; transition: bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); opacity: 0; }
.install-prompt-bar.active { bottom: 25px; opacity: 1; }
.install-prompt-content { display: flex; align-items: center; gap: 15px; cursor: pointer; flex: 1; }
.install-icon-pulse { width: 40px; height: 40px; background: var(--accent-gradient); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 18px; animation: pulseIconInstall 2s infinite; }
@keyframes pulseIconInstall { 0% { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(255, 94, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0); } }
.install-text { display: flex; flex-direction: column; }
.install-text strong { font-size: 15px; color: var(--text-main); font-weight: 800; }
.install-text span { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.install-prompt-close { background: none; border: none; color: var(--text-muted); font-size: 20px; width: 30px; height: 30px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.3s; margin-left: 10px; }
.install-prompt-close:hover { background: #fee2e2; color: #ef4444; transform: rotate(90deg); }

/* HƯỚNG DẪN CÀI APP - MODAL */
.install-guide-box { max-width: 450px !important; padding: 25px 20px !important; }
.install-tabs { display: flex; background: var(--bg-main); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.install-tab-btn { flex: 1; padding: 10px; border: none; background: transparent; font-size: 14px; font-weight: 700; color: var(--text-muted); border-radius: 10px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.install-tab-btn.active { background: #fff; color: var(--accent-color); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.install-tab-btn i { font-size: 16px; }

.install-img-container { width: 100%; height: 50vh; min-height: 350px; max-height: 500px; background: #f8fafc; border-radius: 16px; border: 1px dashed var(--glass-border); overflow: hidden; position: relative; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; padding: 10px; }
.install-guide-img { max-width: 100%; max-height: 100%; object-fit: contain; display: none; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); animation: fadeIn 0.4s ease; }
.install-guide-img.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.install-success-msg { background: #dcfce7; border: 1px solid #34c759; color: #15803d; padding: 12px 15px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.4; animation: popSuccess 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.install-success-msg i { font-size: 20px; color: #34c759; }
@keyframes popSuccess { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Sửa lỗi đè layout nếu mở trình phát nhạc */
body.player-active .install-prompt-bar.active { bottom: 120px; }

@media (max-width: 600px) {
    .install-prompt-bar { width: calc(100% - 30px); }
    .install-img-container { height: 45vh; }
    body.player-active .install-prompt-bar.active { bottom: 155px; }
}

/* MÀN HÌNH CHÚC MỪNG NẠP TIỀN */
.deposit-success-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.5s var(--bezier-smooth); }
.deposit-success-overlay.active { opacity: 1; visibility: visible; }
.deposit-success-box { background: #fff; padding: 40px; border-radius: 32px; text-align: center; max-width: 400px; width: 90%; transform: scale(0.8) translateY(50px); transition: all 0.5s var(--bezier-smooth); box-shadow: 0 30px 60px rgba(0,0,0,0.3); border: 2px solid #34c759; }
.deposit-success-overlay.active .deposit-success-box { transform: scale(1) translateY(0); }
.success-icon-wrap { width: 80px; height: 80px; border-radius: 50%; background: #34c759; color: #fff; font-size: 40px; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px auto; box-shadow: 0 10px 25px rgba(52, 199, 89, 0.4); animation: popIcon 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s; opacity: 0; transform: scale(0); }
@keyframes popIcon { to { opacity: 1; transform: scale(1); } }
.deposit-success-box h3 { font-size: 24px; color: var(--text-main); font-weight: 800; margin-bottom: 10px; }
.deposit-success-box p { color: var(--text-muted); font-size: 15px; margin-bottom: 15px; }
.success-amount { font-size: 42px; font-weight: 900; color: #34c759; background: #dcfce7; padding: 15px; border-radius: 20px; display: inline-block; width: 100%; box-shadow: inset 0 2px 10px rgba(52,199,89,0.2); }

/* LOADING MỚI ĐẸP MẮT */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(15px); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.loader-overlay.active { opacity: 1; visibility: visible; }

.spinner-container { position: relative; width: 90px; height: 90px; display: flex; justify-content: center; align-items: center; }
.loader-avatar { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; z-index: 2; box-shadow: 0 0 20px rgba(255, 94, 0, 0.3); }
.spinner-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--accent-color); border-right-color: rgba(255, 94, 0, 0.4); animation: spinLoader 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; z-index: 1; }
.spinner-ring::before { content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: var(--accent-color); border-radius: 50%; box-shadow: 0 0 15px 5px rgba(255, 94, 0, 0.6); }

@keyframes spinLoader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* MODAL THÔNG BÁO */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.52); backdrop-filter: blur(10px); z-index: 10050; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.18s ease, visibility 0.18s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box { position: relative; background: rgba(255, 255, 255, 0.95); border-radius: 32px; padding: 40px 30px; width: 90%; max-width: 400px; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,0.2); transform: translateY(40px) scale(0.9); transition: all 0.4s var(--bezier-smooth); max-height: 90vh; overflow-y: auto; }
.modal-box::-webkit-scrollbar { width: 5px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 5px; }
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-box h3 { color: var(--text-main); font-size: 22px; font-weight: 800; margin-bottom: 15px; }
.modal-box p { color: var(--text-muted); font-size: 16px; margin-bottom: 30px; line-height: 1.5; font-weight: 500;}
.close-modal-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.close-modal-btn:hover { color: var(--accent-color); }

/* POLICY MODAL */
.policy-box { max-width: 600px; padding: 30px; position: relative; }
.close-policy-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.close-policy-btn:hover { color: var(--accent-color); }
.policy-content-area::-webkit-scrollbar { width: 4px; }
.policy-content-area::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

/* MÀN HÌNH QR THANH TOÁN */
.qr-modal-box { max-width: 420px; padding: 25px 20px; }
.qr-modal-title { color: var(--text-main); margin-bottom: 15px; font-size: 20px; font-weight: 800; }
.qr-image-wrapper { background: #fff; padding: 10px; border-radius: 20px; display: inline-block; box-shadow: 0 10px 25px rgba(0,0,0,0.1); margin-bottom: 15px; }
.qr-image-wrapper img { width: 180px; height: 180px; border-radius: 10px; object-fit: contain; }
.qr-info-box { text-align: left; font-size: 14px; color: var(--text-main); background: var(--bg-main); padding: 15px; border-radius: 16px; margin-bottom: 15px; border: 1px solid var(--glass-border); }
.qr-info-row { display: flex; justify-content: space-between; margin-bottom: 8px !important; }
.qr-info-row:last-child { margin-bottom: 0 !important; }
.qr-account-highlight { color: var(--accent-color); font-size: 16px; font-weight: 800; }
.qr-desc-box { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--glass-border); }
.qr-desc-label { font-size: 12px; color: var(--text-muted); margin-bottom: 5px !important; }
.qr-desc-content { color: #007aff; font-weight: 800; font-size: 18px; letter-spacing: 2px; text-align: center; background: rgba(0,122,255,0.1); padding: 8px; border-radius: 10px; user-select: all; word-break: break-all; margin-bottom: 0 !important;}
.qr-waiting-text { font-size: 13px; color: var(--text-muted); margin-bottom: 15px !important; font-weight: 500; }
.qr-waiting-text i { color: var(--accent-color); margin-right: 5px; }
.cancel-qr-btn { width: 100%; background: #f3f4f6; color: #ef4444; box-shadow: none; padding: 14px; }
.cancel-qr-btn:hover { background: #fee2e2; }

/* THÔNG BÁO TIẾN ĐỘ QUẢNG CÁO */
.ad-progress-toast { position: fixed; top: -200px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 2px solid var(--accent-color); border-radius: 20px; padding: 15px 20px; display: flex; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow-hover); z-index: 10010; transition: top 0.5s var(--bezier-smooth); font-weight: 800; color: var(--text-main); width: 90%; max-width: 400px; }
.ad-progress-toast.active { top: 30px; }

/* AD REQUIRED MODAL STYLES */
.ad-modal-box { padding: 40px 30px 30px 30px; }
.ad-modal-icon { color: var(--accent-color); font-size: 55px; margin-bottom: 20px; filter: drop-shadow(0 4px 10px rgba(255, 140, 0, 0.3)); }
.ad-modal-actions { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.premium-action-btn { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; font-weight: 800; border-radius: 14px; box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3); font-size: 17px; padding: 16px; border: 2px solid transparent; transition: all 0.3s; }
.premium-action-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(255, 140, 0, 0.4); border: 2px solid #fff; }
.premium-action-btn i { margin-right: 8px; font-size: 20px; }
.ad-action-container { background: var(--bg-main); padding: 20px; border-radius: 18px; border: 1px solid var(--glass-border); text-align: left; }
.watch-ad-btn { position: relative; overflow: hidden; background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; font-weight: 700; border-radius: 12px; margin-bottom: 18px; box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3); font-size: 16px; width: 100%; transition: all 0.3s; }
.watch-ad-btn::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%); transform: rotate(45deg); animation: buttonShine 3s infinite; }
@keyframes buttonShine { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }
.watch-ad-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4); }
.watch-ad-btn i { margin-right: 8px; }
.ad-progress-wrapper { display: flex; flex-direction: column; gap: 8px; }
.ad-progress-track { width: 100%; background: rgba(0, 0, 0, 0.1); height: 10px; border-radius: 5px; overflow: hidden; position: relative; }
[data-theme="dark"] .ad-progress-track { background: rgba(255, 255, 255, 0.1); }
.ad-progress-fill { width: 0%; background: linear-gradient(90deg, #ffd700, #ff8c00); height: 100%; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 5px; box-shadow: 0 0 10px rgba(255, 140, 0, 0.5); }
.ad-progress-text { font-size: 13px; color: var(--text-muted); font-weight: 700; text-align: right; }

/* FOOTER */
footer { width: 100%; background: #fff; border-top: 1px solid var(--glass-border); padding: 50px 20px 20px 20px; color: var(--text-muted); margin-top: auto; overflow: hidden; }
.footer-content { width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-section { flex: 1; min-width: 250px; }
.footer-section.about h3 { color: var(--accent-color); font-size: 20px; margin-bottom: 20px; font-weight: 800; }
.footer-section.about p { font-size: 14px; line-height: 1.7; font-weight: 500; word-break: break-word; }
.footer-links-wrapper { display: flex; gap: 40px; flex: 1; min-width: 250px; flex-wrap: wrap; }
.footer-section.links { flex: 1; min-width: 150px; }
.footer-section.links h3 { color: var(--text-main); font-size: 16px; margin-bottom: 20px; font-weight: 800; }
.footer-section.links ul { list-style: none; }
.footer-section.links ul li { margin-bottom: 12px; }
.footer-section.links ul li a { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: 0.3s; }
.footer-section.links ul li a:hover { color: var(--accent-hover); padding-left: 5px; }
.footer-bottom { width: 100%; max-width: 1100px; margin: 40px auto 0 auto; padding-top: 20px; border-top: 1px solid var(--glass-border); text-align: center; font-size: 14px; font-weight: 500;}

/* =========================================
   ĐÁP ỨNG DI ĐỘNG & MỌI KHUNG HÌNH (RESPONSIVE)
   ========================================= */

/* 1. Màn hình Tablet và Laptop nhỏ (max-width: 1024px) */
@media (max-width: 1024px) {
    .movie-grid-container { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
    .footer-content { gap: 30px; }
}

/* 2. Màn hình Tablet dọc và Điện thoại màn hình lớn (max-width: 768px) */
@media (max-width: 768px) {
    header { padding: 0 15px; }
    .logo-container h1 { font-size: 20px; }
    .logo-container img { width: 38px; height: 38px; }

    .movie-grid-container { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .movie-info { padding: 12px; }
    .movie-info h2 { font-size: 15px; }

    .auth-container, .profile-container, .contact-container { padding: 25px; border-radius: 24px; }
    .section-header h2 { font-size: 20px; }

    .footer-links-wrapper { gap: 20px; }
    .chat-bubble { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 22px; }
}

/* 3. Màn hình Điện thoại thông thường (max-width: 600px) */
@media (max-width: 600px) {
    .movie-grid-container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .movie-info h2 { font-size: 14px; }

    .search-wrapper {
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow-soft);
    }
    .search-input-icon {
        padding-left: 14px;
        font-size: 15px;
    }
    .search-wrapper input {
        padding: 13px 10px;
        font-size: 16px !important;
        touch-action: manipulation;
    }
    .search-wrapper button#executeSearch {
        padding: 0 16px;
        font-size: 13.5px;
    }
    .search-suggestions-dropdown {
        max-height: 60vh;
        border-radius: 16px;
    }
    .suggestion-item {
        padding: 9px 12px;
        gap: 10px;
    }
    .suggestion-thumb {
        width: 42px;
        height: 52px;
    }
    .suggestion-title {
        font-size: 13.5px;
    }
    .suggestion-play-action span {
        display: none;
    }
    .suggestion-play-action {
        padding: 0;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        justify-content: center;
    }
    .suggestion-footer {
        display: none;
    }

    .footer-content { flex-direction: column; gap: 30px; }
    .footer-section { min-width: 100%; }
    .footer-links-wrapper { flex-direction: column; gap: 20px; min-width: 100%; }

    .contact-cards { grid-template-columns: 1fr; }
    .controls-area { gap: 15px; }
    .play-pause-btn { width: 55px; height: 55px; font-size: 20px; }
    .ctrl-btn { width: 40px; height: 40px; font-size: 18px; }

    .movie-detail-box { padding: 40px 15px 20px 15px; width: 95%; max-width: 100%; border-radius: 24px; }
    .close-detail-btn { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 16px; }
    .detail-poster { width: 130px; margin-bottom: 12px; }
    .detail-title { font-size: 18px; margin-bottom: 6px; }

    .community-grid { grid-template-columns: 1fr; }
    .community-card { min-height: 140px; }
    .admin-message-box { padding: 25px 20px; }
    .admin-message-box h4 { font-size: 18px; }
    .admin-message-box p { font-size: 14px; text-align: left; }

    .floating-promo { top: 85px; right: 15px; max-width: 220px; border-width: 1px; }
    .wallet-promo-card { flex-direction: column; text-align: center; }
    
    .sa-filter-container { flex-direction: column; align-items: flex-start; }
    .sa-time-select, .sa-custom-dates input[type="date"] { width: 100%; }
    .sa-custom-dates { width: 100%; }
    
    .sa-list-box, .sa-form-box { padding: 15px; }
    .sa-table th, .sa-table td { padding: 12px 15px; font-size: 13px; }
    
    .notification-dropdown { position: fixed; top: 75px; left: 5%; right: 5%; width: 90%; max-width: none; }
    .seasons-container { gap: 8px; margin-bottom: 15px; }
    .season-btn { padding: 10px 4px; font-size: 13px; }
    .premium-notice-box { padding: 15px; }
    .premium-btn { padding: 10px; font-size: 14px; }
    
    .global-player:not([style*="display: none"]) { display: grid !important; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 9px 8px; padding: 12px 13px; height: auto; width: calc(100% - 16px); bottom: 10px; border-radius: 18px; }
    .gp-info { grid-row: 1; grid-column: 1; width: 100%; min-width: 0; max-width: none; padding: 4px 6px 4px 4px; margin: -4px 0 0 -4px; justify-content: flex-start; gap: 10px; }
    .gp-text { flex: 1; min-width: 0; width: auto; }
    .gp-title { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
    .gp-thumb { width: 48px; height: 48px; border-radius: 11px; }
    .close-gp-btn { grid-row: 1; grid-column: 2; justify-self: end; align-self: start; width: 32px; height: 32px; }
    .gp-controls { grid-row: 2; grid-column: 1 / -1; width: 100%; max-width: 100%; min-width: 0; margin-top: 0; gap: 8px; }
    .gp-progress { order: -1; }
    .gp-buttons { margin-bottom: 0; gap: 10px; width: 100%; justify-content: center; }
    .play-pause-btn { width: 42px; height: 42px; font-size: 16px; }
    .ctrl-btn { width: 34px; height: 34px; font-size: 16px; }
    .gp-actions { grid-row: 3; grid-column: 1 / -1; position: static; width: 100%; min-width: 0; gap: 6px; margin-top: 0; padding-top: 8px; border-top: 1px solid rgba(15, 23, 42, 0.06); justify-content: space-between; }
    body.player-active { padding-bottom: 195px; }

    .side-menu { width: 85vw; max-width: 320px; right: -85vw; }
    .pagination-container { gap: 8px; }
    .page-btn { min-width: 38px; height: 38px; font-size: 15px; padding: 0 8px; }

    .chat-container { height: calc(100vh - 140px); border-radius: 16px; border: 1px solid var(--glass-border); max-width: 100vw; margin: 0; width: 100%; min-height: 60vh;}
    .chat-msg-wrapper { max-width: 95%; }
    .chat-bubble-msg { font-size: 14px; padding: 10px 15px; }
    .chat-header { padding: 15px; }
    .chat-input-area { padding: 10px 15px; }
    .chat-send-btn { width: 45px; height: 45px; font-size: 18px; }
    #chatInput { padding: 14px 15px; font-size: 14px; }
}

/* 4. Màn hình Điện thoại siêu nhỏ (max-width: 380px) */
@media (max-width: 380px) {
    .logo-container h1 { font-size: 18px; }
    .action-icon { font-size: 20px; }
    .right-actions { gap: 15px; }

    .movie-grid-container { gap: 10px; }
    .movie-info { padding: 10px; }
    .movie-info h2 { font-size: 13px; }

    .auth-container, .profile-container, .contact-container { padding: 20px 15px; }
    .form-input { padding: 14px 15px; font-size: 16px !important; touch-action: manipulation; }
    .auth-submit-btn, .submit-btn, .upload-btn { padding: 14px; font-size: 15px; }

    .detail-poster { width: 110px; }
    .detail-title { font-size: 16px; }
    .stat-btn, .stat-item { font-size: 12px; }
    
    .qr-image-wrapper img { width: 150px; height: 150px; }
    .qr-desc-content { font-size: 15px; letter-spacing: 1px; }
}
/* GỢI Ý PHIM & COMMUNITY BANNER */
.recommendations-container { width: 100%; margin-top: 30px; border-top: 1px solid var(--glass-border); padding-top: 25px; text-align: left; }
.recommendations-title { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 15px; }
.recommendations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; }
.rec-movie-card { background: #f9f9fb; border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.3s var(--bezier-smooth), box-shadow 0.3s; border: 1px solid var(--glass-border); display: flex; flex-direction: column; text-decoration: none; position: relative; }
.rec-movie-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.rec-poster { width: 100%; aspect-ratio: 9 / 13; background-size: cover; background-position: center; }
.rec-info { padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.rec-title { font-size: 13px; font-weight: 700; color: var(--text-main); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.rec-views { font-size: 11px; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* Bỏ gạch chân cho thẻ a cộng đồng banner */
.community-banner { text-decoration: none; }

.community-banner { margin-top: 15px; width: 100%; background: linear-gradient(135deg, rgba(255, 94, 0, 0.1), rgba(255, 94, 0, 0.05)); border: 1px dashed var(--accent-color); border-radius: 20px; padding: 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: 0.3s; }
.community-banner:hover { background: rgba(255, 94, 0, 0.15); transform: translateY(-3px); }
.community-banner-content { display: flex; align-items: center; gap: 15px; text-align: left; }
.community-icon-box { width: 45px; height: 45px; background: var(--accent-gradient); border-radius: 12px; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 20px; box-shadow: 0 5px 15px rgba(255, 94, 0, 0.3); }
.community-text h4 { font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 3px; }
.community-text p { font-size: 13px; color: var(--text-muted); margin: 0; }
.community-arrow { color: var(--accent-color); font-size: 18px; transition: 0.3s; }
.community-banner:hover .community-arrow { transform: translateX(5px); }

/* SUPPORT BANNER */
.support-banner { margin-top: 30px; width: 100%; background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05)); border: 1px dashed #3b82f6; border-radius: 20px; padding: 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: 0.3s; text-decoration: none; }
.support-banner:hover { background: rgba(59, 130, 246, 0.15); transform: translateY(-3px); }
.support-banner-content { display: flex; align-items: center; gap: 15px; text-align: left; }
.support-icon-box { width: 45px; height: 45px; background: linear-gradient(135deg, #3b82f6, #2563eb); border-radius: 12px; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 20px; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }
.support-text h4 { font-size: 15px; font-weight: 800; color: var(--text-main); margin-bottom: 3px; }
.support-text p { font-size: 13px; color: var(--text-muted); margin: 0; }
.support-arrow { color: #3b82f6; font-size: 18px; transition: 0.3s; }
.support-banner:hover .support-arrow { transform: translateX(5px); }

.rec-loading-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.7); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 10; backdrop-filter: blur(2px); }
.rec-movie-card.loading .rec-loading-overlay { opacity: 1; pointer-events: all; }
.rec-spinner { border: 3px solid rgba(0,0,0,0.1); border-left-color: var(--accent-color); border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* Hiệu ứng Nút Google */
.google-btn-wrapper {
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 40px; /* Bo góc tròn (pill) */
    margin: 5px auto;
    width: max-content;
}
.google-btn-wrapper:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* =================================================================
   GIAO DIỆN CHÍNH SÁCH TOÀN MÀN HÌNH (FULLSCREEN POLICY READER)
   Hỗ trợ Dark/Light Theme, Song ngữ VI/EN, Chuyển động mượt mà
   ================================================================= */

.policy-fullscreen-tab {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 15px 40px 15px;
    box-sizing: border-box;
    animation: policyFadeIn 0.35s ease-out;
}

@keyframes policyFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Header Bar */
.policy-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    margin-bottom: 15px;
    position: sticky;
    top: 84px;
    z-index: 50;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.policy-back-btn {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.policy-back-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateX(-3px);
}

.policy-header-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.policy-header-title i {
    color: var(--accent-color);
}

.policy-header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-tool-btn {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.policy-tool-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.policy-tool-btn .lang-flag {
    font-size: 15px;
}

/* 2. Sub-navigation Pills */
.policy-subnav-container {
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.policy-subnav-container::-webkit-scrollbar {
    display: none;
}

.policy-subnav-wrapper {
    display: inline-flex;
    background: #f8fafc;
    padding: 6px;
    border-radius: 40px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    gap: 6px;
    min-width: 100%;
    box-sizing: border-box;
    justify-content: space-around;
}

.policy-nav-pill {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.policy-nav-pill i {
    font-size: 14px;
}

.policy-nav-pill:hover {
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.04);
}

.policy-nav-pill.active {
    background: linear-gradient(135deg, var(--accent-color), #ff7a29);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 94, 0, 0.28);
}

/* 3. Reading Canvas (Khu vực đọc toàn màn hình nền trắng sạch) */
.policy-reading-canvas {
    border-radius: 24px;
    padding: 35px 40px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    min-height: 500px;
}

/* Chế độ Sáng (Nền trắng đồng nhất toàn trang) */
.policy-reading-canvas,
.policy-reading-canvas.policy-theme-light {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    color: #334155;
}

.policy-reading-canvas.policy-theme-light .policy-card-hero {
    border-bottom: 1px solid #e2e8f0;
}

.policy-reading-canvas.policy-theme-light .policy-hero-title {
    color: #0f172a;
}

.policy-reading-canvas.policy-theme-light .policy-hero-subtitle {
    color: #64748b;
}

.policy-reading-canvas.policy-theme-light .policy-meta-bar {
    color: #94a3b8;
}

.policy-reading-canvas.policy-theme-light .section-heading {
    color: #0f172a;
}

.policy-reading-canvas.policy-theme-light .paragraph {
    color: #334155;
}

.policy-reading-canvas.policy-theme-light .policy-list li {
    color: #334155;
}

.policy-reading-canvas.policy-theme-light .policy-highlight-box {
    background: #fff7ed;
    border-left: 4px solid var(--accent-color);
    color: #9a3412;
}

.policy-reading-canvas.policy-theme-light .feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.policy-reading-canvas.policy-theme-light .feature-card h4 {
    color: #0f172a;
}

.policy-reading-canvas.policy-theme-light .sec-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.policy-reading-canvas.policy-theme-light .faq-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.policy-reading-canvas.policy-theme-light .faq-question {
    color: #0f172a;
}

.policy-reading-canvas.policy-theme-light .faq-answer {
    color: #334155;
    border-top: 1px solid #e2e8f0;
}

/* 4. Nội dung bài viết (Hero & Elements) */
.policy-card-hero {
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.policy-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 94, 0, 0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.policy-hero-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 12px 0;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.policy-hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.policy-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
}

.policy-meta-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.policy-section {
    margin-bottom: 35px;
}

.section-heading {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading i {
    color: var(--accent-color);
    font-size: 18px;
}

.paragraph {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 14px 0;
}

.policy-list {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.policy-list li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.policy-highlight-box {
    padding: 18px 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.7;
}

.highlight-icon {
    font-size: 26px;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.feature-card {
    padding: 22px;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), #ff8533);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.sec-badge {
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sec-badge i {
    color: #10b981;
}

/* Policy Contact Banner */
.policy-contact-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 18px;
    color: #ffffff;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.policy-contact-banner i {
    font-size: 36px;
    color: #60a5fa;
    flex-shrink: 0;
}

.policy-contact-banner strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.policy-contact-banner span {
    font-size: 14px;
    line-height: 1.6;
}

.policy-contact-banner a {
    color: #fbbf24;
    text-decoration: underline;
    font-weight: 700;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-question {
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    user-select: none;
}

.faq-q-text {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.faq-q-text i {
    color: var(--accent-color);
    font-size: 16px;
}

.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    opacity: 0.7;
}

.faq-card.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 20px 22px;
    font-size: 14px;
    line-height: 1.75;
    display: none;
    animation: faqSlideDown 0.25s ease-out;
}

.faq-card.open .faq-answer {
    display: block;
    padding-top: 15px;
}

@keyframes faqSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shimmer Loader khi đổi Tab */
.policy-shimmer-loader {
    padding: 20px 0;
}

.shimmer-line {
    height: 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmerEffect 1.5s infinite;
}

.shimmer-line.line-title { height: 28px; width: 60%; margin-bottom: 20px; }
.shimmer-line.line-sub { height: 16px; width: 80%; margin-bottom: 25px; }
.shimmer-line.line-p { height: 14px; width: 100%; }
.shimmer-line.line-p.short { width: 45%; }

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

/* 5. Responsive Mobile */
@media (max-width: 768px) {
    .policy-fullscreen-tab {
        padding: 5px 8px 30px 8px;
    }

    .policy-header-bar {
        padding: 10px 12px;
        top: 60px;
        border-radius: 16px;
    }

    .policy-header-title {
        font-size: 15px;
    }

    .policy-back-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .policy-tool-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .policy-subnav-wrapper {
        border-radius: 20px;
        padding: 4px;
    }

    .policy-nav-pill {
        padding: 8px 12px;
        font-size: 13px;
    }

    .policy-reading-canvas {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .policy-hero-title {
        font-size: 22px;
    }

    .policy-hero-subtitle {
        font-size: 14px;
    }

    .section-heading {
        font-size: 17px;
    }

    .paragraph, .policy-list li {
        font-size: 14px;
    }

    .policy-contact-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
}


/* =================================================================
   POPUP VIDEO QUẢNG CÁO CHÀO MỪNG (TỈ LỆ 9:16 DỌC - CHUẨN CHUNHATPHAM)
   ================================================================= */

.welcome-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 15px;
    box-sizing: border-box;
}

.welcome-video-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.welcome-video-card {
    position: relative;
    width: 90vw;
    max-width: 360px;
    background: #0d1117;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 94, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-video-overlay.active .welcome-video-card {
    transform: scale(1);
}

/* Nút nổi điều khiển video */
.video-floating-btn {
    position: absolute;
    z-index: 20;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.video-sound-btn {
    top: 12px;
    left: 12px;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
}

.video-sound-btn:hover {
    background: rgba(255, 94, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.video-sound-btn.pulse-prompt {
    animation: soundPulse 1.8s infinite;
}

@keyframes soundPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 94, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0); }
}

.video-close-x-btn {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.video-close-x-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
}

/* Khung Video tỉ lệ 9:16 chuẩn loại bỏ hoàn toàn 100% viền đen */
.welcome-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: calc(80vh - 90px);
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Phóng to nhẹ để phủ kín 100% khung hình, không bao giờ xuất hiện viền đen */
    transform: scale(1.02); /* Phóng to thêm một chút chống hở mép viền tối đa */
    display: block;
    background: #ffffff;
}

/* Chân thẻ chứa CTA và ghi chú */
.welcome-video-footer {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px 16px 18px;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-video-cta-btn {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff9500, #ff5e00);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 94, 0, 0.45);
    transition: all 0.25s ease;
}

.welcome-video-cta-btn:hover {
    background: linear-gradient(135deg, #ffa726, #ff7043);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 94, 0, 0.65);
}

.welcome-video-cta-btn:active {
    transform: scale(0.98);
}

.welcome-video-hide-note {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.welcome-video-hide-note i {
    color: #cbd5e1;
}

@media (max-width: 480px) {
    .welcome-video-card {
        border-radius: 20px;
        max-width: 335px;
    }
    .welcome-video-wrapper {
        max-height: calc(78vh - 85px);
    }
    .welcome-video-cta-btn {
        padding: 11px 16px;
        font-size: 14px;
    }
    .welcome-video-footer {
        padding: 12px 14px 14px 14px;
    }
}


/* Nút gợi ý bật tiếng nổi bật giữa màn hình */
.video-unmute-center-pill {
    position: absolute;
    bottom: 22px;
    background: linear-gradient(135deg, #ff9500, #ff5e00);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(255, 94, 0, 0.6);
    cursor: pointer;
    z-index: 25;
    animation: pulsePill 1.6s infinite;
    pointer-events: auto;
    transition: all 0.3s ease;
}

@keyframes pulsePill {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.video-unmute-center-pill.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.video-loading-spinner {
    position: absolute;
    font-size: 32px;
    color: var(--accent-color);
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-loading-spinner.hidden {
    display: none;
}


/* ==========================================================================
   HERO CINEMA BANNER (TRANG CHỦ CÁO CON AUDIO)
   - Tối ưu 16:9 cho Desktop / Landscape & 9:16 cho Mobile / Portrait
   - Thiết kế cao cấp, chuẩn màu sắc & tương phản, không bị AI hóa
   ========================================================================== */
.hero-cinema-banner {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: url('https://i.postimg.cc/L63MxDHz/Cao-Con-web-cinema-white-16x9.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    display: flex;
    align-items: center;
    aspect-ratio: auto;
    max-height: 440px;
    min-height: 360px;
    transition: all 0.3s ease;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    max-width: 52%;
    padding: 28px 24px 26px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Badge nhận diện */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 94, 0, 0.08);
    color: #ff5e00;
    border: 1px solid rgba(255, 94, 0, 0.2);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 11px;
    color: #ff7a18;
}

/* Tiêu đề / Câu hỏi nổi bật nhất */
.hero-greeting-title {
    font-size: 28px;
    font-weight: 850;
    color: #1a1a1f;
    line-height: 1.35;
    letter-spacing: -0.4px;
    margin: 0 0 12px 0;
}

.hero-user-highlight {
    color: #ff5e00;
    font-weight: 900;
    background: linear-gradient(135deg, #ff7a18, #ff3b30);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* Đoạn giới thiệu nền tảng */
.hero-description {
    font-size: 14.5px;
    line-height: 1.65;
    color: #555770;
    font-weight: 500;
    margin: 0 0 24px 0;
    max-width: 500px;
}

/* Nút bấm hành động */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    user-select: none;
}

/* Nút Xem Ngay (Phim Hot Nhất) */
.hero-btn-play {
    background: linear-gradient(135deg, #ff7a18, #ff4500);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 94, 0, 0.32);
}

.hero-btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 94, 0, 0.42);
    filter: brightness(1.04);
}

.hero-btn-play:active {
    transform: translateY(0);
}

/* Nút Lên Premium (Tài khoản thường) */
.hero-btn-premium {
    background: linear-gradient(135deg, #ffc837, #ff8008);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.hero-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4);
    filter: brightness(1.05);
}

.hero-btn-premium:active {
    transform: translateY(0);
}

/* Trạng thái khi ĐÃ CÓ PREMIUM */
.hero-btn-premium.is-premium {
    background: rgba(254, 243, 199, 0.85);
    color: #b45309;
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
    opacity: 0.92;
}

.hero-btn-premium.is-premium:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

/* Tag hiển thị tên phim hot nhất */
.hero-featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #71717a;
    font-weight: 500;
}

.hero-featured-tag i {
    color: #ff4500;
}

.hero-featured-tag strong {
    color: #1a1a1f;
    font-weight: 700;
}

/* ================= KHỐI MỚI NHẤT & ẢNH NỀN 9:16 MỜ CHÌM NGHỆ THUẬT ================= */
.home-latest-section {
    position: relative;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 30px;
}

.latest-bg-art {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 950px;
    height: calc(100% + 40px);
    background-image: url('https://i.postimg.cc/zXF1x7JR/Cao-Con-web-cinema-white-9x16.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center 20%;
    opacity: 0.12;
    filter: blur(1.5px);
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 85%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 85%, transparent 100%);
}

.home-latest-section .section-header,
.home-latest-section .movie-grid-container {
    position: relative;
    z-index: 1;
}


/* ================= RESPONSIVE CHO MOBILE (9:16) ================= */
@media (max-width: 992px) {
    .hero-cinema-banner {
        aspect-ratio: auto;
        min-height: 330px;
        max-height: 400px;
        background-position: right bottom;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .hero-banner-content {
        padding: 24px 16px 22px 5px;
        max-width: 54%;
    }
    .hero-greeting-title {
        font-size: 23px;
    }
}

@media (max-width: 768px) {
    .hero-cinema-banner {
        aspect-ratio: auto;
        background-image: url('https://i.postimg.cc/zXF1x7JR/Cao-Con-web-cinema-white-9x16.png');
        background-position: center bottom;
        background-size: cover;
        min-height: 440px;
        max-height: none;
        align-items: flex-start;
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin-bottom: 10px;
    }

    .hero-banner-content {
        max-width: 100%;
        width: 100%;
        padding: 20px 16px 190px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0) 100%);
        border-radius: 0;
    }

    .hero-badge {
        padding: 5px 12px;
        font-size: 11px;
        margin-bottom: 10px;
    }

    .hero-greeting-title {
        font-size: 20.5px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .hero-actions {
        gap: 10px;
        width: 100%;
    }

    .hero-btn {
        flex: 1;
        padding: 11px 18px;
        font-size: 13px;
        min-width: 135px;
    }

    .hero-featured-tag {
        font-size: 11.5px;
        margin-top: 4px;
    }
}

@media (max-width: 420px) {
    .hero-cinema-banner {
        min-height: 410px;
    }
    .hero-banner-content {
        padding: 18px 16px 170px;
    }
    .hero-greeting-title {
        font-size: 19px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-btn {
        width: 100%;
    }
}

/* ================= KHỐI PHIM HOT (TOP 10 NHIỀU LƯỢT XEM NHẤT) ================= */
.home-hot-section {
    position: relative;
    width: 100%;
    margin-top: 32px;
    margin-bottom: 30px;
}

.hot-header {
    border-left: 5px solid #ff3b30 !important;
}

.hot-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff3b30;
}

.hot-header h2 i {
    font-size: 20px;
    color: #ff3b30;
}

.hot-header-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    letter-spacing: 0.3px;
}

.badge-hot {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: #ff3b30;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 850;
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(255, 59, 48, 0.22);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-hot.top-1 {
    background: linear-gradient(135deg, #ff3b30, #ff7a18);
}

/* ================= TAB LỊCH SỬ XEM PHIM & NGHE AUDIO (THEO TÀI KHOẢN) ================= */
.history-auth-warning-card {
    text-align: center;
    padding: 42px 24px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}

.history-auth-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
    border: 1px solid #bfdbfe;
}

.history-auth-warning-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.history-auth-warning-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 22px;
}

.history-main-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.history-toolbar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.history-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.history-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.history-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
}

.history-user-badge i {
    color: #2563eb;
}

.history-user-badge strong {
    color: #0f172a;
    font-weight: 800;
}

.history-sync-note {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.history-clear-all-btn,
#btnClearHistory {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.history-toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.history-filter-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    flex-wrap: wrap;
}

.history-filter-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.history-filter-btn:hover {
    color: #0f172a;
}

.history-filter-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.history-filter-btn.active i {
    color: var(--accent-color);
}

.history-count-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #334155;
}

.history-filter-btn.active .history-count-pill {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.history-search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

.history-search-box i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13.5px;
}

.history-search-box input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.history-search-box input:focus {
    background: #ffffff;
    border-color: #2563eb;
}

.history-list-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.history-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.history-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.history-item-card.item-type-video {
    border-left: 4px solid #ea580c;
}

.history-item-card.item-type-audio {
    border-left: 4px solid #2563eb;
}

.history-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.history-poster-wrap {
    position: relative;
    width: 82px;
    height: 112px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.history-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.history-item-card:hover .history-poster-img {
    transform: scale(1.04);
}

.history-media-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.history-media-badge.badge-video {
    background: #ea580c;
}

.history-media-badge.badge-audio {
    background: #2563eb;
}

.history-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.history-movie-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-movie-title:hover {
    color: var(--accent-color);
}

.history-episode-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.history-ep-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
}

.history-ep-pill.ep-video {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.history-ep-pill.ep-audio {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.history-ep-pill strong {
    font-weight: 800;
}

.history-time-meta {
    font-size: 12px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.history-replay-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, filter 0.2s ease;
}

.history-replay-btn.btn-replay-video {
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.history-replay-btn.btn-replay-audio {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.history-replay-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.history-delete-item-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.history-empty-box {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 44px 24px;
    text-align: center;
}

.history-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}

.history-empty-box h4 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.history-empty-box p {
    font-size: 13.5px;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.history-load-more-wrap {
    margin-top: 20px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.history-load-more-info {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.history-load-more-btn {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px 26px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.history-load-more-btn i {
    color: var(--accent-color);
    font-size: 13px;
}

.history-load-more-btn:hover {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.1);
}

@media (max-width: 640px) {
    .history-toolbar-card {
        padding: 16px;
    }
    .history-search-box {
        max-width: 100%;
        width: 100%;
    }
    .history-filter-tabs {
        width: 100%;
        justify-content: space-between;
    }
    .history-filter-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 8px;
        font-size: 12.5px;
    }
    .history-item-card {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
    }
    .history-poster-wrap {
        width: 72px;
        height: 98px;
    }
    .history-item-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
    }
    .history-replay-btn {
        flex: 1;
        justify-content: center;
    }
}

/* =================================================================
   NÂNG CẤP GIAO DIỆN: PLAYBACK RESUME, SỰ KIỆN 7 NGÀY,
   VOUCHER PREMIUM & BÌNH LUẬN PHIM (PC + MOBILE - NỀN TRẮNG)
   ================================================================= */

:root {
    --surface-card: #ffffff;
    --surface-subtle: #f8fafc;
    --surface-muted: #f1f5f9;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Header Event Pill */
.header-event-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 94, 0, 0.25);
    background: rgba(255, 94, 0, 0.08);
    color: var(--accent-color);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.header-event-pill:hover {
    background: rgba(255, 94, 0, 0.14);
    transform: translateY(-1px);
}
.header-event-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}

/* Dải Tiếp Tục Nghe & Xem Gần Nhất trên Trang Chủ (Nằm ngay dưới nút Hero & trên Mới Nhất) */
.home-continue-section {
    margin: 6px auto 24px;
    width: 100%;
    position: relative;
    z-index: 2;
}
.continue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-left-color: var(--accent-color);
    margin-bottom: 12px;
}
.continue-header-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.continue-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.continue-header h2 i {
    color: var(--accent-color);
}
.continue-header-sub {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}
.continue-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.continue-scroll-arrows {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.continue-nav-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}
.continue-nav-arrow:hover {
    border-color: rgba(255, 94, 0, 0.45);
    color: var(--accent-color);
    background: rgba(255, 94, 0, 0.05);
}
.continue-all-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.continue-all-btn:hover {
    color: var(--accent-color);
    border-color: rgba(255, 94, 0, 0.35);
    background: rgba(255, 94, 0, 0.04);
}
.continue-strip-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.continue-strip-grid::-webkit-scrollbar {
    display: none;
}
.continue-card {
    position: relative;
    flex: 0 0 388px;
    width: 388px;
    max-width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}
.continue-strip-grid.is-single .continue-card {
    flex: 0 1 540px;
    width: 100%;
}
.continue-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 94, 0, 0.42);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}
.continue-poster-box {
    position: relative;
    width: 76px;
    height: 104px;
    border-radius: 11px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}
.continue-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.continue-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}
.continue-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-right: 26px;
}
.continue-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 94, 0, 0.1);
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}
.continue-type-tag.is-video {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}
.continue-ep-pill {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 9px;
}
.continue-pct-pill {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-left: auto;
}
.continue-title {
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.continue-progress-bar-bg {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.continue-progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7a18, #ff5e00);
    transition: width 0.25s ease;
}
.continue-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}
.continue-time-row {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.continue-time-row strong {
    color: #ea580c;
    font-weight: 750;
}
.continue-play-pill {
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ff7a18, #ff5e00);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.24);
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.continue-card:hover .continue-play-pill {
    filter: brightness(1.04);
    box-shadow: 0 6px 16px rgba(255, 94, 0, 0.32);
}
.continue-dismiss-btn {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.16s ease;
}
.continue-dismiss-btn:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

/* Thanh tiến độ trên Lịch Sử & Nút Tập */
.history-item-progress-wrap {
    margin-top: 6px;
    width: 100%;
    max-width: 260px;
}
.history-item-progress-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.history-item-progress-track {
    height: 4px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.history-item-progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 999px;
}
.season-btn {
    position: relative;
    overflow: hidden;
}
.season-ep-progress-line {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent-color);
    pointer-events: none;
}

/* Global Player Extra Tools (Sleep Timer, Up Next, Resume Toast) */
.gp-extra-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gp-tool-pill {
    border: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
    color: var(--text-main);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.gp-tool-pill.active {
    background: rgba(255, 94, 0, 0.14);
    border-color: rgba(255, 94, 0, 0.45);
    color: var(--accent-color);
}
.gp-speed-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 120px;
    width: 224px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    z-index: 1250;
}
.gp-speed-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.gp-speed-options button {
    padding: 7px 6px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    transition: all 0.16s ease;
}
.gp-speed-options button:hover {
    border-color: rgba(255, 94, 0, 0.45);
    color: #ea580c;
}
.gp-speed-options button.active {
    background: #ff5e00;
    border-color: #ff5e00;
    color: #ffffff;
}
.sleep-timer-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 16px;
    width: 230px;
    background: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    z-index: 1200;
}
.sleep-timer-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}
.sleep-timer-menu-head button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
}
.sleep-timer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.sleep-timer-options button {
    padding: 7px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.sleep-timer-options button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.sleep-timer-options .sleep-cancel-opt {
    color: #dc2626;
}
.resume-toast-bar {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 16px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 1150;
}
.resume-toast-bar button {
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    cursor: pointer;
}

/* Up Next Toast */
.upnext-toast {
    position: fixed;
    right: 20px;
    bottom: 92px;
    background: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--accent-color);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1400;
    max-width: 340px;
}
.upnext-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.upnext-kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
}
.upnext-info strong {
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upnext-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.upnext-cancel-btn {
    border: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.upnext-play-btn {
    border: none;
    background: var(--accent-color);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Tủ Truyện / Extra Movie Meta & Bộ lọc Kho Truyện */
#bookmarkMovieBtn.bookmarked {
    background: rgba(255, 94, 0, 0.12);
    border-color: rgba(255, 94, 0, 0.35);
    color: var(--accent-color);
}
.movie-extra-meta {
    margin: 10px 0 4px;
    padding: 10px 14px;
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-main);
    text-align: left;
}
.movie-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.movie-meta-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-muted);
}
.movie-meta-tag.status-tag {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.list-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.list-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.list-chip {
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.list-chip.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.list-sort-select {
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Khối Sự Kiện 7 Ngày & Hồ sơ */
.profile-event-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.profile-event-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.profile-event-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1;
}
.profile-event-voucher-thumb {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 94, 0, 0.28);
    background: #faf6ef;
    box-shadow: 0 3px 10px rgba(255, 94, 0, 0.12);
    flex-shrink: 0;
}
.profile-event-voucher-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-event-head h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-event-head h4 i {
    color: var(--accent-color);
}
.profile-event-head p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}
.profile-event-open-btn {
    border: 1px solid rgba(255, 94, 0, 0.3);
    background: rgba(255, 94, 0, 0.08);
    color: var(--accent-color);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9px;
    cursor: pointer;
    flex-shrink: 0;
}
.profile-event-progress-track {
    height: 7px;
    background: var(--surface-muted);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.profile-event-progress-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}
.profile-event-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Modal Sự Kiện 7 Ngày */
.retention-event-modal-card {
    position: relative;
    width: min(560px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface-card);
    color: var(--text-main);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.event-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
    color: var(--text-main);
    cursor: pointer;
    font-size: 15px;
}
.event-modal-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--accent-color);
    background: rgba(255, 94, 0, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.event-modal-header h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
    padding-right: 36px;
}
.event-modal-header p {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.event-reward-spotlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.52));
    border: 1.5px solid rgba(255, 94, 0, 0.22);
    margin-bottom: 14px;
}
.event-reward-thumb {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 11px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 94, 0, 0.3);
    background: #faf6ef;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.14);
    flex-shrink: 0;
}
.event-reward-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-reward-pct {
    position: absolute;
    right: 3px;
    bottom: 3px;
    background: var(--accent-color);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}
.event-reward-info {
    flex: 1;
    min-width: 0;
}
.event-reward-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.45px;
    color: var(--accent-color);
    margin-bottom: 2px;
}
.event-reward-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
}
.event-reward-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 2px;
}
.event-reward-status {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 94, 0, 0.11);
    color: var(--accent-color);
    white-space: nowrap;
}
.event-reward-status.is-ready {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}
.event-reward-status.is-done {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}
.event-day-vthumb {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 94, 0, 0.45);
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(255, 94, 0, 0.18);
}
.event-day-vthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-today-box {
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}
.event-today-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.event-today-row strong {
    color: var(--accent-color);
    font-size: 14px;
}
.event-bar-track {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-muted);
    overflow: hidden;
    margin-bottom: 7px;
}
.event-bar-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 999px;
    transition: width 0.35s ease;
}
.event-today-status {
    font-size: 12px;
    color: var(--text-muted);
}
.event-cooldown-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.25);
    color: var(--text-main);
    font-size: 13px;
    margin-bottom: 14px;
}
.event-cooldown-box i {
    color: #d97706;
    font-size: 17px;
    margin-top: 2px;
}
.event-streak-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.event-day-tile {
    border: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
    border-radius: 12px;
    padding: 10px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.event-day-tile.done {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: #059669;
}
.event-day-tile.current {
    border-color: var(--accent-color);
    background: rgba(255, 94, 0, 0.07);
}
.event-day-tile.reward-day {
    border-style: dashed;
}
.event-day-num {
    font-size: 11px;
    font-weight: 700;
}
.event-day-icon {
    font-size: 15px;
    color: var(--text-muted);
}
.event-day-tile.done .event-day-icon {
    color: #10b981;
}
.event-day-tile.current .event-day-icon {
    color: var(--accent-color);
}
.event-day-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}
.event-vouchers-box {
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    margin-bottom: 16px;
}
.event-vouchers-head h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.event-vouchers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.event-voucher-empty-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 13px;
    border: 1px dashed rgba(255, 94, 0, 0.34);
    background: rgba(255, 247, 237, 0.45);
}
.ev-empty-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 94, 0, 0.25);
    background: #faf6ef;
    flex-shrink: 0;
}
.ev-empty-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.88);
}
.ev-empty-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ev-empty-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}
.ev-empty-text span {
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--text-muted);
}
.event-voucher-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--border-subtle);
    background: var(--surface-subtle);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.event-voucher-card:hover:not(.is-used):not(.is-expired) {
    border-color: rgba(255, 94, 0, 0.45);
    box-shadow: 0 4px 14px rgba(255, 94, 0, 0.08);
}
.event-voucher-card.is-used,
.event-voucher-card.is-expired {
    opacity: 0.68;
}
.ev-card-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1;
}
.ev-thumb-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 11px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 94, 0, 0.28);
    background: #faf6ef;
    flex-shrink: 0;
}
.ev-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-voucher-card.is-used .ev-thumb-wrap img,
.event-voucher-card.is-expired .ev-thumb-wrap img {
    filter: grayscale(0.95) opacity(0.58);
}
.ev-thumb-pct {
    position: absolute;
    right: 2px;
    bottom: 2px;
    background: var(--accent-color);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 5px;
    line-height: 1.2;
}
.event-voucher-card.is-used .ev-thumb-pct,
.event-voucher-card.is-expired .ev-thumb-pct {
    background: #64748b;
}
.ev-thumb-stamp {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.48);
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-align: center;
}
.ev-card-info {
    min-width: 0;
    flex: 1;
}
.ev-code-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.voucher-code-pill {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(255, 94, 0, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
}
.voucher-copy-btn {
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.voucher-copy-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.voucher-copy-btn.is-copied {
    border-color: rgba(16, 185, 129, 0.45);
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}
.voucher-title-line {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voucher-meta-line {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.ev-status-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.voucher-use-btn {
    border: none;
    background: var(--accent-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(255, 94, 0, 0.22);
}
.voucher-use-btn:hover {
    filter: brightness(1.05);
}
.event-cta-btn {
    width: 100%;
}

/* Chọn Voucher ở Bước 3 Premium (#premStep3 - Dạng Nút Chọn & Modal Kho Voucher) */
.prem-voucher-section {
    margin-bottom: 14px;
    text-align: left;
}
.prem-voucher-selector-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-subtle);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.prem-voucher-selector-row:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(255, 94, 0, 0.08);
}
.prem-voucher-selector-row.has-applied {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.05);
}
.prem-vs-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.prem-vs-art {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 11px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 94, 0, 0.28);
    background: #faf6ef;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(255, 94, 0, 0.12);
    transition: all 0.2s ease;
}
.prem-vs-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.prem-vs-art-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    background: var(--accent-color);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 5px;
    line-height: 1.15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}
.prem-voucher-selector-row.is-empty .prem-vs-art {
    border-color: var(--border-subtle);
    box-shadow: none;
}
.prem-voucher-selector-row.is-empty .prem-vs-art img {
    filter: saturate(0.75) opacity(0.78);
}
.prem-voucher-selector-row.is-empty .prem-vs-art-badge {
    background: #64748b;
}
.prem-voucher-selector-row.has-applied .prem-vs-art {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.22);
}
.prem-voucher-selector-row.has-applied .prem-vs-art-badge {
    background: #059669;
}
.prem-vs-text {
    min-width: 0;
}
.prem-vs-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}
.prem-vs-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prem-vs-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.prem-vs-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.prem-vs-pill.is-empty {
    background: var(--surface-muted);
    color: var(--text-muted);
}
.prem-vs-pill.is-available {
    background: rgba(255, 94, 0, 0.12);
    color: var(--accent-color);
}
.prem-vs-pill.is-applied {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
    font-variant-numeric: tabular-nums;
}
.prem-vs-arrow {
    font-size: 12px;
    color: var(--text-muted);
}
.prem-voucher-applied-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    padding: 0 6px;
    font-size: 12px;
}
.prem-va-tag {
    color: #059669;
    font-weight: 600;
}
.prem-va-remove-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}
.prem-va-remove-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

/* Modal Chọn Voucher Giảm Giá (#premVoucherPickerModal) */
.voucher-picker-modal-card {
    position: relative;
    width: min(500px, 94vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    color: var(--text-main);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}
.voucher-picker-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}
.voucher-picker-head .event-modal-close {
    position: static;
    flex-shrink: 0;
}
.voucher-picker-head-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.voucher-picker-art {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 94, 0, 0.28);
    background: #faf6ef;
    box-shadow: 0 3px 10px rgba(255, 94, 0, 0.12);
    flex-shrink: 0;
}
.voucher-picker-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.voucher-picker-head h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 2px 0;
}
.voucher-picker-head p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.voucher-picker-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vp-group-label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin: 4px 0 2px 0;
}
.vp-ticket-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 14px;
    border: 1.5px solid var(--border-subtle);
    background: var(--surface-subtle);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    text-align: left;
}
.vp-ticket-card:hover:not(.is-disabled) {
    border-color: var(--accent-color);
}
.vp-ticket-card.selected {
    border-color: var(--accent-color);
    background: rgba(255, 94, 0, 0.05);
    box-shadow: 0 6px 18px rgba(255, 94, 0, 0.12);
}
.vp-ticket-card.is-disabled {
    opacity: 0.56;
    cursor: not-allowed;
}
.vp-ticket-stub {
    position: relative;
    width: 96px;
    flex-shrink: 0;
    background: linear-gradient(155deg, #fff5e8, #ffe5c6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 9px;
    border-right: 1.5px dashed rgba(255, 94, 0, 0.36);
}
.vp-ticket-card.is-disabled .vp-ticket-stub {
    background: #eef2f6;
    border-right-color: rgba(100, 116, 139, 0.35);
}
.vp-ticket-stub::before,
.vp-ticket-stub::after {
    content: '';
    position: absolute;
    right: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-card);
}
.vp-ticket-stub::before { top: -6px; }
.vp-ticket-stub::after { bottom: -6px; }
.vp-stub-art-box {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 94, 0, 0.28);
    background: #faf6ef;
    box-shadow: 0 3px 10px rgba(255, 94, 0, 0.15);
}
.vp-stub-art-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vp-ticket-card.is-disabled .vp-stub-art-box {
    border-color: rgba(100, 116, 139, 0.25);
    box-shadow: none;
}
.vp-ticket-card.is-disabled .vp-stub-art-box img {
    filter: grayscale(0.95) opacity(0.55);
}
.vp-stub-pct-badge {
    position: absolute;
    right: 3px;
    bottom: 3px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    font-variant-numeric: tabular-nums;
}
.vp-ticket-card.is-disabled .vp-stub-pct-badge {
    background: #64748b;
}
.vp-stub-stamp {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}
.vp-urgent-chip {
    font-size: 10.5px;
    font-weight: 700;
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
}
.vp-ticket-main {
    flex: 1;
    min-width: 0;
    padding: 12px 12px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.vp-ticket-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}
.vp-ticket-saving {
    font-size: 12.5px;
    font-weight: 700;
    color: #059669;
    font-variant-numeric: tabular-nums;
}
.vp-ticket-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
.vp-ticket-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(255, 94, 0, 0.1);
    padding: 1px 6px;
    border-radius: 5px;
}
.vp-ticket-card.is-disabled .vp-ticket-code {
    color: var(--text-muted);
    background: var(--surface-muted);
}
.vp-ticket-card.is-disabled .vp-ticket-saving {
    color: var(--text-muted);
    font-weight: 600;
}
.vp-ticket-right {
    display: flex;
    align-items: center;
    padding-right: 14px;
    flex-shrink: 0;
}
.vp-ticket-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all 0.18s ease;
}
.vp-ticket-card.selected .vp-ticket-check {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.vp-status-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}
.vp-empty-state {
    text-align: center;
    padding: 22px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 94, 0, 0.34);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.52) 0%, var(--surface-subtle) 100%);
}
.vp-empty-voucher-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 12px auto;
}
.vp-empty-voucher-showcase {
    position: relative;
    width: 124px;
    height: 124px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 94, 0, 0.28);
    background: #faf6ef;
    box-shadow: 0 12px 26px rgba(255, 94, 0, 0.14);
}
.vp-empty-voucher-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vp-empty-ribbon {
    position: relative;
    z-index: 2;
    margin-top: -11px;
    background: #18181b;
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.35px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1.5px solid #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}
.vp-empty-ribbon i {
    color: #ff9a52;
}
.vp-empty-state h4 {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}
.vp-empty-state p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 14px 0;
}
.vp-empty-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 94, 0, 0.35);
    background: rgba(255, 94, 0, 0.09);
    color: var(--accent-color);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.vp-empty-event-btn:hover {
    background: rgba(255, 94, 0, 0.16);
}
.voucher-picker-footer {
    padding: 13px 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}
.voucher-picker-footer-summary {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 0;
}
.voucher-picker-footer-summary strong {
    color: #059669;
}
.voucher-picker-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.vp-btn-clear {
    border: 1px solid var(--border-strong);
    background: var(--surface-subtle);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
}
.vp-btn-confirm {
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    width: auto !important;
}
.chk-discount-val { color: #15803d; }

/* Khối Bình Luận Từng Bộ Phim (#movieCommentsSection) */
.movie-comments-section {
    width: 100%;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
    text-align: left;
}
.comments-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.comments-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.comments-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 94, 0, 0.1);
    border: 1px solid rgba(255, 94, 0, 0.18);
    color: var(--accent-color);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.comments-title-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.comments-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.comments-title-row h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
}
.comments-count-pill {
    font-size: 12px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 94, 0, 0.12);
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
}
.comments-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}
.comments-sort-pills {
    display: inline-flex;
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    padding: 3px;
    border-radius: 11px;
    gap: 3px;
    flex-shrink: 0;
}
.comment-sort-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.comment-sort-btn:hover {
    color: var(--text-main);
}
.comment-sort-btn.active {
    background: var(--surface-card);
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Composer Card */
.comment-composer-card {
    background: var(--surface-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.comment-composer-card:focus-within {
    border-color: rgba(255, 94, 0, 0.5);
    box-shadow: 0 6px 24px rgba(255, 94, 0, 0.09);
}
.comment-composer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.comment-composer-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.comment-composer-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
}
.comment-composer-user-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}
.comment-composer-username {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}
.comment-season-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.comment-season-wrap:hover {
    border-color: var(--border-strong);
}
.comment-season-wrap i {
    color: var(--accent-color);
    font-size: 11.5px;
}
.comment-season-select {
    padding: 1px 2px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}
.comment-reply-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-main);
    background: rgba(255, 94, 0, 0.08);
    border-left: 3px solid var(--accent-color);
    padding: 7px 12px;
    border-radius: 9px;
    margin-bottom: 8px;
}
.comment-reply-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.comment-reply-text i {
    color: var(--accent-color);
}
.comment-reply-bar button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.comment-reply-bar button:hover {
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.12);
}
.comment-composer-card textarea {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-main);
    border-radius: 8px;
    padding: 6px 2px;
    font-size: 14.5px;
    line-height: 1.55;
    resize: none;
    min-height: 68px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.comment-composer-card textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.78;
}
.comment-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}
.comment-composer-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.comment-quick-emojis {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding-right: 4px;
}
.comment-emoji-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--surface-subtle);
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.comment-emoji-btn:hover {
    transform: translateY(-1px) scale(1.06);
    background: var(--surface-muted);
    border-color: var(--border-subtle);
}
.comment-spoiler-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
}
.comment-spoiler-check:hover {
    border-color: var(--border-strong);
    color: var(--text-main);
}
.comment-spoiler-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #d97706;
    cursor: pointer;
}
.comment-spoiler-check.is-active,
.comment-spoiler-check:has(input:checked) {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.36);
    color: #b45309;
    font-weight: 700;
}
.comment-composer-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.comment-char-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.comment-char-count.is-near-limit {
    color: #d97706;
    font-weight: 800;
}
.comment-send-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 11px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #ff5e00 0%, #ff7b24 100%) !important;
    box-shadow: 0 4px 14px rgba(255, 94, 0, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease !important;
}
.comment-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 94, 0, 0.32);
}
.comment-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Guest Banner Card */
.comment-guest-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--surface-subtle) 0%, rgba(255, 94, 0, 0.04) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.comment-guest-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 240px;
}
.comment-guest-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 94, 0, 0.12);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.comment-guest-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.comment-guest-copy strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}
.comment-guest-copy span {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.4;
}
.comment-login-cta {
    border: none;
    background: linear-gradient(135deg, #ff5e00 0%, #ff7b24 100%);
    color: #fff;
    padding: 9px 16px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.comment-login-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 94, 0, 0.3);
}

/* Empty & Loading States */
.comments-empty-card {
    background: var(--surface-subtle);
    border: 1.5px dashed var(--border-strong);
    border-radius: 18px;
    padding: 28px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.comments-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    color: var(--accent-color);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.comments-empty-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main);
}
.comments-empty-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 440px;
    margin: 0;
}
.comments-empty-cta {
    margin-top: 6px;
    border: 1px solid rgba(255, 94, 0, 0.28);
    background: rgba(255, 94, 0, 0.08);
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.16s ease, transform 0.16s ease;
}
.comments-empty-cta:hover {
    background: rgba(255, 94, 0, 0.15);
    transform: translateY(-1px);
}
.comments-loading-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comments-loading-line {
    height: 12px;
    border-radius: 999px;
    background: var(--surface-muted);
    animation: ccCommentPulse 1.3s ease-in-out infinite;
}
.comments-loading-line.w-40 { width: 40%; }
.comments-loading-line.w-90 { width: 90%; }
.comments-loading-line.w-65 { width: 65%; }
@keyframes ccCommentPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.9; }
}

/* Comment Cards & Thread List */
.movie-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 14px 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.comment-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.comment-card.pinned {
    border-color: rgba(255, 94, 0, 0.34);
    background: linear-gradient(180deg, rgba(255, 94, 0, 0.045) 0%, var(--surface-card) 56px);
}
.comment-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.comment-author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}
.comment-author-identity {
    min-width: 0;
}
.comment-author-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.comment-avatar-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.18), rgba(255, 145, 77, 0.1));
    border: 1px solid rgba(255, 94, 0, 0.22);
    color: var(--accent-color);
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.comment-avatar-dot.is-admin {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.18), rgba(168, 85, 247, 0.1));
    border-color: rgba(147, 51, 234, 0.28);
    color: #9333ea;
}
.comment-avatar-dot.is-vip {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.22), rgba(245, 158, 11, 0.12));
    border-color: rgba(217, 119, 6, 0.34);
    color: #b45309;
}
.comment-author-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}
.comment-tier-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}
.comment-tier-tag.is-admin {
    background: rgba(147, 51, 234, 0.12);
    color: #9333ea;
}
.comment-season-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}
.comment-pin-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 94, 0, 0.1);
    color: var(--accent-color);
}
.comment-time {
    font-size: 11.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-top: 2px;
    white-space: nowrap;
}
.comment-card-content-col {
    padding-left: 46px;
}
.comment-reply-item .comment-avatar-dot {
    width: 28px;
    height: 28px;
    font-size: 11.5px;
}
.comment-reply-item .comment-card-content-col {
    padding-left: 38px;
}
.comment-body-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-main);
    word-break: break-word;
    white-space: pre-wrap;
}
.comment-spoiler-box {
    padding: 10px 13px;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.06);
    border: 1px dashed rgba(217, 119, 6, 0.38);
    color: #b45309;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}
.comment-spoiler-box:hover {
    background: rgba(217, 119, 6, 0.11);
    border-color: rgba(217, 119, 6, 0.55);
}
.comment-spoiler-box .spoiler-mask-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.45;
}
.comment-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.comment-actions-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.comment-act-btn {
    border: 1px solid transparent;
    background: var(--surface-subtle);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.comment-act-btn:hover {
    background: var(--surface-muted);
    color: var(--text-main);
}
.comment-act-btn.liked {
    background: rgba(255, 94, 0, 0.12);
    border-color: rgba(255, 94, 0, 0.25);
    color: var(--accent-color);
}
.comment-act-btn.is-pinned-btn {
    color: var(--accent-color);
}
.comment-act-btn.danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.comment-replies-list {
    margin-top: 12px;
    padding-left: 14px;
    border-left: 2px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.comment-reply-item {
    background: var(--surface-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 13px;
    padding: 10px 13px;
}
.movie-comments-loadmore-wrap {
    text-align: center;
    margin-top: 14px;
}
.comment-loadmore-btn {
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    color: var(--text-main);
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.comment-loadmore-btn:hover {
    background: var(--surface-subtle);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

@media (min-width: 769px) {
    .gp-actions {
        width: auto;
        min-width: 220px;
        gap: 8px;
    }
}

.upnext-toast {
    z-index: 10040;
}

/* ===================== MODAL XÁC NHẬN ĐĂNG XUẤT TÀI KHOẢN (#logoutConfirmModal) ===================== */
.logout-confirm-card {
    position: relative;
    width: min(420px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    color: var(--text-main);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    padding: 28px 24px 22px;
    text-align: center;
    transform: translateY(18px) scale(0.96);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
#logoutConfirmModal.active .logout-confirm-card {
    transform: translateY(0) scale(1);
}
.logout-confirm-close {
    top: 14px;
    right: 14px;
}
.logout-confirm-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logout-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.logout-confirm-hero h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.logout-confirm-hero p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #64748b;
    font-weight: 500;
    max-width: 320px;
}
.logout-confirm-account-box {
    margin-top: 18px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.logout-confirm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff1e6, #ffe4cc);
    color: #ea580c;
    border: 1px solid #fed7aa;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.logout-confirm-account-meta {
    min-width: 0;
    flex: 1;
}
.logout-confirm-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.logout-confirm-name-row strong {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 190px;
}
.logout-confirm-tier-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
}
.logout-confirm-tier-badge.tier-premium {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}
.logout-confirm-subinfo {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logout-confirm-media-note {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    line-height: 1.4;
}
.logout-confirm-actions {
    margin-top: 20px;
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.logout-proceed-btn {
    flex: 1;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.logout-proceed-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
}
.logout-proceed-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.logout-cancel-primary-btn {
    flex: 1.65;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff6a00 0%, #ea580c 100%);
    color: #ffffff;
    border: 1px solid #ea580c;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
    transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.16s ease;
}
.logout-cancel-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.34);
    filter: brightness(1.03);
}
.logout-cancel-primary-btn:focus-visible {
    outline: 3px solid rgba(255, 106, 0, 0.4);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    header {
        padding: 0 12px;
    }
    .right-actions {
        gap: 10px;
    }
    .header-event-pill {
        padding: 6px 9px;
    }
    .header-event-pill .event-pill-text {
        display: none;
    }
    .continue-header-sub,
    .continue-scroll-arrows {
        display: none !important;
    }
    .continue-header {
        margin-bottom: 10px;
        gap: 10px;
    }
    .continue-header-title-group {
        flex: 1;
        min-width: 0;
    }
    .continue-header h2 {
        font-size: 14.5px;
        line-height: 1.35;
        gap: 6px;
        white-space: normal;
        align-items: flex-start;
    }
    .continue-header h2 i {
        margin-top: 3px;
        flex-shrink: 0;
    }
    .continue-all-btn {
        font-size: 12px;
        padding: 5px 10px;
        flex-shrink: 0;
    }
    .continue-strip-grid {
        gap: 10px;
        padding: 4px 2px 8px;
    }
    .continue-card {
        flex: 0 0 calc(100% - 26px);
        width: calc(100% - 26px);
        padding: 10px;
        gap: 11px;
    }
    .continue-strip-grid.is-single .continue-card {
        flex: 0 0 100%;
        width: 100%;
    }
    .continue-poster-box {
        width: 68px;
        height: 94px;
    }
    .continue-title {
        font-size: 13.5px;
    }
    .continue-play-pill {
        padding: 6px 11px;
        font-size: 12px;
    }
    .event-streak-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .retention-event-modal-card {
        padding: 18px 14px;
    }
    .event-reward-spotlight {
        padding: 9px 10px;
        gap: 9px;
    }
    .event-reward-thumb {
        width: 48px;
        height: 48px;
    }
    .event-voucher-card {
        flex-wrap: wrap;
        gap: 8px;
    }
    .ev-thumb-wrap {
        width: 48px;
        height: 48px;
    }
    .voucher-title-line {
        white-space: normal;
        line-height: 1.3;
    }
    .voucher-picker-head,
    .voucher-picker-body,
    .voucher-picker-footer {
        padding-left: 14px;
        padding-right: 14px;
    }
    .prem-voucher-selector-row {
        padding: 10px 10px;
        gap: 6px;
    }
    .prem-vs-left {
        gap: 8px;
    }
    .prem-vs-art {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }
    .prem-vs-art-badge {
        font-size: 8px;
        padding: 1px 3px;
    }
    .prem-vs-text {
        flex: 1;
        min-width: 0;
    }
    .prem-vs-title {
        font-size: 12px;
        white-space: nowrap;
    }
    .prem-vs-sub {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .prem-vs-right {
        gap: 4px;
    }
    .prem-vs-pill {
        padding: 4px 7px;
        font-size: 10px;
    }
    .vp-ticket-stub {
        width: 82px;
        padding: 8px 6px;
    }
    .vp-stub-art-box {
        width: 64px;
        height: 64px;
    }
    .voucher-picker-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .voucher-picker-footer-actions {
        justify-content: flex-end;
    }
    .movie-stats {
        gap: 8px;
        padding-bottom: 12px;
    }
    .stat-btn, .stat-item {
        font-size: 12.5px;
        padding: 6px 10px;
    }
    .global-player .gp-info {
        padding-right: 6px;
    }
    .gp-extra-tools {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .gp-tool-pill {
        padding: 5px 9px;
        font-size: 11.5px;
    }
    #upNextLabel,
    #sleepTimerLabel {
        display: inline;
    }
    .gp-speed-menu {
        left: 12px;
        right: auto;
        bottom: 56px;
        width: 224px;
    }
    .sleep-timer-menu {
        right: 12px;
        bottom: 56px;
        width: 215px;
    }
    .upnext-toast {
        left: 12px;
        right: 12px;
        max-width: none;
        bottom: 92px;
    }
    .comment-composer-card {
        padding: 12px 13px;
        border-radius: 15px;
    }
    .comment-card {
        padding: 12px 13px;
        border-radius: 14px;
    }
    .comment-card-content-col {
        padding-left: 0;
        margin-top: 4px;
    }
    .comment-reply-item .comment-card-content-col {
        padding-left: 0;
        margin-top: 4px;
    }
    .comment-replies-list {
        padding-left: 10px;
    }
    .comment-guest-banner {
        padding: 12px 13px;
    }
    .comment-login-cta {
        width: 100%;
        justify-content: center;
    }
    .comment-composer-submit {
        width: 100%;
        justify-content: flex-end;
    }
    .logout-confirm-card {
        width: min(390px, 92vw);
        padding: 24px 18px 18px;
        border-radius: 22px;
    }
    .logout-confirm-actions {
        flex-direction: column-reverse;
        gap: 9px;
    }
    .logout-cancel-primary-btn {
        flex: none;
        width: 100%;
        min-height: 50px;
        font-size: 15.5px;
    }
    .logout-proceed-btn {
        flex: none;
        width: 100%;
        min-height: 42px;
        font-size: 13.5px;
    }
}
