.header {
    background-color: #B90E37;
    padding: 10px 0;
    z-index: 1;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.header .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header .menu a {
    color: #fff;
    text-decoration: none;
    margin-right: 5px;
}

.header .menu a:last-child {
    margin-right: 0;
}

.nav-link {
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.22);
}

.user-avatar {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logout-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    display: none;
    color: #000;
    z-index: 1000;
    text-align: center;
}

.balance {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.logout-menu {
    position: absolute;
    top: 48px;
    right: 0;
    background-color: #1f1f23;
    border: 1px solid #b2183c66;
    border-radius: 8px;
    padding: 10px;
    display: none;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    min-width: 160px;
    animation: fadeIn 0.2s ease-in-out;
}

.logout-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.logout-menu ul li {
    margin-bottom: 6px;
}

.logout-menu ul li a {
    display: block;
    padding: 8px 12px;
    color: #ddd;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.logout-menu ul li a:hover {
    background-color: #2f2f32;
    color: #b2183c;
}

.logout-menu hr {
    border: none;
    border-top: 1px solid #333;
    margin: 8px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
