@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary: #3b82f6; 
    --primary-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --bg-dark: #0f172a;
    --navy: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(25px);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-premium: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-inner: inset 0 1px 1px rgba(255,255,255,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    color: var(--text-main);
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, .logo {
    font-family: 'Montserrat', sans-serif;
}

/* --- HEADER AREA --- */
header {
    background: #0f172a; /* Sophisticated Dark */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.search-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.2rem 0.2rem 0.2rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 550px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 2px 4px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.search-box i {
    color: var(--primary);
    font-size: 0.9rem;
    opacity: 0.7;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    height: 38px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.search-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-btn:hover {
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    transform: scale(1.02);
}

/* --- GLOBAL STICKY HEADER --- */
.header-main-nav-row {
    background: #0f172a;
    padding: 0.6rem 5%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1002;
    position: sticky;
    top: 0;
}

.header-nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .header-main-nav-row { flex-wrap: wrap; gap: 10px; padding: 10px; }
    .header-nav-container { order: 3; width: 100%; justify-content: flex-start; }
    .user-actions { order: 2; margin-left: auto; }
}

/* --- GLOBAL STICKY SEARCH BAR (HEADER) --- */
.header-search-row {
    padding: 1rem 10%;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    z-index: 1001;
}

.header-search-row::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    z-index: -1;
}

.mega-search-box.full {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 3px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.05);
    transition: 0.4s;
}

.mega-search-box.full:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.mega-search-box.full .input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.mega-search-box.full .input-wrapper i {
    color: var(--primary);
    font-size: 1.1rem;
}

.mega-search-box.full .input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    height: 42px;
}

.mega-search-box.full .mega-search-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0 1.2rem;
    height: 42px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.mega-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-search-row { padding: 0.8rem 5%; }
    .mega-search-box.full { max-width: 100%; }
}

.header-bottom {
    .mega-search-box.full .mega-search-btn { padding: 0 15px; }
}

.header-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.6rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.25rem 0;
}

.main-nav > li > a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.main-nav > li > a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.main-nav > li.active > a {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99,102,241,0.35);
}

/* --- DROPDOWN MENU --- */
.main-nav li {
    position: relative;
}

.main-nav li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav li.has-dropdown > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    transition: 0.25s;
}

.main-nav li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 0.8rem;
    list-style: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    display: none !important;
    z-index: 999999;
}

/* Multi-column Dropdown for many items */
.dropdown-submenu.is-multi-col {
    width: 520px;
    display: none !important; /* Managed by hover below */
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
}

.main-nav li:hover > .dropdown-submenu {
    display: block !important;
    animation: fadeInDropdown 0.2s ease-out forwards;
}

.main-nav li:hover > .dropdown-submenu.is-multi-col {
    display: grid !important;
}

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

.dropdown-submenu li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.dropdown-submenu li a:hover {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    padding-left: 1.5rem;
    transform: translateX(5px);
}

/* --- LAYOUT --- */
.main-wrapper {
    max-width: 1600px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding: 0 4%;
}

.main-wrapper.no-sidebar {
    grid-template-columns: 1fr;
}

.main-wrapper main {
    min-width: 0;
}

/* Right sidebar follows scroll on desktop */
.main-wrapper aside.sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.main-wrapper aside.sidebar::-webkit-scrollbar {
    width: 8px;
}

.main-wrapper aside.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.main-wrapper aside.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.main-wrapper aside.sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
}

.noti-bell-wrapper .noti-dot { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; background: #e74c3c; color: white; border-radius: 50%; border: 2px solid #0f172a; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.user-actions { margin-left: auto; }

/* Notification Dropdown */
.noti-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
    overflow: hidden;
}

.noti-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.noti-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.noti-list {
    max-height: 400px;
    overflow-y: auto;
}

.noti-item {
    padding: 1rem 1.2rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: 0.2s;
    text-decoration: none;
    cursor: default;
}

.noti-item:hover {
    background: rgba(255,255,255,0.05);
}

.noti-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.noti-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.noti-body {
    flex-grow: 1;
}

.noti-text {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    color: rgba(255,255,255,0.9);
}

.noti-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.noti-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- GAME CARDS (DixGames Style) --- */
.section-title {
    position: relative;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background: #e1e4e8;
}

.section-title span::before {
    content: "---";
    color: var(--primary);
    margin-right: 5px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}

.game-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 130%; /* Vertical Poster Style */
}

.card-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover .card-thumb {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

.card-body {
    padding: 0.8rem;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    height: 2.2rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-date {
    background: #f1f3f5;
    padding: 1px 5px;
    border-radius: 2px;
    color: #495057;
}

/* --- SIDEBAR WIDGETS --- */
.widget {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary);
    opacity: 0.5;
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-title::after {
    content: "";
    height: 3px;
    width: 40px;
    background: var(--primary);
    position: absolute;
    bottom: -1px;
    left: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary);
}

.mini-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mini-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 12px;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mini-item:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateX(8px);
}

.mini-thumb {
    width: 65px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.05);
}

.mini-item:hover .mini-thumb {
    transform: scale(1.05) rotate(2deg);
}

.mini-info {
    flex: 1;
}

.mini-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    color: #f1f5f9;
    transition: 0.3s;
}

.mini-item:hover h4 {
    color: var(--primary);
}

/* --- GLASSMORPHISM MODAL (Login/Register Popup) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}

.glass-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    width: 100%;
    color: white;
    margin-bottom: 1rem;
    outline: none;
}

.glass-input::placeholder { color: rgba(255,255,255,0.6); }

.glass-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.glass-btn:hover { background: var(--primary-alt); }

/* --- BUTTONS & MISC --- */
.btn-user {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-login { color: var(--navy); border: 1px solid var(--navy); }
.btn-register { background: var(--navy); color: white; margin-left: 0.5rem; }

.btn-login:hover { background: var(--navy); color: white; }

/* Responsive */
@media (max-width: 992px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .main-wrapper aside.sidebar { position: static; top: auto; }
    .search-box { display: none; }
}
/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; }
.toast.info { border-left: 4px solid #3b82f6; }

.toast i { font-size: 1.2rem; }
.toast.success i { color: #22c55e; }
.toast.error i { color: #ef4444; }
.toast.warning i { color: #f59e0b; }
.toast.info i { color: #3b82f6; }

@keyframes toast-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.toast.shake { animation: toast-shake 0.3s ease-in-out; }
/* --- DIXGAMES SIDEBAR WIDGETS --- */
.widget-dix {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.widget-dix-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.title-orange { color: #f97316; }
.title-navy { color: #f8fafc; }

/* CTAs */
.dix-cta-btn {
    display: block;
    width: 100%;
    background: #f15a24;
    color: #fff !important;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: 0.3s;
    margin-top: 1rem;
}
.dix-cta-btn:hover { background: #d94e1f; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(241, 90, 36, 0.4); }

/* Tabs System */
.widget-tabs-header {
    display: flex;
    background: #1e293b;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    position: relative;
    z-index: 2;
}
.widget-tab {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}
.widget-tab.active { background: #f15a24; }
.widget-tab:not(.active):hover { background: rgba(255,255,255,0.05); }

/* List Style Dix */
.dix-item {
    display: flex;
    gap: 12px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: 0.2s;
}
.dix-item:last-child { border-bottom: none; }
.dix-item:hover { transform: translateX(5px); }
.dix-thumb-square { width: 70px; height: 50px; border-radius: 6px; object-fit: cover; }
.dix-info h4 { font-size: 0.9rem; color: #f15a24; margin: 0 0 5px 0; line-height: 1.3; }
.dix-date { font-size: 0.75rem; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 5px; }

/* Update History Dix */
.dix-history-item {
    display: flex;
    gap: 12px;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: flex-start;
}
.dix-history-item i { color: #f15a24; margin-top: 3px; font-size: 0.85rem; }
.dix-history-date { font-size: 0.8rem; color: #cbd5e1; font-weight: 700; width: 85px; flex-shrink: 0; }
.dix-history-text { font-size: 0.85rem; color: #f15a24; font-weight: 600; line-height: 1.4; }
.dix-history-text span { color: #64748b; font-size: 0.75rem; font-weight: normal; }

/* User Widget Dix */
.dix-user-avatar { width: 80px; height: 80px; border-radius: 50%; padding: 3px; border: 2px solid #3b82f6; margin: 0 auto 1rem; position: relative; }
.dix-user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dix-user-welcome { text-align: center; color: #f1f5f9; font-weight: 800; font-size: 1rem; margin-bottom: 1rem; }
.dix-user-welcome span { color: #3b82f6; }

.dix-social-btns { display: flex; justify-content: center; gap: 8px; margin-bottom: 1.5rem; }
.dix-soc-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: #fff; font-size: 0.9rem; text-decoration: none; }
.dix-soc-btn.fb { background: #1877f2; }
.dix-soc-btn.tw { background: #000000; }
.dix-soc-btn.red { background: #ef4444; }
.dix-soc-btn.orange { background: #f97316; }

.dix-user-links { display: flex; flex-direction: column; gap: 8px; }
.dix-link-item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #cbd5e1; font-size: 0.9rem; font-weight: 700; padding: 0.5rem; border-radius: 6px; transition: 0.2s; }
.dix-link-item:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateX(5px); }
.dix-link-item i { width: 20px; text-align: center; color: #f97316; }

/* --- GAME DETAIL TABS (NK Style & Premium Update) --- */
.nk-tabs { margin-bottom: 3rem; margin-top: 2rem; }
.nk-tabs .nav-tabs { 
    display: flex; gap: 8px; list-style: none; padding: 6px; margin: 0; border: 1px solid rgba(255,255,255,0.05); 
    background: rgba(15, 23, 42, 0.6); border-radius: 16px 16px 0 0; border-bottom: none;
}
.nk-tabs .nav-item { flex: 1; }
.nk-tabs .nav-link { 
    display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; text-align: center; 
    font-weight: 800; font-size: 0.85rem; text-transform: uppercase; color: #cbd5e1; 
    text-decoration: none; border-radius: 12px; transition: all 0.3s ease;
    cursor: pointer; border: 1px solid transparent; background: transparent; letter-spacing: 0.5px;
}
.nk-tabs .nav-link.active { 
    background: linear-gradient(135deg, #f15a24 0%, #ff8c00 100%); 
    color: #fff; 
    box-shadow: 0 8px 20px rgba(241, 90, 36, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.nk-tabs .nav-link:not(.active):hover { background: rgba(255,255,255,0.05); color: #fff; }

.tab-content-mod { 
    background: rgba(30, 41, 59, 0.3); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 16px 16px; 
    padding: 2rem; 
    border: 1px solid rgba(255,255,255,0.05); 
    border-top: none; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.tab-pane-mod { display: none; }
.tab-pane-mod.active { display: block; animation: fadeIn 0.4s ease-out; }

/* Table styles inside tabs */
.tab-data-table { width: 100%; border-collapse: collapse; }
.tab-data-table th { text-align: left; font-size: 0.75rem; color: #64748b; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); text-transform: uppercase; font-weight: 800; }
.tab-data-table td { padding: 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.9rem; color: #f1f5f9; vertical-align: middle; }
.tab-data-table tr:last-child td { border-bottom: none; }
.tab-data-table tr:hover td { background: rgba(255,255,255,0.02); }

.badge-update-type { padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 900; text-transform: uppercase; display: inline-block; }
.badge-version { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.badge-dlc { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.btn-tab-dl { background: rgba(255,255,255,0.05); color: #cbd5e1; padding: 6px 15px; border-radius: 6px; text-decoration: none; font-size: 0.75rem; font-weight: 700; transition: 0.2s; border: 1px solid rgba(255,255,255,0.1); }
.btn-tab-dl:hover { background: #f15a24; color: #fff; border-color: transparent; }

/* --- HOME PAGE REDESIGN DIX --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0 4rem 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

.slide-item.active { 
    opacity: 1; 
    visibility: visible;
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 10%, rgba(15, 23, 42, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
}

.slide-cat { display: flex; gap: 8px; margin-bottom: 1.2rem; }
.slide-cat span { background: #3b82f6; color: #fff; padding: 4px 14px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }

.slide-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 1.5rem; color: #fff; text-transform: uppercase; line-height: 1.1; letter-spacing: -1px; text-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.slide-extra-info { display: flex; gap: 20px; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 2rem; font-weight: 600; }
.slide-extra-info span i { color: #22c55e; margin-right: 6px; }

.btn-dl-now { width: fit-content; background: #22c55e; color: #fff; padding: 14px 35px; border-radius: 8px; text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 12px; transition: 0.3s; font-size: 1rem; box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.4); }
.btn-dl-now:hover { background: #16a34a; transform: translateY(-3px); box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.5); }

/* Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: 0.3s;
    opacity: 0;
}
.hero-slider:hover .slider-nav-btn { opacity: 1; }
.slider-nav-btn:hover { background: #22c55e; border-color: #22c55e; transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Section Header Dix */
.dix-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-left: 15px;
    border-left: 5px solid #22c55e; /* Default Green for Việt Hóa */
}
.dix-section-header.orange { border-left-color: #f97316; }

.dix-section-header h2 { font-size: 1.6rem; font-weight: 800; color: #fff; text-transform: uppercase; margin: 0; }
.btn-view-all { color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 700; opacity: 0.7; transition: 0.3s; }
.btn-view-all:hover { opacity: 1; color: #22c55e; }

/* Grid Game Dix */
.dix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.game-card-dix {
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
    text-decoration: none;
    display: block;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.18);
    isolation: isolate;
}

/* Product card hover effects (separated from SOURCE cards by :not(.source-card)) */
.game-card-dix:not(.source-card)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 0%, rgba(59,130,246,0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}
.game-card-dix:not(.source-card)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 34%;
    width: 78%;
    height: 58%;
    transform: translate(-50%, -50%) scale(1.05) rotate(0deg);
    border-radius: 999px;
    background:
        radial-gradient(38% 34% at 32% 45%, rgba(255, 106, 0, 0.35), transparent 72%),
        radial-gradient(40% 36% at 68% 55%, rgba(0, 200, 255, 0.33), transparent 74%),
        conic-gradient(from 180deg at 50% 50%, rgba(255, 120, 0, 0.24), rgba(0, 180, 255, 0.24), rgba(255, 120, 0, 0.24));
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
    filter: blur(2px);
}

.game-card-dix:not(.source-card):hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 35px rgba(2, 6, 23, 0.55), 0 8px 18px rgba(59,130,246,0.2);
    border-color: rgba(96, 165, 250, 0.45);
    filter: saturate(1.06);
}
.game-card-dix:not(.source-card):hover::before { opacity: 1; }
.game-card-dix:not(.source-card):hover::after {
    opacity: 1;
    animation: fireWaterFlow 2.6s linear infinite;
}

.card-thumb-dix { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-thumb-dix img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease, filter 0.55s ease; }
.game-card-dix:not(.source-card):hover .card-thumb-dix img { transform: scale(1.08); filter: brightness(1.06) contrast(1.05); }

.badge-update {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #3b82f6;
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 10;
}
.badge-new { background: #22c55e; }

.card-meta-dix {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}
.meta-box { background: rgba(0,0,0,0.4); padding: 2px 8px; border-radius: 4px; display: flex; align-items: center; gap: 5px; }

.card-footer-dix { padding: 1.2rem; }
.card-user { display: flex; align-items: center; gap: 8px; color: #22c55e; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.8rem; }
.card-user i { font-size: 1.1rem; }

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 1rem; }
.card-tags span { background: #1e293b; color: #94a3b8; font-size: 0.65rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.card-tags a {
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.card-tags a:hover {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.35);
    background: #1f2937;
}

.card-title-dix {
    color: #dbe6f5;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
.game-card-dix:not(.source-card):hover .card-title-dix {
    color: #7dd3fc;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

@keyframes fireWaterFlow {
    0% {
        transform: translate(-50%, -50%) scale(1.02) rotate(0deg);
        filter: hue-rotate(0deg) saturate(1.1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08) rotate(180deg);
        filter: hue-rotate(18deg) saturate(1.25);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.02) rotate(360deg);
        filter: hue-rotate(0deg) saturate(1.1);
    }
}

/* Disable product hover effect when toggled off */
.game-hoverfx-off .game-card-dix:not(.source-card)::before,
.game-hoverfx-off .game-card-dix:not(.source-card)::after { display: none; }
.game-hoverfx-off .game-card-dix:not(.source-card),
.game-hoverfx-off .game-card-dix:not(.source-card) .card-thumb-dix img,
.game-hoverfx-off .game-card-dix:not(.source-card) .card-title-dix { transition: none !important; }
.game-hoverfx-off .game-card-dix:not(.source-card):hover { transform: none; box-shadow: none; filter: none; border-color: rgba(148, 163, 184, 0.18); }
.game-hoverfx-off .game-card-dix:not(.source-card):hover .card-thumb-dix img { transform: none; filter: none; }
.game-hoverfx-off .game-card-dix:not(.source-card):hover .card-title-dix { color: #dbe6f5; text-shadow: none; }

/* FX #1: Neon Lift Glow (current base) */
.game-hoverfx-1 .game-card-dix:not(.source-card):hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 35px rgba(2, 6, 23, 0.55), 0 8px 18px rgba(59,130,246,0.2);
}

/* FX #2: Glass Shine Sweep */
.game-hoverfx-2 .game-card-dix:not(.source-card)::before {
    background: linear-gradient(115deg, transparent 15%, rgba(255,255,255,0.24) 45%, transparent 70%);
    transform: translateX(-130%);
}
.game-hoverfx-2 .game-card-dix:not(.source-card)::after { display: none; }
.game-hoverfx-2 .game-card-dix:not(.source-card):hover::before {
    opacity: 1;
    transform: translateX(130%);
    transition: transform 0.7s ease, opacity 0.2s ease;
}
.game-hoverfx-2 .game-card-dix:not(.source-card):hover {
    transform: translateY(-8px) scale(1.012);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
}
.game-hoverfx-2 .game-card-dix:not(.source-card):hover .card-title-dix { color: #f8fafc; text-shadow: none; }

/* FX #3: Fire & Water Core */
.game-hoverfx-3 .game-card-dix:not(.source-card)::after { display: block; }
.game-hoverfx-3 .game-card-dix:not(.source-card):hover::after { opacity: 1; animation: fireWaterFlow 2.6s linear infinite; }
.game-hoverfx-3 .game-card-dix:not(.source-card):hover { border-color: rgba(125, 211, 252, 0.45); }

/* FX #4: Aurora Pulse */
.game-hoverfx-4 .game-card-dix:not(.source-card)::before {
    background: radial-gradient(80% 60% at 20% 15%, rgba(56, 189, 248, 0.22), transparent 60%),
                radial-gradient(75% 55% at 80% 90%, rgba(167, 139, 250, 0.2), transparent 62%);
}
.game-hoverfx-4 .game-card-dix:not(.source-card)::after {
    background: radial-gradient(50% 45% at 50% 50%, rgba(34, 211, 238, 0.25), transparent 70%);
    border-radius: 20px;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
    filter: blur(10px);
}
.game-hoverfx-4 .game-card-dix:not(.source-card):hover::after {
    opacity: 1;
    animation: auroraPulse 1.8s ease-in-out infinite;
}
.game-hoverfx-4 .game-card-dix:not(.source-card):hover {
    transform: translateY(-9px) scale(1.015);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.5), 0 0 24px rgba(34, 211, 238, 0.2);
    border-color: rgba(103, 232, 249, 0.42);
}
.game-hoverfx-4 .game-card-dix:not(.source-card):hover .card-title-dix { color: #a5f3fc; text-shadow: 0 0 14px rgba(34,211,238,0.35); }

/* FX #5: Cyber Glitch Flash */
.game-hoverfx-5 .game-card-dix:not(.source-card)::before {
    background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,0.25) 45%, transparent 100%);
    transform: translateX(-120%);
}
.game-hoverfx-5 .game-card-dix:not(.source-card)::after {
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px);
    filter: none;
}
.game-hoverfx-5 .game-card-dix:not(.source-card):hover::before {
    opacity: 1;
    transform: translateX(120%);
    transition: transform 0.45s ease;
}
.game-hoverfx-5 .game-card-dix:not(.source-card):hover::after {
    opacity: 1;
    animation: cyberScan 0.9s steps(2, end) infinite;
}
.game-hoverfx-5 .game-card-dix:not(.source-card):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,189,248,0.35), 0 0 20px rgba(56,189,248,0.22);
    border-color: rgba(56, 189, 248, 0.45);
}
.game-hoverfx-5 .game-card-dix:not(.source-card):hover .card-title-dix { color: #bae6fd; }

@keyframes auroraPulse {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.04); opacity: 0.75; }
}
@keyframes cyberScan {
    0% { transform: translateY(0); opacity: 0.15; }
    50% { transform: translateY(-1px); opacity: 0.35; }
    100% { transform: translateY(1px); opacity: 0.15; }
}

/* Hard isolate SOURCE cards from global product hover FX */
.game-card-dix.source-card::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    transform: none !important;
    filter: none !important;
}

/* SOURCE cards keep their own hover interactions */
.game-card-dix.source-card {
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.game-card-dix.source-card:hover {
    transform: translateY(-9px) scale(1.01);
    box-shadow: 0 20px 35px rgba(2, 6, 23, 0.55), 0 0 22px rgba(241, 196, 15, 0.18);
    border-color: rgba(241, 196, 15, 0.45) !important;
}
.game-card-dix.source-card:hover .card-thumb-dix img {
    transform: scale(1.08);
    filter: brightness(1.06) contrast(1.05);
}
.game-card-dix.source-card:hover .card-title-dix {
    color: #fde68a;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

@media (max-width: 1200px) { .dix-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .dix-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dix-grid { grid-template-columns: 1fr; } .hero-slider { height: 350px; } .slide-title { font-size: 2rem; } }

/* --- POPUP NOTIFICATION SYSTEM (10 THEMES) --- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    width: 90%;
    max-width: 600px;
    position: relative;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.popup-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

/* 1. Modern Glass */
.popup-modern { background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.2); color: #fff; }

/* 2. Dark Neo */
.popup-dark { background: #0f172a; border: 1px solid #3b82f6; color: #fff; box-shadow: 0 0 30px rgba(59,130,246,0.3); }

/* 3. Cyberpunk Neon */
.popup-cyberpunk { background: #000; border: 3px solid #00f3ff; border-radius: 0; color: #00f3ff; font-family: 'Courier New', monospace; box-shadow: 0 0 20px #00f3ff, inset 0 0 10px #00f3ff; }
.popup-cyberpunk .popup-close { border-radius: 0; background: #00f3ff; color: #000; }

/* 4. Retro Gamer */
.popup-retro { background: #111; border: 4px double #0f0; border-radius: 0; color: #0f0; font-family: 'Courier New', monospace; text-transform: uppercase; font-weight: 900; }

/* 5. Minimalist Silver */
.popup-minimalist { background: #f8fafc; border: 1px solid #e2e8f0; color: #1e293b; }
.popup-minimalist .popup-close { color: #000; background: #f1f5f9; }

/* 6. Royal Gold */
.popup-royal { background: #1a1a1a; border: 2px solid #d4af37; color: #d4af37; background-image: linear-gradient(45deg, #1a1a1a 0%, #2c2c2c 100%); }

/* 7. Warning Red */
.popup-warning { background: #7f1d1d; border: 2px solid #ef4444; color: #fff; }

/* 8. Success Green */
.popup-success { background: #064e3b; border: 2px solid #10b981; color: #fff; }

/* 9. Deep Sea Blue */
.popup-deepsea { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); border: 1px solid #3b82f6; color: #fff; }

/* 10. Sunset Glow */
.popup-sunset { background: linear-gradient(135deg, #4c1d95 0%, #db2777 50%, #f59e0b 100%); border: none; color: #fff; }

/* --- SIDEBAR PREMIUM WIDGETS (Daominhha / NK Style) --- */
.hnc-widget { 
    margin-bottom: 2rem; 
    border-radius: 12px; 
    overflow: hidden; 
    background: rgba(15, 23, 42, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: var(--shadow-premium);
}
.hnc-widget-title { 
    background: var(--primary-gradient); 
    color: #fff; 
    padding: 1.2rem 1.5rem; 
    margin: 0; 
    font-size: 1rem; 
    font-weight: 800; 
    font-family: 'Montserrat', sans-serif; 
    text-transform: uppercase; 
    line-height: 1.4; 
    border-bottom: 3px solid rgba(0,0,0,0.1); 
}
.hnc-widget-title span { 
    font-size: 0.8rem; 
    color: rgba(255,255,255,0.8); 
    font-weight: 600; 
    display: block;
    margin-top: 4px;
}
.hnc-widget-content { padding: 1.5rem; }
.hnc-lichsucapnhatlink { display: flex; flex-direction: column; gap: 15px; }
.hnc-item { 
    padding-bottom: 12px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
    transition: 0.3s;
}
.hnc-item:last-child { border-bottom: none; padding-bottom: 0; }
.hnc-item .date { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--primary); 
    font-size: 0.75rem; 
    font-weight: 800; 
    margin-bottom: 6px; 
}
.hnc-item .date svg { width: 12px; height: 12px; fill: currentColor; }
.hnc-item .label { 
    color: #e2e8f0; 
    font-size: 0.85rem; 
    font-weight: 600; 
    line-height: 1.5; 
}
.hnc-item.hidden { display: none; }
.hnc-widget .readMore { 
    text-align: center; 
    margin-top: 1.2rem; 
    color: #94a3b8; 
    font-size: 0.8rem; 
    cursor: pointer; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: 0.3s;
}
.hnc-widget .readMore:hover { color: #fff; background: rgba(255,255,255,0.05); }
.hnc-widget .readMore svg { width: 10px; fill: currentColor; transition: 0.3s; }
.hnc-widget .readMore.active svg { transform: rotate(180deg); }

.nk-widget-highlighted { margin-bottom: 2.5rem; }
.nk-widget-title { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 1.8rem; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}
.nk-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}
.nk-widget-title .text-main-1 { color: var(--primary); }


/* --- UNIFIED PREMIUM TABS SYSTEM --- */
.sky-tabs { margin-bottom: 2rem; }
.sky-tabs .nav-tabs { 
    display: flex; 
    gap: 10px; 
    padding: 6px; 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    list-style: none;
    margin: 0 0 1.5rem 0;
}
.sky-tabs .nav-item { flex: 1; }
.sky-tabs .nav-link { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sky-tabs .nav-link i { font-size: 0.9rem; }
.sky-tabs .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.sky-tabs .nav-link.active { 
    background: var(--primary-gradient); 
    color: #fff; 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* Sidebar Specific Adjustment */
.tabs-mod .nav-tabs { padding: 4px; gap: 5px; }
.tabs-mod .nav-link { padding: 10px; font-size: 0.75rem; }

/* Main Content Tab Specific Adjustment */
.nk-tabs .nav-tabs { padding: 8px; border-radius: 15px; background: rgba(15, 23, 42, 0.4); }
.nk-tabs .nav-link { padding: 15px; font-size: 0.9rem; gap: 12px; }
.tab-content-mod {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 15px 15px;
    margin-top: -1.5rem; /* Join with tabs */
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .sky-tabs .nav-tabs { flex-direction: column; }
    .tab-content-mod { padding: 1.5rem; }
}


.nk-widget-post { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 1.5rem; 
    align-items: center; 
    padding: 8px;
    border-radius: 10px;
    transition: 0.3s;
}
.nk-widget-post:hover { background: rgba(255,255,255,0.03); }
.nk-post-image { 
    flex: 0 0 100px; 
    border-radius: 6px; 
    overflow: hidden; 
    height: 60px;
    border: 1px solid rgba(255,255,255,0.1);
}
.nk-post-image img { width: 100%; height: 100%; object-fit: cover; }
.nk-post-title-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nk-post-title { 
    color: #f8fafc; 
    font-size: 0.88rem; 
    font-weight: 700; 
    text-decoration: none; 
    line-height: 1.3; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nk-post-title:hover { color: var(--primary); }
.nk-post-meta { display: flex; align-items: center; gap: 5px; color: #64748b; font-size: 0.7rem; font-weight: 600; }
.nk-post-meta svg { width: 10px; fill: currentColor; }

.nk-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: 800; 
    font-size: 0.9rem; 
    text-decoration: none; 
    text-transform: uppercase; 
    transition: 0.3s; 
    border: none; 
    cursor: pointer; 
    gap: 8px;
}
.nk-btn-lg { width: 100%; padding: 15px; font-size: 1rem; }
.nk-btn-rounded { border-radius: 50px; }
.nk-btn-color-main-1 { background: var(--primary); color: #fff; }
.nk-btn-color-main-5 { background: #334155; color: #fff; }
.nk-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.4); 
    filter: brightness(1.1);
}

/* ============================================================ */
/* PREMIUM UX FEATURES (Loader & Back to Top) */
/* ============================================================ */

/* Premium Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: none; /* Disabled */
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-ring {
    width: 90px;
    height: 90px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    animation: spin-loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.loader-ring::after {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    border-top: 3px solid #60a5fa;
    filter: blur(8px);
    opacity: 0.6;
}

@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 2rem;
    color: white;
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, #fff, var(--primary), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.8);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#back-to-top:hover {
    background: var(--primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

#back-to-top i {
    font-size: 1.4rem;
}

/* ============================================================ */
/* MOBILE RESPONSIVE NAVIGATION (COMPACT TOP-DOWN) */
/* ============================================================ */

/* Desktop-only elements & Hiding mobile elements on PC */
.d-none-desktop, 
.mobile-toggle-group,
#mobileSearchToggle,
#mobileNavPanel { 
    display: none !important; 
}

@media (max-width: 1024px) {
    .d-none-desktop,
    .mobile-toggle-group,
    #mobileSearchToggle,
    #mobileNavPanel { 
        display: block !important; 
    }
    
    #mobileNavPanel {
        display: flex !important; /* Panel uses flex internally */
    }

    /* COMPACT HEADER */
    .header-main-nav-row {
        padding: 0.5rem 1rem;
        height: 60px;
        justify-content: space-between;
    }

    .header-nav-container {
        display: none !important; /* Hide desktop nav */
    }

    .logo {
        font-size: 1.2rem;
        margin-right: auto;
        padding-left: 10px;
    }

    .user-actions {
        gap: 8px;
    }

    .mobile-icon-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.3s;
    }

    .mobile-icon-btn:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: var(--primary);
    }

    /* COMPACT SEARCH ROW */
    .header-search-row {
        max-height: 0;
        padding: 0 1rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        border: none;
        box-shadow: none;
        visibility: hidden;
    }

    .header-search-row.active {
        max-height: 100px;
        padding: 1rem;
        visibility: visible;
        border-bottom: 1px solid var(--glass-border);
    }

    .mega-search-box.full {
        max-width: 100%;
        margin: 0;
    }

    /* MOBILE NAV PANEL (TOP-DOWN) */
    .mobile-nav-panel {
        position: fixed;
        top: 60px; /* Header height */
        left: 0;
        width: 100%;
        max-height: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 1001;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
        border-top: 1px solid var(--glass-border);
    }

    .mobile-nav-panel.active {
        max-height: calc(100vh - 60px);
        visibility: visible;
        border-bottom: 2px solid var(--primary);
    }

    .mobile-nav-content {
        padding: 1.5rem;
        overflow-y: auto;
        max-height: calc(100vh - 80px);
    }

    .mobile-main-nav {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-main-nav > li {
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .mobile-main-nav li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 5px;
        color: #f1f5f9;
        text-decoration: none;
        font-weight: 700;
        font-size: 1rem;
        transition: 0.3s;
        text-transform: uppercase;
    }

    .mobile-main-nav li a i {
        color: var(--primary);
        width: 20px;
        text-align: center;
    }

    .mobile-submenu-toggle {
        background: transparent;
        border: none;
        color: var(--text-muted);
        width: 44px;
        height: 44px;
        cursor: pointer;
        font-size: 0.9rem;
    }

    /* ACCORDION SUBMENU */
    .mobile-submenu {
        list-style: none;
        padding: 0 0 0 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background: rgba(255, 255, 255, 0.02);
    }

    .mobile-has-dropdown.open .mobile-submenu {
        max-height: 800px;
        margin-bottom: 0.5rem;
    }

    .mobile-submenu li a {
        font-size: 0.9rem;
        font-weight: 500;
        text-transform: none;
        color: #94a3b8;
    }

    .mobile-auth-footer {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 2rem;
    }

    /* Adjust main body Padding */
    .main-wrapper {
        padding: 0 15px;
        gap: 2rem;
        margin-top: 1rem;
    }
}
/* --- VIP PRO EFFECTS --- */
.vip-glow {
    color: #f59e0b;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    position: relative;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: vip-text-shine 3s linear infinite;
}

@keyframes vip-text-shine {
    to { background-position: 200% center; }
}

.vip-badge-animated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    animation: vip-badge-pulse 2s infinite;
}

@keyframes vip-badge-pulse {
    0% { transform: scale(1); box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(245, 158, 11, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
}

.vip-member-item {
    border-left: 4px solid #f59e0b !important;
    background: rgba(245, 158, 11, 0.05) !important;
}
