/* General Body Styles */
body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Helper Class */
.section-title {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.section-title::before {
    content: '♦';
    margin-right: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

/* Top Navbar */
.top-navbar {
    background-color: #121221;
    border-bottom: 1px solid #333;
}

.search-container .form-control {
    background-color: #0a0a1a;
    border-color: #444;
    color: #fff;
    border-radius: 0;
}

.search-container .form-control::placeholder {
    color: #888;
}

.search-container .input-group-text {
    background-color: #0a0a1a;
    border-color: #444;
    color: #888;
    border-radius: 0;
}

.btn-write {
    background-color: #e0a836;
    border-color: #e0a836;
    color: #111;
    font-weight: bold;
}
.btn-login {
    border-color: #e0a836;
    color: #e0a836;
}
.btn-login:hover {
    background-color: #e0a836;
    color: #111;
}

/* ===================================== */
/* === SIDEBAR (LEFT-SIDEBAR) STYLES === */
/* ===================================== */

.left-sidebar {
    width: var(--sidebar-width); /* Sử dụng biến */
    background-color: var(--secondary-bg);
    padding: 1.5rem 0;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    z-index: 1021;
    overflow-y: auto; /* Thêm scroll nếu nội dung sidebar dài hơn màn hình */
    scrollbar-width: none; /* Ẩn scrollbar Firefox */
}
.left-sidebar::-webkit-scrollbar { /* Ẩn scrollbar Chrome/Safari */
    display: none;
}

.sidebar-nav {
    width: 100%;
}

/* Nhóm các mục trong sidebar */
.sidebar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Khoảng cách giữa các mục */
}

/* Đường kẻ phân cách */
.sidebar-divider {
    width: 60%;
    margin: 1.5rem auto;
    border-color: var(--border-color);
}

/* Các mục điều hướng (nav-link) */
.sidebar-nav .nav-link {
    color: var(--text-secondary-color);
    text-align: center;
    /* Điều chỉnh padding và width để text không bị tràn */
    padding: 0.75rem 0;
    width: 80px; /* Cố định chiều rộng của box nav-link */
    height: 65px; /* Cố định chiều cao để đồng nhất */
    display: flex; /* Dùng flexbox để căn giữa icon và text */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    overflow: hidden; /* Ẩn phần text nếu bị tràn (nhưng chúng ta sẽ cố gắng tránh điều này) */
}

.sidebar-nav .nav-link i {
    font-size: 1.75rem;
    display: block;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-link span {
    font-size: 0.7rem;
    font-weight: 500;
    display: block;
    margin-top: 5px;
    /* Quan trọng: Cho phép text xuống dòng nếu quá dài */
    white-space: normal;
    word-break: break-word; /* Đảm bảo từ dài cũng xuống dòng */
    line-height: 1.2; /* Tối ưu khoảng cách dòng */
}

/* Hiệu ứng Hover */
.sidebar-nav .nav-link:hover {
    color: var(--text-color);
    background-color: var(--tertiary-bg);
}
.sidebar-nav .nav-link:hover i {
    transform: scale(1.1);
}

/* Trạng thái Active */
.sidebar-nav .nav-link.active {
    color: var(--accent-color);
    background-color: var(--active-bg-color);
}
.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; /* Đặt lại left về 0 để viền nằm sát bên trái của nav-link box */
    top: 50%;
    transform: translateY(-50%); /* Căn giữa theo chiều dọc */
    height: 50%;
    width: 4px;
    background-color: var(--active-border-color);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(224, 168, 54, 0.5);
}

/* Icon nổi bật (ví dụ: Cày Thuê, Sự Kiện) */
.nav-link .icon-highlight {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(224, 168, 54, 0.6);
}

/* ===================================== */
/* === RESPONSIVE CHO SIDEBAR === */
/* ===================================== */

/* Ẩn sidebar trên màn hình nhỏ hơn lg (992px) */
@media (max-width: 991.98px) {
    .left-sidebar {
        display: none !important; /* Đảm bảo ẩn hoàn toàn trên mobile/tablet */
    }
}
/* Featured Card */
/* Thẻ cha chứa tất cả */
.featured-card {
    background-image: linear-gradient(to right, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0.2) 70%, transparent 100%), url('https://i.imgur.com/uIYXJb1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    padding: 20px;
    position: relative; /* Quan trọng: để định vị thẻ con */
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;   /* QUAN TRỌNG: Thêm dòng này để ẩn phần bị tràn */
}
/* Container cho toàn bộ slider */
.featured-carousel-container {
    /* Thêm một chút padding để ảnh không bị cắt khi tràn ra */
    padding-right: 30px;
    padding-bottom: 30px;
}

/* Tùy chỉnh mỗi slide */
.featured-carousel .carousel-item {
    min-height: 400px; /* Chiều cao tối thiểu cho slide */
    position: relative;
    /* Rất quan trọng: KHÔNG dùng overflow: hidden để cho phép ảnh tràn ra ngoài */
}

/* CSS cho ảnh tướng để tạo hiệu ứng tràn (GIỮ NGUYÊN) */
.featured-hero-img {
    position: absolute;
    right: -20px;   /* Đẩy ảnh sang phải, ra khỏi khung */
    bottom: -20px;  /* Đẩy ảnh xuống dưới, ra khỏi khung */
    height: 115%;   /* Cho ảnh cao hơn khung */
    object-fit: contain;
    pointer-events: none;
    z-index: 1; /* Nằm trên slide nhưng dưới các nút control */
}
/* Đảm bảo nội dung text nằm trên ảnh */
.featured-content {
    position: relative;
    z-index: 2; /* Luôn nằm trên ảnh */
}

/* Tùy chỉnh nút điều khiển của Carousel */
.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
    z-index: 3; /* Nằm trên tất cả */
    width: 5%;
}
.featured-carousel .carousel-control-prev-icon,
.featured-carousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 20px;
}
.featured-carousel .carousel-indicators {
    z-index: 3; /* Nằm trên tất cả */
}
.featured-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #333;
    margin: 0 5px;
}
.featured-carousel .carousel-indicators .active {
    background-color: #e0a836;
}

.featured-content {
    position: relative;
    z-index: 2;
    width: 60%; /* Giới hạn chiều rộng của nội dung text */
}

.featured-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px #000;
}

.build-box {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #e0a836;
}
.build-box h6 {
    color: #e0a836;
    font-size: 0.9rem;
}
.build-box .items img {
    width: 48px;
    height: 48px;
    border-radius: 5px;
    margin-right: 5px;
    border: 1px solid #444;
}

/* Trending Posts */
.trending-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-decoration: none;
    color: #f0f0f0;
    transition: background-color 0.2s;
    padding: 5px;
    border-radius: 5px;
}
.trending-post-item:hover {
    background-color: #1a1a2a;
}
.trending-post-item img {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}
.post-info h6 {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}
.post-info small {
    color: #999;
    display: block;
    margin-bottom: 5px;
}
.post-stats {
    font-size: 0.8rem;
    color: #bbb;
}
.post-stats span {
    margin-right: 10px;
}
.post-stats .bi-star-fill {
    color: #e0a836;
}

/* Featured Authors */
.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #333;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}
.author-avatar:hover {
    transform: scale(1.1);
    border-color: #e0a836;
}
/* =================================== */
/* === STYLES FOR NEWS & EVENTS   === */
/* =================================== */
.news-card {
    display: block;
    background-color: #1a1a2a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    border: 1px solid #2a2a3a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.news-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
}
.news-card-thumbnail img {
    width: 100%; height: 100%; object-fit: cover;
}
.news-card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(224, 168, 54, 0.9);
    color: #111;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-card-body {
    padding: 1rem 1.25rem;
}
.news-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.news-card-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0;
}
/* CSS cho Video Nổi Bật (nếu chưa có) */
.video-post-card {
    background-color: #1a1a2a;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease;
}
.video-post-card:hover {
    transform: translateY(-5px);
}
.video-embed-wrapper {
    background-color: #000;
}
.video-post-details {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}
.post-author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.post-title {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-meta {
    font-size: 0.8rem;
    color: #aaa;
}
.post-author-name {
    color: #ccc;
    font-weight: 500;
}
.kol-badge {
    background-color: #6f42c1;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    vertical-align: middle;
}
.view-all-link {
    color: #aaa;
    text-decoration: none;
}
/* =================================== */
/* === STYLES FOR HALL OF FAME    === */
/* =================================== */
.fame-card {
    background-color: #1a1a2a;
    border-radius: 8px;
    overflow: hidden;
}
.fame-card-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}
.fame-card-header i {
    font-size: 2rem;
}
.fame-card-header h5 {
    margin: 0;
    font-weight: 500;
}
/* Custom Colors */
.author-header { background: linear-gradient(135deg, #e0a836, #b8860b); }
.collector-header { background: linear-gradient(135deg, #d63384, #a31f61); }
.sentinel-header { background: linear-gradient(135deg, #0dcaf0, #0a94b0); }

.fame-list {
    list-style: none;
    padding: 1rem;
}
.fame-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #2a2a3a;
}
.fame-list li:last-child {
    border-bottom: none;
}
.fame-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.fame-list span {
    color: #ccc;
    flex-grow: 1;
}
.fame-list .fame-metric {
    color: #fff;
    font-weight: bold;
}
/* =================================== */
/* === STYLES FOR ANNOUNCEMENT MODAL === */
/* =================================== */
.announcement-modal-content {
    background-color: #1a1a2a;
    border: 1px solid #e0a836;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.announcement-modal-content .modal-header {
    border-bottom-color: #333;
}

.announcement-modal-content .modal-header .modal-title {
    color: #e0a836;
    font-weight: bold;
}

.announcement-modal-content .modal-body h4 {
    font-weight: 500;
}

.announcement-modal-content .modal-body p {
    color: #ccc;
}

.announcement-modal-content .modal-footer {
    border-top-color: #333;
}

.announcement-modal-content .btn-primary {
    background-color: #e0a836;
    border-color: #e0a836;
    color: #111;
    font-weight: bold;
}
.announcement-modal-content .btn-primary:hover {
    background-color: #ffdc99;
    border-color: #ffdc99;
}
/* =================================== */
/* === STYLES FOR MOBILE BOTTOM NAV === */
/* =================================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a2a;
    border-top: 1px solid #333;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000; /* Đảm bảo menu luôn nằm trên cùng */
    padding: 0.5rem 0;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    flex-grow: 1; /* Chia đều không gian */
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.7rem;
}

/* Kiểu cho nút đang được chọn (active) */
.mobile-bottom-nav .nav-item.active {
    color: #e0a836;
}

/* Kiểu riêng cho nút Đăng bài ở giữa */
.nav-item-create {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #e0a836, #ffc966);
    color: #111 !important;
    border-radius: 50%;
    border: 3px solid #121221;
    margin-top: -30px; /* Đẩy nút lên trên một chút */
    box-shadow: 0 0 15px rgba(224, 168, 54, 0.5);
    transition: transform 0.2s ease;
}
.nav-item-create:hover {
    transform: scale(1.1);
}

.nav-item-create i {
    font-size: 2rem;
    margin: 0; /* Bỏ margin-bottom của icon */
    font-weight: bold;
}
/* =================================== */
/* === STYLES FOR FORGOT PASSWORD === */
/* =================================== */

/* Hầu hết các style đã được định nghĩa trong login.css */
/* Chúng ta chỉ cần thêm style cho trang xác nhận */

.reset-sent-wrapper {
    background-color: rgba(26, 26, 42, 0.9);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid #333;
    backdrop-filter: blur(5px);
}

.reset-sent-icon {
    font-size: 5rem;
    color: #198754; /* Màu xanh lá thành công */
}
/* =================================== */
/* === KHU VỰC CẢNH BÁO LỪA ĐẢO   === */
/* =================================== */
.latest-scam-feed-container {
    background-color: #1a1a2a;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #dc3545; /* Viền đỏ để nhấn mạnh cảnh báo */
}

.scam-feed-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    border-bottom: 1px solid #2a2a3a;
}
.scam-feed-item:last-child {
    border-bottom: none;
}
.scam-feed-item:hover {
    background-color: #2a2a3a;
}

.scam-feed-icon {
    font-size: 1.5rem;
    color: #dc3545;
}

.scam-feed-content .scam-feed-title {
    color: #fff;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.scam-feed-content .scam-feed-meta {
    font-size: 0.8rem;
    color: #aaa;
}

.scam-feed-item .bi-chevron-right {
    margin-left: auto;
    color: #888;
}
/* =================================== */
/* === HEADER NAVBAR NÂNG CẤP      === */
/* =================================== */
.top-navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-center {
    flex-grow: 1; /* Cho phép thanh tìm kiếm lấp đầy khoảng trống */
    max-width: 600px;
}

.search-form .form-control,
.search-form .input-group-text {
    background-color: #0a0a1a;
    border-color: #444;
    color: #fff;
}
.search-form .form-control::placeholder {
    color: #888;
}

/* Định dạng các nút icon */
.btn-icon {
    background-color: transparent;
    border: none;
    color: #aaa;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
}
.btn-icon:hover {
    color: #fff;
}

/* Chuông thông báo */
.notification-bell {
    position: relative;
}
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #dc3545;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #121221;
}

/* Avatar nhỏ trên header */
.user-avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
/* =================================== */
/* === SỬA LỖI AVATAR TRÊN HEADER  === */
/* =================================== */

.editor-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;   /* Bo tròn ảnh */
    object-fit: cover;    /* Đảm bảo ảnh luôn lấp đầy hình tròn mà không bị méo */
    border: 2px solid #555; /* Thêm một viền nhỏ cho đẹp */
}
.main-footer {
    background-color: #161620;
    color: #a0a0c0;
    padding: 4rem 0 0;
    border-top: 1px solid #3a3a5a;
    margin-top: auto; /* Đẩy footer xuống cuối trang */
}
.footer-logo {
    height: 45px;
    opacity: 0.9;
}
.footer-widget .widget-title {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer-links {
    list-style: none;
    padding-left: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: #a0a0c0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #ffc107;
    text-decoration: underline;
}
.social-icons a {
    color: #a0a0c0;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.2s ease;
}
.social-icons a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid #2a2a3a;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}
/* CSS cho Mobile Nav mới */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #161620;
    border-top: 1px solid #3a3a5a;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
}
.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.mobile-nav-items .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0a0c0;
    text-decoration: none;
    flex-grow: 1;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}
.mobile-nav-items .nav-item i {
    font-size: 1.5rem;
    line-height: 1;
}
.mobile-nav-items .nav-item span {
    font-size: 0.7rem;
    margin-top: 4px;
}
.mobile-nav-items .nav-item.active {
    color: #ffc107;
}
.mobile-nav-items .nav-item-create {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #161620;
    border-radius: 50%;
    border: 4px solid #161620;
    margin-top: -30px; /* Đẩy nút lên trên */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}
.mobile-nav-items .nav-item-create i {
    font-size: 1.8rem;
}
 .notification-dropdown-menu {
        width: 360px; /* Chiều rộng cố định trên desktop */
        max-width: calc(100vw - 25px); /* Đảm bảo không tràn màn hình mobile */
        max-height: 85vh; /* Chiều cao tối đa */
        padding: 0;
        overflow: hidden;
    }
    .notification-dropdown-menu .dropdown-header,
    .notification-dropdown-menu .see-all-link {
        background-color: #2a2a3a;
        position: sticky;
        z-index: 2;
        font-size: 0.9rem;
    }
    .notification-dropdown-menu .dropdown-header { top: 0; }
    .notification-dropdown-menu .see-all-link { bottom: 0; }

    .notification-list {
        max-height: calc(85vh - 100px); /* Chiều cao tối đa cho danh sách */
        overflow-y: auto; /* Chỉ danh sách này có thanh cuộn */
    }
    .notification-item {
        white-space: normal;
        border-bottom: 1px solid #3a3a5a;
        padding: 0.75rem 1rem;
    }
    .notification-item:last-child { border-bottom: none; }
    .notification-item.unread { background-color: rgba(80, 80, 120, 0.25); }
    .notification-item p { margin-bottom: 0.25rem; font-size: 0.9rem; line-height: 1.4; }

    .event-promo-banner {
        min-height: 120px; /* Hoặc một giá trị phù hợp với chiều cao của banner */
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    border-radius: 1rem;
    padding: 2.5rem;
    color: white;
    border: 2px solid #e0a836;
    box-shadow: 0 0 20px rgba(224, 168, 54, 0.3);
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem; /* Tạo khoảng cách với carousel ở trên */
}
.event-promo-banner .icon-container {
    font-size: 4rem;
    color: #e0a836;
    flex-shrink: 0;
}
.event-promo-banner h3 {
    font-weight: 800;
    text-transform: uppercase;
}
.event-promo-banner .btn-promo {
    background-color: #e0a836;
    color: #12151c;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.event-promo-banner .btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(224, 168, 54, 0.7);
}
/* Responsive cho mobile */
@media (max-width: 768px) {
    .event-promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
}
/* =================================== */
/* === CSS HỖ TRỢ TỐI ƯU HIỆU SUẤT === */
/* =================================== */

/* Biến thẻ <img> trong carousel thành ảnh nền */
.carousel-item .carousel-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh lấp đầy mà không bị méo */
    z-index: 0;
    filter: brightness(0.7); /* Làm tối ảnh nền một chút để chữ nổi bật */
}

/* Đảm bảo link bao phủ toàn bộ slide để có thể click */
.carousel-item .featured-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Nằm trên ảnh nền nhưng dưới nội dung */
}

/* Sửa lỗi "Đích chạm quá nhỏ" cho các nút chỉ báo carousel */
.featured-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px; /* Tăng khoảng cách giữa các nút */
    padding: 8px; /* Tăng vùng có thể chạm vào một cách vô hình */
    background-clip: content-box; /* Quan trọng: để padding không bị tô màu */
}

    :root {
    --primary-bg: #0a0a1a;
    --secondary-bg: #121221;
    --tertiary-bg: #1a1a2a;
    --border-color: #2a2a3a;
    --text-color: #f0f0f0;
    --text-secondary-color: #8899a6;
    --accent-color: #e0a836; /* Màu vàng cam chính */
    --accent-light-color: #ffc107; /* Màu vàng sáng hơn */
    --active-bg-color: rgba(224, 168, 54, 0.1); /* Nền mờ khi active */
    --active-border-color: #e0a836; /* Viền active */
    /* Thêm biến cho chiều rộng sidebar để dễ thay đổi */
    --sidebar-width: 90px;
}

    #authModal .modal-content {
        background-color: var(--auth-modal-bg);
        border: 1px solid var(--auth-modal-border);
        border-radius: 1rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }

    /* --- Tùy chỉnh Tabs --- */
    #authModal .modal-header {
        padding: 0;
        border-bottom: 2px solid var(--auth-modal-border);
    }
    #authModal .nav-tabs {
        border-bottom: none;
    }
    #authModal .nav-tabs .nav-link {
        color: var(--auth-modal-text-secondary);
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        font-weight: 600;
        padding: 1rem 1.5rem;
        transition: all 0.2s ease;
    }
    #authModal .nav-tabs .nav-link:hover {
        color: var(--auth-modal-text);
    }
    #authModal .nav-tabs .nav-link.active {
        color: var(--auth-modal-accent);
        border-bottom-color: var(--auth-modal-accent);
    }

    /* --- Tùy chỉnh Form --- */
    #authModal .form-label {
        color: var(--auth-modal-text-secondary);
        font-weight: 500;
        font-size: 0.9rem;
    }
    #authModal .form-control {
        background-color: var(--auth-modal-darker-bg);
        border: 1px solid var(--auth-modal-border);
        color: var(--auth-modal-text);
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
    }
    #authModal .form-control:focus {
        background-color: var(--auth-modal-darker-bg);
        border-color: var(--auth-modal-accent);
        box-shadow: 0 0 0 0.25rem rgba(224, 168, 54, 0.25);
        color: var(--auth-modal-text);
    }
    #authModal .btn-login-main {
        background-color: var(--auth-modal-accent);
        color: var(--auth-modal-darker-bg);
        font-weight: 700;
        padding: 0.75rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    #authModal .btn-login-main:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }
    
    /* --- Các thành phần khác --- */
    #authModal .forgot-password-link {
        font-size: 0.85rem;
        color: var(--auth-modal-text-secondary);
        text-decoration: none;
    }
     #authModal .forgot-password-link:hover {
        color: var(--auth-modal-accent);
        text-decoration: underline;
    }
    #authModal .divider-text {
        display: flex;
        align-items: center;
        text-align: center;
        color: var(--auth-modal-text-secondary);
        font-size: 0.8rem;
        margin: 1.5rem 0;
    }
    #authModal .divider-text::before,
    #authModal .divider-text::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--auth-modal-border);
    }
    #authModal .divider-text:not(:empty)::before { margin-right: .5em; }
    #authModal .divider-text:not(:empty)::after { margin-left: .5em; }

    #authModal .btn-social {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.6rem;
        border-radius: 0.5rem;
        font-weight: 500;
        border: 1px solid var(--auth-modal-border);
        background-color: var(--auth-modal-darker-bg);
        color: var(--auth-modal-text);
        transition: background-color 0.2s ease;
    }
    #authModal .btn-social:hover {
        background-color: #33354a;
    }
    #authModal .btn-social i {
        font-size: 1.2rem;
        margin-right: 0.75rem;
    }
    #authModal .btn-social .bi-google { color: #db4437; }
    #authModal .btn-social .bi-facebook { color: #1877f2; }
    /* =================================== */
/* === STYLES FOR ACCOUNT CARD      === */
/* =================================== */
.account-card {
    display: block;
    background-color: #1a1a2a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    border: 1px solid #2a2a3a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.account-card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
}
.account-card-thumbnail img {
    width: 100%; height: 100%; object-fit: cover;
}
.sale-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #dc3545;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.account-card-body {
    padding: 1rem 1.25rem;
}
.account-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-card-price {
    margin-bottom: 0.75rem;
}
.account-card-price .sale-price {
    color: #ffc107;
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 0.5rem;
}
.account-card-price .original-price {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9rem;
}
.account-card-price .main-price {
    color: #ffc107;
    font-size: 1.25rem;
    font-weight: 700;
}
.account-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #aaa;
    border-top: 1px solid #2a2a3a;
    padding-top: 0.75rem;
}
.account-card-stats span i {
    color: #ffc107;
    margin-right: 4px;
}
