nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 0; /* Garena sát lề hơn */
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li a {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    text-transform: uppercase;
}

.nav-menu li a:hover, .nav-menu li a.active {
    color: #10b981;
}

/* --- GARENA STYLE USER DROPDOWN --- */
.user-dropdown-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 20px;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    border-radius: 30px;
    transition: 0.3s;
    background: rgba(255,255,255,0.05);
}

.user-trigger:hover {
    background: rgba(255,255,255,0.1);
}

.nav-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

.nav-username {
    color: white;
    font-weight: bold;
    font-size: 14px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown Menu Box */
.dropdown-menu {
    position: absolute;
    top: 60px; /* Cách top một chút */
    right: 0;
    width: 320px;
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    overflow: hidden;
}

/* Hiện menu khi hover vào container */
.user-dropdown-container:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Header của Dropdown (Màu đỏ/xanh gradient giống Garena) */
.dropdown-header-info {
    background: linear-gradient(135deg, #059669 0%, #047857 100%); /* Màu xanh cho hợp web bạn */
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.big-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

.user-details h4 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.user-details span {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Phần số dư */
.wallet-section {
    padding: 15px 20px;
    background: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wallet-balance {
    display: flex;
    flex-direction: column;
}

.wallet-balance span {
    font-size: 12px;
    color: #94a3b8;
}

.wallet-balance strong {
    color: #facc15; /* Màu vàng kim */
    font-size: 18px;
}

.btn-mini-topup {
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}

.btn-mini-topup:hover {
    background: #dc2626;
}

/* Danh sách link bên dưới */
.menu-options {
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.menu-options li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    text-transform: none; /* Bỏ viết hoa */
}

.menu-options li a:hover {
    background: rgba(255,255,255,0.05);
    color: #10b981;
    padding-left: 25px; /* Hiệu ứng trượt */
}

.menu-options li a i {
    width: 20px;
    text-align: center;
}

.btn-login-nav {
    background: #10b981;
    padding: 8px 25px;
    border-radius: 5px;
    color: white !important;
    font-weight: bold;
}