/* ==========================================================================
   STYLE TÙY BIẾN CHO GIAO DIỆN TRANG KHÁCH (CLIENT LAYOUT CUSTOM CSS)
   ========================================================================== */

/* Hiệu ứng Glassmorphism tinh xảo cho sidebar và các card */
.glass {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Ép tăng tốc phần cứng GPU để giảm tải CPU khi cuộn trang có backdrop-filter */
    transform: translateZ(0);
    will-change: transform;
}

/* Tạm thời tắt backdrop-filter và pointer-events khi kéo thanh cuộn hoặc cuộn trang nhanh để tối ưu hóa hiệu năng GPU tối đa và tránh block luồng chính */
body.is-scrolling {
    pointer-events: none !important;
}
body.is-scrolling .glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.main-content, .custom-sidebar {
    transform: translateZ(0);
    will-change: transform;
}

/* Đổ bóng dịu nhẹ cho chữ thay thế cho hiệu ứng glow chói mắt */
.text-glow {
    text-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Hiệu ứng viền phát sáng nhẹ nhàng khi di chuột vào phần tử */
.border-glow:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Định dạng thanh cuộn (scrollbar) to đẹp, dễ kéo và nổi bật ở trang chính */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #6366f1; /* Màu xanh tím nổi bật tương tự ảnh sếp gửi */
    border: 2.5px solid #090d16; /* Tạo viền trống tạo chiều sâu cho thanh trượt */
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6; /* Màu tím sáng hơn khi di chuột vào */
}

/* Định dạng thanh cuộn nhỏ gọn, tinh tế riêng cho Sidebar bên trái */
#sidebar ::-webkit-scrollbar, aside ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
#sidebar ::-webkit-scrollbar-track, aside ::-webkit-scrollbar-track {
    background: transparent;
}
#sidebar ::-webkit-scrollbar-thumb, aside ::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border: none;
    border-radius: 99px;
}
#sidebar ::-webkit-scrollbar-thumb:hover, aside ::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* Kích hoạt hiệu ứng cuộn mượt mà cho các vùng cuộn dọc */
.overflow-y-auto, aside nav, aside div, body {
    scroll-behavior: smooth;
}

/* CSS hỗ trợ thu gọn sidebar mượt mà không bị giật layout khi tải lại trang */
@media (min-width: 768px) {
    html.sidebar-is-collapsed #sidebar {
        transform: translateX(-100%) !important;
    }

    html.sidebar-is-collapsed #main-content-wrapper {
        padding-left: 0 !important;
    }
}

/* Hiệu ứng vệt sáng quét qua tấm thẻ (Shimmer effect) khi di chuột */
@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 1.5s infinite;
}

/* Hiệu ứng xoay chậm cho các icon hoặc quả cầu */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* ==========================================================================
   CSS TÙY BIẾN CHO BỘ LỌC SẢN PHẨM TRANG KHÁCH (PREMIUM FILTER UI)
   Tác dụng: Thiết kế bộ lọc phẳng, bo góc mềm mại, tối màu và responsive hoàn hảo
   ========================================================================== */
.client-filter-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.client-filter-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.5rem;
}

.client-filter-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.client-filter-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-left: 60px;
    /* Thụt lề thẳng hàng với text tiêu đề */
}

@media (max-width: 640px) {
    .client-filter-desc {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* Bộ lọc danh mục dạng tag tròn trượt ngang */
.client-category-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scrollbar-width: thin;
}

.client-category-scroll::-webkit-scrollbar {
    height: 4px;
}

.client-category-scroll::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

.client-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid #1f2937;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    cursor: pointer;
}

.client-category-tag:hover {
    color: #ffffff;
    border-color: #4b5563;
    background: rgba(31, 41, 55, 0.4);
}

.client-category-tag.active {
    color: #ffffff;
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
}

/* Thanh filter tìm kiếm và 3 select box ở dưới */
.client-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
}

.client-search-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.client-search-input {
    width: 100%;
    height: 46px;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid #1f2937 !important;
    border-radius: 12px !important;
    padding: 10px 16px 10px 42px !important;
    font-size: 0.875rem !important;
    color: #ffffff !important;
    transition: all 0.2s ease-in-out !important;
}

.client-search-input:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15) !important;
    outline: none !important;
}

.client-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
}

/* Thiết kế 3 select box nằm ngang */
.client-select-wrapper {
    position: relative;
    width: 180px;
}

@media (max-width: 768px) {
    .client-select-wrapper {
        width: calc(33.33% - 8px);
        min-width: 110px;
    }
}

@media (max-width: 480px) {
    .client-select-wrapper {
        width: 100%;
    }
}

.client-select {
    width: 100%;
    height: 46px;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid #1f2937 !important;
    border-radius: 12px !important;
    padding: 10px 36px 10px 16px !important;
    font-size: 0.875rem !important;
    color: #e2e8f0 !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out !important;
}

.client-select:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15) !important;
    outline: none !important;
}

.client-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 0.75rem;
}

/* Nút xóa lọc tùy biến gọn gàng */
.client-clear-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    width: 46px;
    /* Chiều rộng cố định dạng nút vuông */
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.client-clear-filter-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* Bộ lọc Tag sản phẩm dạng tag tròn trượt ngang */
.client-tag-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
    /* Ẩn scrollbar trên Firefox */
}

.client-tag-scroll::-webkit-scrollbar {
    display: none;
    /* Ẩn scrollbar trên Chrome/Safari */
}

.client-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.775rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid #1e293b;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
}

.client-tag-pill:hover {
    color: #ffffff;
    border-color: #3b4252;
    background: rgba(30, 41, 59, 0.4);
}

.client-tag-pill.active {
    color: #ffffff;
    background: #6366f1 !important;
    /* Indigo primary */
    border-color: #6366f1 !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25) !important;
}

/* Tối ưu hóa bộ lọc trên Mobile */
@media (max-width: 767px) {
    .hidden-mobile-filters {
        display: none;
        /* Ẩn mặc định trên mobile */
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .hidden-mobile-filters.active {
        display: flex;
        /* Hiện khi active */
    }

    .advanced-filters-grid {
        display: grid;
        grid-template-cols: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .advanced-filters-grid .client-select-wrapper {
        width: 100% !important;
        min-width: 0 !important;
    }

    .hidden-mobile-filters .client-clear-filter-btn {
        width: 100% !important;
        margin-top: 2px;
    }

    /* Nút toggle bộ lọc trên Mobile */
    .mobile-filter-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        padding: 0 16px;
        font-size: 0.875rem;
        font-weight: 500;
        color: #94a3b8;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid #1f2937;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-filter-toggle-btn:hover,
    .mobile-filter-toggle-btn.active {
        color: #ffffff;
        border-color: #7c3aed;
        background: rgba(124, 58, 237, 0.1);
    }
}

@media (min-width: 768px) {
    .mobile-filter-toggle-btn {
        display: none !important;
        /* Ẩn nút toggle trên desktop */
    }

    .hidden-mobile-filters {
        display: flex !important;
        /* Luôn hiện dạng flex trên desktop */
        align-items: center;
        gap: 12px;
        flex: 1;
        justify-content: flex-start;
    }

    .advanced-filters-grid {
        display: flex;
        gap: 12px;
    }

    .advanced-filters-grid .client-select-wrapper {
        width: 180px !important;
    }
}

/* ==========================================================================
   CSS CHO TOPBAR MOBILE PREMIUM SAAS STYLE 2026
   ========================================================================== */
.mobile-topbar {
    height: 72px;
    background: rgba(5, 8, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.06);
    padding-top: env(safe-area-inset-top);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-topbar-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-topbar-btn:hover {
    color: #ffffff;
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.mobile-topbar-btn:active {
    transform: scale(0.95);
}

.mobile-topbar-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #7c3aed;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #050816;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

/* Scroll Animation cho Topbar chi tiết sản phẩm */
.mobile-topbar-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-topbar-thumb {
    width: 0px;
    height: 0px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.scrolled-topbar .mobile-topbar-thumb {
    width: 24px;
    height: 24px;
    opacity: 1;
    transform: scale(1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   CSS CHO BOTTOM NAVIGATION BAR MOBILE PREMIUM SAAS STYLE 2026
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: -2px;
    /* Lún nhẹ xuống dưới 2px để che khít khe hở hiển thị của trình duyệt */
    left: -2px;
    /* Mở rộng nhẹ 2px sang trái */
    right: -2px;
    /* Mở rộng nhẹ 2px sang phải */
    /* Chiều cao tự động co giãn và đặt chiều cao tối thiểu để tương thích với Safe Area trên iOS */
    height: auto;
    min-height: 72px;
    /* Tăng độ mờ nền lên 96% để ngăn chữ bị đè và lộ ra bên dưới khi cuộn ở các trình duyệt không hỗ trợ backdrop-filter */
    background: rgba(11, 16, 32, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(124, 58, 237, 0.15);
    z-index: 50;
    padding-bottom: calc(env(safe-area-inset-bottom) + 2px);
    /* Bù lại 2px bị lún xuống */
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-left: 12px;
    padding-right: 12px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 48px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav-item:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.mobile-bottom-nav-item:active {
    transform: scale(0.95);
}

.mobile-bottom-nav-item.active {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.mobile-bottom-nav-item i {
    font-size: 18px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav-item span {
    font-size: 9px;
    font-weight: 500;
    margin-top: 2px;
    font-family: 'Outfit', sans-serif;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nút trung tâm Khám phá AI */
.mobile-bottom-nav-center {
    position: relative;
    top: -14px;
    /* Trồi lên trên Navigation Bar */
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
    transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Spring Animation */
    -webkit-tap-highlight-color: transparent;
    z-index: 51;
}

.mobile-bottom-nav-center:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.8);
}

.mobile-bottom-nav-center:active {
    transform: scale(0.9) translateY(2px);
}

.mobile-bottom-nav-center i {
    font-size: 22px;
    animation: sparkles-pulse 2s infinite alternate;
}

@keyframes sparkles-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
    }

    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    }
}

/* Badge thông báo */
.mobile-bottom-badge {
    position: absolute;
    top: 1px;
    right: 12px;
    background: #8b5cf6;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(11, 16, 32, 0.9);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}


/* Điều chỉnh vị trí nút Back to Top trên di động để nằm phía trên Bottom Navigation Bar */
@media (max-width: 767.98px) {
    #back-to-top {
        bottom: 92px !important;
    }
}


/* ==========================================================================
   CUSTOM SIDEBAR PREMIUM UI 2026 (STYLISH DARK MODE & GLASSMORPHISM)
   ========================================================================== */
.custom-sidebar {
    background: rgba(8, 12, 20, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3) !important;
}

.sidebar-menu-group-title {
    color: #475569 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    padding-left: 16px !important;
    margin-top: 24px !important;
    margin-bottom: 8px !important;
}

.sidebar-menu-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    color: #94a3b8 !important;
    margin-bottom: 4px !important;
}

.sidebar-menu-item i {
    color: #8b5cf6 !important;
    width: 20px !important;
    margin-right: 12px !important;
    transition: all 0.25s ease !important;
    font-size: 15px !important;
    text-align: center !important;
}

.sidebar-menu-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.sidebar-menu-item.active {
    color: #c084fc !important;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.02) 100%) !important;
    border-left: 2px solid #8b5cf6 !important;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    padding-left: 14px !important;
}

.sidebar-menu-item.active i {
    color: #c084fc !important;
}

/* User Card Premium */
.sidebar-user-card {
    background: rgba(8, 12, 20, 0.8) !important;
    border: 1px solid rgba(139, 92, 246, 0.22) !important;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08) !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin: 12px 16px !important;
    position: relative !important;
    overflow: hidden !important;
}

.sidebar-user-avatar {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 9999px !important;
    border: 2px solid rgba(139, 92, 246, 0.4) !important;
    background: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.sidebar-user-avatar-vip {
    border-color: #f59e0b !important;
}

.vip-badge-crown {
    position: absolute !important;
    bottom: -3px !important;
    right: -3px !important;
    background: #f59e0b !important;
    color: #0f172a !important;
    font-size: 8px !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #080c14 !important;
}

.user-vip-tag {
    background: rgba(245, 158, 11, 0.1) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #f59e0b !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: inline-block !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
}

.sidebar-vip-progress-bar {
    width: 100% !important;
    height: 3px !important;
    background: #1e293b !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    margin-top: 6px !important;
}

.sidebar-vip-progress-fill {
    height: 100% !important;
    background: #f59e0b !important;
    border-radius: 9999px !important;
}

.sidebar-balance-btn-plus {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.sidebar-balance-btn-plus:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    transform: scale(1.05) !important;
}

/* Nút đăng xuất tinh tế */
.sidebar-logout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(100% - 32px) !important;
    padding: 12px !important;
    margin: 8px 16px 16px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    background: rgba(239, 68, 68, 0.02) !important;
    transition: all 0.25s ease !important;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-1px) !important;
}


/* ==========================================================================
   DEPOSIT PAGE STYLES (PREMIUM WALLET RECHARGE INTERFACE)
   ========================================================================== */
.quick-amount-btn {
    background: rgba(15, 23, 42, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    text-align: center !important;
}

.quick-amount-btn:hover {
    background: rgba(139, 92, 246, 0.06) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: #ffffff !important;
}

.quick-amount-btn.active {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: #8b5cf6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15) !important;
}

.payment-method-card {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 16px !important;
    background: rgba(15, 23, 42, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.payment-method-card:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
    background: rgba(15, 23, 42, 0.5) !important;
}

.payment-method-card.active {
    border-color: #8b5cf6 !important;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.05) !important;
}

.bank-partner-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 4px !important;
}

.bank-partner-logo:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

.step-number-badge {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: rgba(139, 92, 246, 0.15) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #c084fc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.benefit-card-premium {
    background: rgba(8, 12, 20, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 16px !important;
    padding: 16px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transition: all 0.25s ease !important;
}

.benefit-card-premium:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.05) !important;
}

.benefit-icon-wrapper {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
}

.deposit-header-glow {
    position: relative !important;
    background: radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%) !important;
}

.vector-illustration-3d {
    position: relative !important;
    width: 140px !important;
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.vector-illustration-3d .wallet-main {
    position: absolute !important;
    width: 70px !important;
    height: 48px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
    transform: perspective(300px) rotateY(-15deg) rotateX(10deg) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    left: 25px !important;
    top: 25px !important;
}

.vector-illustration-3d .wallet-tab {
    position: absolute !important;
    right: 48px !important;
    top: 36px !important;
    width: 24px !important;
    height: 20px !important;
    background: #6d28d9 !important;
    border-radius: 5px !important;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.vector-illustration-3d .check-icon {
    position: absolute !important;
    top: 15px !important;
    right: 32px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4) !important;
    border: 2px solid #080c14 !important;
    z-index: 10 !important;
}

.vector-illustration-3d .coins-stack {
    position: absolute !important;
    bottom: 20px !important;
    right: 38px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.vector-illustration-3d .coin-single {
    width: 18px !important;
    height: 6px !important;
    background: linear-gradient(180deg, #c084fc 0%, #8b5cf6 100%) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-top: -3px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* CSS Hỗ trợ hiển thị định dạng nội dung từ CKEditor (tránh bị reset bởi Tailwind) */
.ckeditor-content ol {
    list-style-type: decimal !important;
    padding-left: 20px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.ckeditor-content ul {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.ckeditor-content li {
    margin-bottom: 6px !important;
    display: list-item !important;
}

.ckeditor-content p {
    margin-bottom: 8px !important;
}

.ckeditor-content strong,
.ckeditor-content b {
    font-weight: bold !important;
}

.ckeditor-content em,
.ckeditor-content i {
    font-style: italic !important;
}

.ckeditor-content h1,
.ckeditor-content h2,
.ckeditor-content h3,
.ckeditor-content h4,
.ckeditor-content h5,
.ckeditor-content h6 {
    font-weight: bold !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
}

/* Hiệu ứng bay lơ lửng 3D mượt mà cho Banner trang chủ */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Định dạng giới hạn chiều rộng và chiều cao tối đa cho card sản phẩm dọc 9:16 để hiển thị resize đồng bộ */
.product-card {
    max-width: 310px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   CSS CĂN GIỮA TOÀN BỘ WEBSITE (BAO GỒM CẢ SIDEBAR & CONTENT) TRÊN PC SIÊU RỘNG
   ========================================================================== */
@media (min-width: 1600px) {
    /* Dịch chuyển sidebar cố định bám theo container căn giữa */
    #sidebar {
        left: calc((100vw - 1600px) / 2) !important;
    }
    
    /* Dịch chuyển wrapper bên phải và giới hạn chiều rộng tối đa */
    #main-content-wrapper {
        max-width: 1600px !important;
        margin-left: calc((100vw - 1600px) / 2) !important;
        padding-left: 288px !important; /* Giữ padding-left tương đương w-72 để chừa chỗ cho sidebar */
    }

    /* Đảm bảo sidebar thu gọn hoạt động chính xác */
    html.sidebar-is-collapsed #sidebar {
        transform: translateX(-100%) !important;
        left: 0 !important;
    }
    html.sidebar-is-collapsed #main-content-wrapper {
        max-width: 1600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
    }
}

/* ==========================================================================
   MOBILE LAYOUT REFINEMENTS & RE-DESIGN OVERRIDES (100% COMPATIBLE)
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Đảm bảo card sản phẩm trên di động chiếm trọn chiều ngang màn hình */
    .product-card {
        max-width: 100% !important;
        width: 100% !important;
        background: rgba(15, 23, 42, 0.35) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Làm mượt mà ảnh thumbnail và bo góc */
    .product-media-wrapper {
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    
    /* Ô tìm kiếm bo tròn 16px */
    .client-search-input {
        border-radius: 16px !important;
        font-size: 13px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: rgba(17, 24, 39, 0.6) !important;
        height: 48px !important;
    }
    .client-search-input:focus {
        border-color: rgba(139, 92, 246, 0.5) !important;
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.1) !important;
    }

    /* Các bộ lọc select ẩn/hiện nâng cao */
    #advanced-filters-wrapper {
        display: none !important;
        width: 100% !important;
        margin-top: 12px !important;
        padding: 12px !important;
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 16px !important;
        backdrop-filter: blur(10px) !important;
    }
    
    #advanced-filters-wrapper.active {
        display: block !important;
        animation: slideDownFade 0.3s ease-out forwards !important;
    }
    
    .advanced-filters-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .client-select-wrapper {
        width: 100% !important;
    }
}

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

/* ==========================================================================
   HIỆU ỨNG NỀN PLEXUS & GRID PERSPECTIVE 3D GIỐNG ẢNH CỦA SẾP THÀNH
   ========================================================================== */
body {
    background-color: transparent !important;
}

/* Canvas chứa chòm sao plexus và quầng sáng radial gradient ở nền */
#bg-plexus-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    background: radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.14) 0%, rgba(124, 58, 237, 0.04) 50%, transparent 100%),
                radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.16) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 100%),
                #04050d; /* Màu tối xanh tím thẳm làm nền cơ sở */
    /* Tối ưu GPU layer tránh render lại pixel khi cuộn trang */
    transform: translateZ(0);
    will-change: transform;
}

/* Lưới 3D perspective phối cảnh nghiêng ở đáy trang */
.grid-3d-floor {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 40vh;
    z-index: -9;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateZ(0);
    will-change: transform;
    transform-origin: bottom;
    opacity: 0.75;
    /* Hiệu ứng mờ dần từ đáy lên trên bằng linear mask */
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

/* ==========================================================================
   CSS CHO KHO TÀI NGUYÊN - CHẾ ĐỘ XEM GRID/LIST
   ========================================================================== */
.orders-list-container.view-list .grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

.orders-list-container.view-list .order-card-item {
    flex-direction: row !important;
    align-items: center !important;
    padding: 16px !important;
    height: auto !important;
}

.orders-list-container.view-list .order-card-media {
    width: 150px !important;
    aspect-ratio: 16/10 !important;
    height: auto !important;
    border-radius: 12px !important;
    margin-right: 20px !important;
    border-bottom: none !important;
}

.orders-list-container.view-list .order-card-content {
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 0 !important;
}

.orders-list-container.view-list .order-card-content h3 {
    margin-bottom: 0 !important;
    min-height: auto !important;
    max-width: 45% !important;
    font-size: 14px !important;
}

.orders-list-container.view-list .order-card-meta {
    margin-top: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
}

.orders-list-container.view-list .order-card-price-row {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

.orders-list-container.view-list .order-card-actions {
    padding: 0 !important;
    margin-left: 24px !important;
    width: 240px !important;
    flex-shrink: 0 !important;
}

/* Ẩn scrollbar cho khu vực Category scroll */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hỗ trợ responsive cho view list trên mobile */
@media (max-width: 768px) {
    .orders-list-container.view-list .order-card-item {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
    }

    .orders-list-container.view-list .order-card-media {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }

    .orders-list-container.view-list .order-card-content {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .orders-list-container.view-list .order-card-content h3 {
        max-width: 100% !important;
        margin-bottom: 8px !important;
    }

    .orders-list-container.view-list .order-card-meta {
        flex-direction: row !important;
        margin-bottom: 12px !important;
    }

    .orders-list-container.view-list .order-card-price-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
        padding-top: 12px !important;
        margin-bottom: 12px !important;
    }

    .orders-list-container.view-list .order-card-actions {
        margin-left: 0 !important;
        width: 100% !important;
    }
}