/* --- Floating Action Menu (Right Side) --- */
.floating-action-menu {
    position: fixed;
    bottom: 0;
    top: auto;
    right: 0;
    left: 0;
    transform: none;
    z-index: 900;
    display: flex;
    flex-direction: row;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0;
    border-left: none;
    border-bottom: none;
    border-top: 1px solid var(--border);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 60px;
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: none;
    border-right: 1px solid rgba(140, 123, 108, 0.15);
    text-decoration: none;
    color: var(--text-sub);
    transition: all 0.3s ease;
    position: relative;
}

.float-item:last-child {
    border-right: none;
}

.float-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.float-item:hover::before {
    opacity: 0.1;
}

.float-item:hover {
    color: var(--accent);
    background: rgba(140, 123, 108, 0.05);
}

.float-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.float-item:hover .float-icon {
    transform: scale(1.1);
}

.float-label {
    font-size: 0.55rem;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
    display: block;
}

@media (min-width: 768px) {
    .floating-action-menu {
        right: 0;
        top: 50%;
        bottom: auto;
        left: auto;
        transform: translateY(-50%);
        flex-direction: column;
        border-radius: 8px 0 0 8px;
        border-left: 1px solid var(--border);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .float-item {
        width: 70px;
        height: 70px;
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(140, 123, 108, 0.15);
    }

    .float-item:last-child {
        border-bottom: none;
    }

    .float-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }

    .float-label {
        font-size: 0.65rem;
    }
}