/**
 * @author Jukaza
 * @copyright Copyright (c) 2023
 * @contact Email: jukaza208@gmail.com | Facebook: https://www.facebook.com/profile.php?id=100076560932270 | Zalo: 0385436233
 * @license Proprietary
 * @version 1.0.0
 * @description File này thuộc quyền sở hữu của Jukaza. Nghiêm cấm sao chép khi chưa được phép.
 */
/* CSS Variables for Light/Dark Mode */
:root {
    /* Light Mode (Default) */
    --bg-color: #f0f0f0;
    --bg-color-alt: #e8e8e8;
    --bg-color-dark: #d5d5d5;
    --bg-color-darker: #cccccc;
    --bg-color-accent: #fff8f0;
    --text-color: #333;
    --text-color-light: #555;
    --text-color-lighter: #777;
    --text-color-alt: #444;
    --text-color-accent: #ff7700;
    --header-bg: #1a1a1a;
    --header-bg-light: #2a2a2a;
    --header-bg-dark: #0a0a0a;
    --header-bg-accent: #222;
    --header-text: #fff;
    --header-text-alt: #f0f0f0;
    --card-bg: #fff;
    --card-bg-alt: #f9f9f9;
    --card-bg-accent: #fff8f0;
    --card-shadow: rgba(0,0,0,0.15);
    --accent-color: #ff7700;
    --accent-color-light: #ff9d00;
    --accent-color-lighter: #ffb84d;
    --accent-color-dark: #e65c00;
    --accent-color-darker: #cc5200;
    --accent-color-alt: #ff5e00;
    --accent-color-vibrant: #ff3d00;
    --accent-color-muted: #ffccaa;
    --accent-color-rgb: 255, 119, 0;
    --accent-gradient: linear-gradient(135deg, #ff9d00, #ff5e00);
    --accent-gradient-alt: linear-gradient(45deg, #ff7700, #ff5e00);
    --accent-gradient-vibrant: linear-gradient(135deg, #ff3d00, #ff7700);
    --accent-gradient-muted: linear-gradient(135deg, #ffccaa, #ffb84d);
    --border-color: #eee;
    --border-color-dark: #ddd;
    --border-color-accent: #ffccaa;
    --input-bg: #fff;
    --input-bg-focus: #f9f9f9;
    --input-bg-alt: #fff8f0;
    --input-border: #ddd;
    --input-border-focus: #ff9d00;
    --input-border-alt: #ffccaa;
    --secondary-text: #666;
    --light-text: #999;
    --light-text-alt: #aaa;
    --success-color: #4CAF50;
    --success-color-light: #81c784;
    --success-color-dark: #388e3c;
    --error-color: #F44336;
    --error-color-light: #e57373;
    --error-color-dark: #d32f2f;
    --link-color: #ff7700;
    --link-hover: #ff5e00;
    --link-alt: #ff9d00;
    --link-alt-hover: #ffb84d;

    color-scheme: light;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #121212;
    --bg-color-alt: #1a1a1a;
    --bg-color-dark: #0a0a0a;
    --bg-color-darker: #000;
    --bg-color-accent: #1f1500;
    --text-color: #f0f0f0;
    --text-color-light: #e0e0e0;
    --text-color-lighter: #cccccc;
    --text-color-alt: #d0d0d0;
    --text-color-accent: #ff9d00;
    --header-bg: #000;
    --header-bg-light: #1a1a1a;
    --header-bg-dark: #000;
    --header-bg-accent: #1a1000;
    --header-text: #fff;
    --header-text-alt: #f0f0f0;
    --card-bg: #1e1e1e;
    --card-bg-alt: #252525;
    --card-bg-accent: #1f1500;
    --card-shadow: rgba(0,0,0,0.4);
    --accent-color: #ff7700;
    --accent-color-light: #ff9d00;
    --accent-color-lighter: #ffb84d;
    --accent-color-dark: #e65c00;
    --accent-color-darker: #cc5200;
    --accent-color-alt: #ff5e00;
    --accent-color-vibrant: #ff3d00;
    --accent-color-muted: #b35300;
    --accent-color-rgb: 255, 119, 0;
    --accent-gradient: linear-gradient(135deg, #ff9d00, #ff5e00);
    --accent-gradient-alt: linear-gradient(45deg, #ff7700, #ff5e00);
    --accent-gradient-vibrant: linear-gradient(135deg, #ff3d00, #ff7700);
    --accent-gradient-muted: linear-gradient(135deg, #b35300, #ff7700);
    --border-color: #333;
    --border-color-dark: #444;
    --border-color-accent: #553000;
    --input-bg: #2c2c2c;
    --input-bg-focus: #353535;
    --input-bg-alt: #1f1500;
    --input-border: #444;
    --input-border-focus: #ff9d00;
    --input-border-alt: #553000;
    --secondary-text: #aaa;
    --light-text: #888;
    --light-text-alt: #777;
    --success-color: #4CAF50;
    --success-color-light: #81c784;
    --success-color-dark: #388e3c;
    --error-color: #F44336;
    --error-color-light: #e57373;
    --error-color-dark: #d32f2f;
    --link-color: #ff9d00;
    --link-hover: #ffb84d;
    --link-alt: #ff7700;
    --link-alt-hover: #ff5e00;

    color-scheme: dark;
}

/* Blue Theme */
[data-theme="blue"] {
    --bg-color: #d4eafd; /* Adjusted */
    --bg-color-alt: #c1dff9; /* Adjusted */
    --bg-color-dark: #a9d4f7; /* Adjusted */
    --bg-color-darker: #8dc9f6; /* Adjusted */
    --bg-color-accent: #eaf6ff; /* Adjusted */
    --text-color: #0d47a1;
    --text-color-light: #1565c0;
    --text-color-lighter: #1976d2;
    --text-color-alt: #0277bd;
    --text-color-accent: #2196F3;
    --header-bg: #1565c0;
    --header-bg-light: #1976d2;
    --header-bg-dark: #0d47a1;
    --header-bg-accent: #0288d1;
    --header-text: #fff;
    --header-text-alt: #e3f2fd;
    --card-bg: #f0f8ff; /* Adjusted - AliceBlue */
    --card-bg-alt: #e9f4ff; /* Adjusted */
    --card-bg-accent: #eaf6ff; /* Was #e1f5fe, adjusted */
    --card-shadow: rgba(13, 71, 161, 0.2);
    --accent-color: #2196F3;
    --accent-color-light: #42a5f5;
    --accent-color-lighter: #64b5f6;
    --accent-color-dark: #1976d2;
    --accent-color-darker: #1565c0;
    --accent-color-alt: #0288d1;
    --accent-color-vibrant: #00b0ff;
    --accent-color-muted: #bbdefb;
    --accent-color-rgb: 33, 150, 243;
    --accent-gradient: linear-gradient(135deg, #64b5f6, #1976d2);
    --accent-gradient-alt: linear-gradient(45deg, #2196F3, #1565c0);
    --accent-gradient-vibrant: linear-gradient(135deg, #00b0ff, #0288d1);
    --accent-gradient-muted: linear-gradient(135deg, #bbdefb, #90caf9);
    --border-color: #bbdefb;
    --border-color-dark: #90caf9;
    --border-color-accent: #64b5f6;
    --input-bg: #f0f8ff; /* Adjusted */
    --input-bg-focus: #e9f4ff; /* Adjusted */
    --input-bg-alt: #eaf6ff; /* Was #e1f5fe, adjusted */
    --input-border: #90caf9;
    --input-border-focus: #42a5f5;
    --input-border-alt: #bbdefb;
    --secondary-text: #1976d2;
    --light-text: #42a5f5;
    --light-text-alt: #64b5f6;
    --success-color: #4CAF50;
    --success-color-light: #81c784;
    --success-color-dark: #388e3c;
    --error-color: #F44336;
    --error-color-light: #e57373;
    --error-color-dark: #d32f2f;
    --link-color: #1976d2;
    --link-hover: #1565c0;
    --link-alt: #0288d1;
    --link-alt-hover: #0277bd;
    color-scheme: light;
}

/* Green Theme */
[data-theme="green"] {
    --bg-color: #dff0df; /* Adjusted */
    --bg-color-alt: #cce7cc; /* Adjusted */
    --bg-color-dark: #b6e0b7; /* Adjusted */
    --bg-color-darker: #9ad29b; /* Adjusted */
    --bg-color-accent: #e7f5e7; /* Adjusted */
    --text-color: #1b5e20;
    --text-color-light: #2e7d32;
    --text-color-lighter: #388e3c;
    --text-color-alt: #00695c;
    --text-color-accent: #4CAF50;
    --header-bg: #2e7d32;
    --header-bg-light: #388e3c;
    --header-bg-dark: #1b5e20;
    --header-bg-accent: #00897b;
    --header-text: #fff;
    --header-text-alt: #e8f5e9;
    --card-bg: #f5fff5; /* Adjusted - Honeydew */
    --card-bg-alt: #eef8ee; /* Adjusted */
    --card-bg-accent: #e7f5e7; /* Was #e0f2f1, adjusted */
    --card-shadow: rgba(27, 94, 32, 0.2);
    --accent-color: #4CAF50;
    --accent-color-light: #66bb6a;
    --accent-color-lighter: #81c784;
    --accent-color-dark: #388e3c;
    --accent-color-darker: #2e7d32;
    --accent-color-alt: #009688;
    --accent-color-vibrant: #00c853;
    --accent-color-muted: #c8e6c9;
    --accent-color-rgb: 76, 175, 80;
    --accent-gradient: linear-gradient(135deg, #81c784, #388e3c);
    --accent-gradient-alt: linear-gradient(45deg, #4CAF50, #2e7d32);
    --accent-gradient-vibrant: linear-gradient(135deg, #00c853, #009688);
    --accent-gradient-muted: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    --border-color: #c8e6c9;
    --border-color-dark: #a5d6a7;
    --border-color-accent: #80cbc4;
    --input-bg: #f5fff5; /* Adjusted */
    --input-bg-focus: #eef8ee; /* Adjusted */
    --input-bg-alt: #e7f5e7; /* Was #e0f2f1, adjusted */
    --input-border: #a5d6a7;
    --input-border-focus: #66bb6a;
    --input-border-alt: #b2dfdb;
    --secondary-text: #388e3c;
    --light-text: #66bb6a;
    --light-text-alt: #81c784;
    --success-color: #4CAF50;
    --success-color-light: #81c784;
    --success-color-dark: #388e3c;
    --error-color: #F44336;
    --error-color-light: #e57373;
    --error-color-dark: #d32f2f;
    --link-color: #388e3c;
    --link-hover: #2e7d32;
    --link-alt: #009688;
    --link-alt-hover: #00796b;
    color-scheme: light;
}

/* Purple Theme */
[data-theme="purple"] {
    --bg-color: #efdff2; /* Adjusted */
    --bg-color-alt: #e6d0ed; /* Adjusted */
    --bg-color-dark: #d9aee2; /* Adjusted */
    --bg-color-darker: #c984d3; /* Adjusted */
    --bg-color-accent: #f5eff7; /* Adjusted */
    --text-color: #4a148c;
    --text-color-light: #6a1b9a;
    --text-color-lighter: #7b1fa2;
    --text-color-alt: #311b92;
    --text-color-accent: #9c27b0;
    --header-bg: #6a1b9a;
    --header-bg-light: #7b1fa2;
    --header-bg-dark: #4a148c;
    --header-bg-accent: #512da8;
    --header-text: #fff;
    --header-text-alt: #f3e5f5;
    --card-bg: #fdfaff; /* Adjusted */
    --card-bg-alt: #f8f0fc; /* Adjusted */
    --card-bg-accent: #f5eff7; /* Was #ede7f6, adjusted */
    --card-shadow: rgba(74, 20, 140, 0.2);
    --accent-color: #9c27b0;
    --accent-color-light: #ab47bc;
    --accent-color-lighter: #ba68c8;
    --accent-color-dark: #7b1fa2;
    --accent-color-darker: #6a1b9a;
    --accent-color-alt: #673ab7;
    --accent-color-vibrant: #d500f9;
    --accent-color-muted: #e1bee7;
    --accent-color-rgb: 156, 39, 176;
    --accent-gradient: linear-gradient(135deg, #ba68c8, #7b1fa2);
    --accent-gradient-alt: linear-gradient(45deg, #9c27b0, #6a1b9a);
    --accent-gradient-vibrant: linear-gradient(135deg, #d500f9, #aa00ff);
    --accent-gradient-muted: linear-gradient(135deg, #e1bee7, #ce93d8);
    --border-color: #e1bee7;
    --border-color-dark: #ce93d8;
    --border-color-accent: #b39ddb;
    --input-bg: #fdfaff; /* Adjusted */
    --input-bg-focus: #f8f0fc; /* Adjusted */
    --input-bg-alt: #f5eff7; /* Was #ede7f6, adjusted */
    --input-border: #ce93d8;
    --input-border-focus: #ab47bc;
    --input-border-alt: #d1c4e9;
    --secondary-text: #7b1fa2;
    --light-text: #ab47bc;
    --light-text-alt: #ba68c8;
    --success-color: #4CAF50;
    --success-color-light: #81c784;
    --success-color-dark: #388e3c;
    --error-color: #F44336;
    --error-color-light: #e57373;
    --error-color-dark: #d32f2f;
    --link-color: #7b1fa2;
    --link-hover: #6a1b9a;
    --link-alt: #673ab7;
    --link-alt-hover: #5e35b1;
    color-scheme: light;
}

/* Red Theme */
[data-theme="red"] {
    --bg-color: #ffe0e4; /* Adjusted */
    --bg-color-alt: #ffd6da; /* Adjusted */
    --bg-color-dark: #f5afb3; /* Adjusted */
    --bg-color-darker: #ed8f8f; /* Adjusted */
    --bg-color-accent: #fff0f2; /* Adjusted */
    --text-color: #b71c1c;
    --text-color-light: #c62828;
    --text-color-lighter: #d32f2f;
    --text-color-alt: #e53935;
    --text-color-accent: #f44336;
    --header-bg: #c62828;
    --header-bg-light: #d32f2f;
    --header-bg-dark: #b71c1c;
    --header-bg-accent: #e53935;
    --header-text: #fff;
    --header-text-alt: #ffebee;
    --card-bg: #fff5f6; /* Adjusted - Snow */
    --card-bg-alt: #ffeeef; /* Adjusted */
    --card-bg-accent: #fff0f2; /* Was #ffebee, adjusted */
    --card-shadow: rgba(183, 28, 28, 0.2);
    --accent-color: #f44336;
    --accent-color-light: #e57373;
    --accent-color-lighter: #ef5350;
    --accent-color-dark: #d32f2f;
    --accent-color-darker: #c62828;
    --accent-color-alt: #e53935;
    --accent-color-vibrant: #ff1744;
    --accent-color-muted: #ffcdd2;
    --accent-color-rgb: 244, 67, 54;
    --accent-gradient: linear-gradient(135deg, #ef5350, #c62828);
    --accent-gradient-alt: linear-gradient(45deg, #f44336, #b71c1c);
    --accent-gradient-vibrant: linear-gradient(135deg, #ff1744, #d50000);
    --accent-gradient-muted: linear-gradient(135deg, #ffcdd2, #ef9a9a);
    --border-color: #ffcdd2;
    --border-color-dark: #ef9a9a;
    --border-color-accent: #e57373;
    --input-bg: #fff5f6; /* Adjusted */
    --input-bg-focus: #ffeeef; /* Adjusted */
    --input-bg-alt: #fff0f2; /* Was #ffebee, adjusted */
    --input-border: #ef9a9a;
    --input-border-focus: #e57373;
    --input-border-alt: #ffcdd2;
    --secondary-text: #c62828;
    --light-text: #e57373;
    --light-text-alt: #ef9a9a;
    --success-color: #4CAF50;
    --success-color-light: #81c784;
    --success-color-dark: #388e3c;
    --error-color: #F44336;
    --error-color-light: #e57373;
    --error-color-dark: #d32f2f;
    --link-color: #c62828;
    --link-hover: #b71c1c;
    --link-alt: #e53935;
    --link-alt-hover: #d32f2f;
    color-scheme: light;
}
/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    background-image: linear-gradient(to bottom, var(--bg-color), var(--bg-color-alt));
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/public/images/subtle-pattern.png');
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

body.menu-open {
    overflow: hidden;
}

/* Game Header - Fixed Colors Design */
.game-header {
    position: sticky; /* Thay đổi từ relative thành sticky */
    top: 0; /* Cố định ở đầu trang */
    z-index: 1000;
    width: 100%;
    color: #ffffff;
    backdrop-filter: blur(10px); /* Hiệu ứng blur khi scroll */
    transition: all 0.3s ease;
}

/* Header Top Bar */
.header-topbar {
    background-color: #0a0a0a; /* Màu tối cố định */
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-content {
    display: flex;
    justify-content: flex-end; /* Đặt nội dung sang phải */
    align-items: center;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Header Main */
.header-main {
    background-color: #1a1a1a; /* Màu tối cố định */
    background-image: linear-gradient(to bottom, #1a1a1a, #2a2a2a); /* Gradient cố định */
    padding: 12px 0; /* Giảm padding để cân bằng với header-auth */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    min-height: 50px; /* Điều chỉnh chiều cao để bằng với header-auth */
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Thêm shadow nhẹ */
}

/* Auth Section */
.header-auth {
    background-color: #222222; /* Màu tối hơn một chút */
    background-image: linear-gradient(to bottom, #222222, #2a2a2a); /* Thêm gradient nhẹ */
    padding: 12px 0; /* Giữ nguyên padding */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 2px 5px rgba(0,0,0,0.1); /* Cải thiện shadow */
    position: relative;
    min-height: 50px; /* Điều chỉnh chiều cao để bằng với header-main */
}

.header-content {
    display: flex;
    justify-content: flex-end; /* Đẩy nội dung về bên phải */
    align-items: center;
    flex-wrap: nowrap; /* Ngăn chặn các phần tử xuống dòng */
    position: relative;
    padding-left: 120px; /* Tăng khoảng trống cho logo */
}

.auth-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-left: 120px; /* Tăng khoảng trống cho logo */
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 30px;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.user-dropdown-toggle:hover {
    background-color: rgba(255,255,255,0.2);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background-color: rgba(255,255,255,0.1);
    border: 3px solid #ff7700; /* Màu cam cố định */
    box-shadow: 0 3px 8px rgba(0,0,0,0.3), 0 0 0 2px rgba(255,119,0,0.2); /* Thêm viền sáng */
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,119,0,0.4), 0 0 0 3px rgba(255,119,0,0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #ff7700; /* Màu cam cố định */
    color: white;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
}

.user-balance i {
    color: #ff7700; /* Màu cam cố định */
}

.topup-link {
    color: #ff7700; /* Màu cam cố định */
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.topup-link:hover {
    text-decoration: underline;
}

.user-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li {
    margin-bottom: 8px;
}

.user-menu li:last-child {
    margin-bottom: 0;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-menu a:hover {
    background-color: var(--bg-color-alt);
}

.user-menu a i {
    color: #ff7700; /* Màu cam cố định */
    width: 16px;
    text-align: center;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    margin-right: 15px; /* Đẩy nút đăng nhập và đăng ký về bên trái */
}

.btn-login, .btn-register {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--header-text);
}

.btn-login:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-register {
    background-color: #ff7700; /* Màu cam cố định */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-register:hover {
    background-color: #e65c00; /* Màu cam đậm hơn cố định */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Main Navigation */
.main-nav {
    margin-right: 20px;
    flex: 1; /* Cho phép main-nav mở rộng để điền vào khoảng trống */
}

/* Header Auth Section */
.header-auth-section {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Ngăn chặn phần này bị co lại */
    min-width: 200px; /* Đảm bảo có đủ không gian cho các nút */
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px; /* Tăng spacing giữa các menu items */
    justify-content: flex-end; /* Đẩy các menu item về phía bên phải */
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Tăng khoảng cách giữa icon và text */
    padding: 12px 18px; /* Tăng padding để tạo khoảng cách đồng đều */
    color: #f0f0f0; /* Màu sáng cố định */
    text-decoration: none;
    font-weight: 500;
    border-radius: 25px; /* Bo góc mềm mại hơn */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-2px); /* Hiệu ứng nâng nhẹ */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link i {
    font-size: 16px;
    color: #ff7700; /* Màu cam cố định */
}

.nav-link.highlight {
    background: linear-gradient(135deg, #ff7700, #ff9d00); /* Gradient nhẹ thay vì màu đặc */
    color: white;
    box-shadow: 0 3px 8px rgba(255,119,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-link.highlight i {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-link.highlight:hover {
    background: linear-gradient(135deg, #e65c00, #ff7700); /* Gradient đậm hơn khi hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255,119,0,0.4);
    border-color: rgba(255,255,255,0.3);
}

/* Theme Toggle Button */
.header-controls {
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 15px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 0;
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: pulse-glow 2s infinite;
    background-image: var(--accent-gradient-alt);
    border: 2px solid rgba(255,255,255,0.2);
}

/* Theme Panel */
.theme-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 998;
    width: 250px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.theme-panel h3 {
    margin: 0 0 15px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.theme-option:hover {
    transform: scale(1.05);
}

.theme-option.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.theme-option::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.theme-option.active::after {
    opacity: 1;
}

.theme-light {
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
}

.theme-dark {
    background: linear-gradient(135deg, #121212, #1e1e1e);
}

.theme-blue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.theme-green {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.theme-purple {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.theme-red {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.theme-toggle i {
    font-size: 22px;
    color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: translateY(30px);
}

/* Dark mode active state */
[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: translateY(-30px);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: translateY(0);
    color: var(--link-color);
}

/* Header Logo Styles */
.header-logo {
    position: absolute;
    left: 20px;
    top: 50px; /* Vị trí chính xác: chiều cao của header-main */
    z-index: 1000;
    transform: translateY(-50%); /* Dịch chuyển lên trên 50% chiều cao logo */
}

.header-logo img {
    height: 80px; /* Giảm kích thước logo ~20% (từ 100px xuống 80px) */
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
    display: block;
    animation: logoPulseHeader 3s infinite ease-in-out;
}

.header-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 119, 0, 0.2) 0%, rgba(255, 119, 0, 0) 70%);
    animation: logoGlowHeader 3s infinite ease-in-out;
    z-index: -1;
    pointer-events: none;
}

@keyframes logoPulseHeader {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 5px 20px rgba(255, 119, 0, 0.5));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    }
}

@keyframes logoGlowHeader {
    0% {
        opacity: 0.3;
        width: 90%;
        height: 90%;
    }
    50% {
        opacity: 0.7;
        width: 110%;
        height: 110%;
    }
    100% {
        opacity: 0.3;
        width: 90%;
        height: 90%;
    }
}

/* Bỏ các filter cho logo theo theme */
[data-theme="dark"] .header-logo img,
[data-theme="blue"] .header-logo img,
[data-theme="green"] .header-logo img,
[data-theme="purple"] .header-logo img,
[data-theme="red"] .header-logo img {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); /* Chỉ giữ bóng đổ */
}

.header-logo:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 25px rgba(255, 119, 0, 0.7));
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
}

.nav-menu a:hover {
    color: #ff9d00;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(135deg, #ff9d00, #ff5e00);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
    transform: translateX(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Banner */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner img {
    width: 100%;
    display: block;
}

/* CSS Banner */
.banner-css {
    height: 500px;
    background: var(--accent-gradient-vibrant);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(var(--accent-color-rgb), 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.banner-css::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: 1;
    background: url('/public/images/dragon-pattern.png') repeat;
    background-size: 300px;
    opacity: 0.1;
    animation: rotate 60s linear infinite;
}

.banner-css::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.2) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
    color: white;
    background-image: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.banner-btn {
    display: inline-block;
    background-color: white;
    color: var(--accent-color);
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background-color: #f0f0f0;
}

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

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Game Info */
.game-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 25px;
}

.info-box {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 20px var(--card-shadow);
    transition: all 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color-dark);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background-color: var(--card-bg-alt);
    border-color: var(--accent-color-muted);
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-gradient-alt);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: var(--accent-color-alt);
    margin-bottom: 15px;
    font-size: 22px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.info-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-image: var(--accent-gradient-muted);
    border-radius: 3px;
}

.info-box p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-color);
}

.info-box ul {
    padding-left: 20px;
}

.info-box ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.info-box ul li::before {
    content: '•';
    color: var(--accent-color-muted);
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
}

/* Download Section */
.download-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark);
    background-image: linear-gradient(to bottom, var(--card-bg), var(--card-bg-alt));
}

.download-section:hover {
    background-color: var(--card-bg-alt);
    border-color: var(--accent-color-muted);
    box-shadow: 0 12px 30px var(--card-shadow);
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
    box-shadow: 0 2px 5px rgba(var(--accent-color-rgb), 0.3);
}

.download-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.download-option {
    text-align: center;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 180px;
    background-color: var(--card-bg-alt);
    box-shadow: 0 5px 15px var(--card-shadow);
    border: 1px solid var(--border-color-dark);
    position: relative;
    z-index: 1;
}

.download-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(var(--accent-color-rgb), 0.2);
    border-color: var(--accent-color-light);
}

.download-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    border-radius: 10px;
    z-index: -1;
}

.download-option img {
    width: 80px;
    margin-bottom: 15px;
}

.download-option h3 {
    margin: 10px 0;
    color: #333;
}

.download-option a {
    display: block;
    background: var(--accent-gradient-alt);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(var(--accent-color-rgb), 0.3);
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.download-option a:hover {
    background: var(--accent-gradient-vibrant);
    box-shadow: 0 6px 15px rgba(var(--accent-color-rgb), 0.4);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.4);
}

/* News Section */
.news-section {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--card-shadow);
    transition: all 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color-dark);
    background-image: linear-gradient(to bottom, var(--card-bg), var(--card-bg-alt));
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background-color: var(--card-bg-alt);
    border-color: var(--accent-color-muted);
}

.news-icon {
    height: 180px;
    background: var(--accent-gradient-muted);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-color-dark);
    box-shadow: 0 3px 8px rgba(var(--accent-color-rgb), 0.2);
}

.news-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('/public/images/news-pattern.png');
    background-size: cover;
    opacity: 0.2;
}

.news-content {
    padding: 20px;
    position: relative;
    border-top: 1px solid rgba(var(--accent-color-rgb), 0.1);
    background-image: linear-gradient(to bottom, var(--card-bg), var(--card-bg-alt));
}

.news-content h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--text-color);
    transition: color 0.3s ease;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.news-item:hover .news-content h3 {
    color: var(--accent-color-vibrant);
    text-shadow: 0 1px 2px rgba(var(--accent-color-rgb), 0.1);
}

.news-content p {
    color: var(--secondary-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-content .date {
    color: var(--light-text);
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    color: var(--link-alt);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--link-alt-hover);
    padding-right: 25px;
}

.read-more:hover::after {
    transform: translate(5px, -50%);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
    background-image: linear-gradient(to top, #1a1a1a, #2a2a2a);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    border-top: 2px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff9d00;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #ffffff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff3d00;
}

.copyright {
    font-size: 14px;
    color: #cccccc;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--link-hover);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Floating Windows */
.floating-windows {
    position: fixed;
    z-index: 100;
}

.floating-window {
    position: fixed;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 220px;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-window:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.window1 {
    top: 120px;
    right: 30px;
}

.window2 {
    top: 300px;
    right: 50px;
}

.window-header {
    background: var(--accent-gradient);
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-controls {
    display: flex;
}

.window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    background-color: rgba(255, 255, 255, 0.7);
}

.window-title {
    font-weight: 500;
    font-size: 14px;
}

.window-content {
    padding: 15px;
}

.event-timer {
    text-align: center;
}

.timer-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.timer-value {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-color);
}

.online-count {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
}

.online-count i {
    color: #4CAF50;
    margin-right: 10px;
}

.online-count span {
    font-weight: bold;
}

/* Server Status */
.server-status {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.server-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.server-item {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.server-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.server-item.online {
    border-left: 4px solid #4CAF50;
}

.server-item.maintenance {
    border-left: 4px solid #F44336;
}

.server-icon {
    margin-right: 15px;
    color: #666;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.server-info {
    flex: 1;
}

.server-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.server-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.server-item.online .status {
    color: #4CAF50;
    font-weight: 500;
}

.server-item.maintenance .status {
    color: #F44336;
    font-weight: 500;
}

.server-load {
    margin-top: 5px;
}

.load-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.load-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.server-item.maintenance .load-fill {
    background: linear-gradient(90deg, #F44336, #FF9800);
}

/* Download Option Updates */
.option-icon {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.download-option:hover .option-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #fff, #f5f5f5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.option-icon i {
    font-size: 40px;
}

.download-option:nth-child(1) .option-icon i {
    color: #3ddc84;
}

.download-option:nth-child(2) .option-icon i {
    color: #333;
}

.download-option:nth-child(3) .option-icon i {
    color: #0078d7;
}

.download-option:nth-child(4) .option-icon i {
    color: #f4b400;
}

.option-details {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    font-size: 12px;
    color: #666;
}

.option-details span {
    margin: 0 5px;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 10px;
}

/* News Window Styling */
.news-window {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.window-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Features Section */
.features-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark);
    background-image: linear-gradient(to bottom, var(--card-bg), var(--card-bg-alt));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 20px var(--card-shadow);
    transition: all 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--accent-color);
    border: 1px solid var(--border-color-dark);
    border-top-width: 4px;
    border-top-color: var(--accent-color);
    background-image: linear-gradient(to bottom, var(--card-bg), var(--card-bg-alt));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--card-shadow);
    border-color: var(--accent-color-muted);
    border-top-color: var(--accent-color-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 15px;
}











/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.5);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }

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

    .user-name {
        max-width: 80px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header Responsive */
    .header-topbar {
        padding: 5px 0;
    }

    .header-main {
        padding: 10px 0;
        min-height: 50px; /* Giữ chiều cao như desktop */
    }

    .header-auth {
        padding: 8px 0;
    }

    .header-logo {
        left: 10px;
        top: 40px; /* Điều chỉnh vị trí trên tablet */
    }

    .header-logo img {
        height: 60px; /* Giảm kích thước logo trên tablet (từ 70px xuống 60px) */
    }

    .header-content, .auth-content {
        padding-left: 90px; /* Giảm padding trên tablet */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #1a1a1a; /* Màu tối cố định */
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px 20px;
        overflow-y: auto;
        margin-right: 0;
    }

    .header-auth {
        padding: 5px 0;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-link {
        padding: 15px 10px;
        font-size: 16px;
        border-radius: 0;
    }

    .nav-link.highlight {
        background-color: transparent;
        color: #ff7700; /* Màu cam cố định */
        box-shadow: none;
    }

    .nav-link.highlight i {
        color: #ff7700; /* Màu cam cố định */
    }

    .nav-link.highlight:hover {
        transform: none;
        box-shadow: none;
        background-color: rgba(255,255,255,0.05);
    }

    /* Auth section responsive */
    .user-dropdown-toggle {
        padding: 6px 12px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .user-name {
        max-width: 120px;
        font-size: 14px;
    }

    .auth-buttons {
        gap: 10px;
    }

    .btn-login, .btn-register {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Mobile menu toggle animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay when menu is open */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mobile user dropdown */
@media (max-width: 768px) {
    .user-dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        position: absolute;
        top: 40px;
        right: 0;
    }

    .user-dropdown-menu.active {
        display: block;
    }
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 10px;
        margin-top: 15px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .game-info {
        flex-direction: column;
        gap: 15px;
    }

    .info-box {
        min-width: 100%;
        padding: 20px;
    }

    .info-box h3 {
        font-size: 18px;
    }

    .download-options {
        flex-direction: column;
    }

    .floating-window {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .features-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 25px;
        margin-bottom: 15px;
    }


    .feature-card p {
        font-size: 14px;
    }


    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-icon {
        height: 150px;
    }

    .news-content h3 {
        font-size: 18px;
    }

    .footer {
        padding: 20px 0;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-links li {
        margin: 5px 10px;
    }

    .social-links a {
        font-size: 18px;
        margin: 0 8px;
    }

    .copyright {
        font-size: 12px;
        padding: 0 15px;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        left: auto;
    }

    .theme-toggle i {
        font-size: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .header-topbar {
        padding: 4px 0;
    }

    .header-main {
        padding: 8px 0;
        min-height: 40px; /* Giảm chiều cao trên mobile */
    }

    .header-auth {
        padding: 4px 0;
    }

    .auth-content {
        justify-content: center;
    }

    .header-logo {
        left: 5px;
        top: 30px; /* Điều chỉnh vị trí trên mobile */
    }

    .header-logo img {
        height: 40px; /* Giảm kích thước logo trên mobile (từ 50px xuống 40px) */
    }

    .header-content, .auth-content {
        padding-left: 65px; /* Giảm padding trên mobile */
    }

    .mobile-menu-toggle {
        width: 25px;
        height: 18px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }

    .user-name {
        max-width: 80px;
        font-size: 13px;
    }

    .btn-login, .btn-register {
        padding: 8px 12px;
        font-size: 13px;
    }

    .nav-menu li {
        margin: 3px 8px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .section-title {
        font-size: 20px;
    }

    .info-box {
        padding: 15px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 13px;
    }

    .window-body {
        padding: 10px;
    }

    .news-icon {
        height: 120px;
    }

    .news-content {
        padding: 15px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    .footer-links li a,
    .social-links a {
        font-size: 14px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
        left: auto;
    }

    .theme-toggle i {
        font-size: 18px;
    }
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Terms Page */
.terms-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.terms-section h1.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.terms-section h1.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.terms-container {
    max-width: 800px;
    margin: 0 auto;
}

.terms-box {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.terms-box:last-child {
    border-bottom: none;
}

.terms-box h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 22px;
    position: relative;
}

.terms-box p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.terms-box ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-box ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
    line-height: 1.6;
    color: var(--text-color);
}

.terms-box ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
}

.terms-box a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.terms-box a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.terms-date {
    text-align: right;
    font-style: italic;
    color: var(--light-text);
    margin-top: 30px;
    font-size: 14px;
}

/* Responsive Terms Page */
@media (max-width: 768px) {
    .terms-section {
        padding: 20px 15px;
    }

    .terms-box h2 {
        font-size: 20px;
    }

    .terms-box p,
    .terms-box ul li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .terms-section h1.section-title {
        font-size: 22px;
    }

    .terms-box h2 {
        font-size: 18px;
    }

    .terms-box p,
    .terms-box ul li {
        font-size: 13px;
    }
}

/* Character Creation */
.character-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.character-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.character-option:hover {
    background-color: #f0f0f0;
}

.character-option.selected {
    background-color: var(--accent-color);
    color: #fff;
}

.character-option img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Profile */
.profile-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.profile-sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-content {
    flex: 3;
    min-width: 300px;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
}

.profile-info h3 {
    text-align: center;
    margin-bottom: 20px;
}

.profile-stats {
    list-style: none;
}

.profile-stats li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.profile-stats li:last-child {
    border-bottom: none;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.profile-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.profile-tab.active {
    border-bottom: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Jukaza | Zalo: 0385436233 */
/* Enhanced UI Elements for Better Visibility */

/* Transaction Type Styles */
.transaction-type {
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Dark mode styles */
[data-theme="dark"] .transaction-type {
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);
}

.transaction-type i {
    margin-right: 6px;
    font-size: 16px;
}

.transaction-type.bank {
    background-color: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
    color: #2980b9;
    text-shadow: none;
}

.transaction-type.card {
    background-color: rgba(230, 126, 34, 0.2);
    border: 1px solid rgba(230, 126, 34, 0.5);
    color: #d35400;
    text-shadow: none;
}

/* Dark mode styles for transaction types */
[data-theme="dark"] .transaction-type.bank {
    background-color: rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.7);
    color: #5dade2;
}

[data-theme="dark"] .transaction-type.card {
    background-color: rgba(230, 126, 34, 0.3);
    border: 1px solid rgba(230, 126, 34, 0.7);
    color: #f39c12;
}

/* Status Styles */
.status {
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.02);
}

/* Dark mode styles for status base */
[data-theme="dark"] .status {
    background-color: rgba(255, 255, 255, 0.05);
}

.status i {
    margin-right: 5px;
    font-size: 16px;
}

.status.success {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.05);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status.failed {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status.pending {
    color: #f39c12;
    background-color: rgba(243, 156, 18, 0.05);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.status.warning {
    color: #d35400;
    background-color: rgba(211, 84, 0, 0.05);
    border: 1px solid rgba(211, 84, 0, 0.2);
}

/* Dark mode styles for status */
[data-theme="dark"] .status.success {
    color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

[data-theme="dark"] .status.failed {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

[data-theme="dark"] .status.pending {
    color: #f1c40f;
    background-color: rgba(241, 196, 15, 0.15);
    border: 1px solid rgba(241, 196, 15, 0.3);
}

[data-theme="dark"] .status.warning {
    color: #e67e22;
    background-color: rgba(230, 126, 34, 0.15);
    border: 1px solid rgba(230, 126, 34, 0.3);
}

/* Table Styles */
.transaction-table td {
    vertical-align: middle;
}

/* Dark mode styles for table */
[data-theme="dark"] .transaction-table td {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .transaction-table th {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Gems/Cash Styles */
.gems {
    color: #e67e22;
    font-weight: 700;
    background-color: rgba(230, 126, 34, 0.05);
    border: 1px solid rgba(230, 126, 34, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}

/* Dark mode styles for gems */
[data-theme="dark"] .gems {
    color: #f39c12;
    background-color: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

/* Form Elements with Depth */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    border-color: var(--accent-color-light);
    outline: none;
    background-color: var(--input-bg-focus);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.1), inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Buttons with Depth and Animation */
button, .button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--accent-gradient-vibrant);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(var(--accent-color-rgb), 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

button:hover, .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--accent-color-rgb), 0.4);
    background: var(--accent-gradient);
    border-color: rgba(255,255,255,0.4);
}

button::before, .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

button:hover::before, .button:hover::before {
    left: 100%;
}

/* Links with Style */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Headings with Style */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
    position: relative;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-image: var(--accent-gradient-muted);
    border-radius: 3px;
    opacity: 0.7;
}
